/* ===================================
   ATBALI — Gallery Page Styles
   =================================== */

/* ===========================
   GALLERY PAGE HERO
   =========================== */
.gallery-page .navbar-toggler-icon { filter: none; }
.gallery-page #mainNav.scrolled .nav-link { color: var(--text); }

.gallery-page-hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 60%, #1a6b47 100%);
}
.gph-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1537996194471-e657df975ab4?w=1600&q=60') center/cover no-repeat;
  opacity: 0.12;
}
.gph-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(3,77,50,0.15) 100%);
}
.gph-content { position: relative; z-index: 1; }
.gph-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.gph-title em { color: var(--primary); font-style: normal; }
.gph-subtitle { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 560px; margin-bottom: 2.5rem; line-height: 1.7; }
.gph-stats {
  display: inline-flex;
  gap: 0;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 1rem 2rem;
  flex-wrap: wrap;
}
.gph-stat { text-align: center; padding: 0 1.5rem; }
.gph-stat span { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.gph-stat em { font-size: 0.72rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.1em; font-style: normal; }
.gph-stat-div { width: 1px; background: rgba(255,255,255,0.2); }

/* ===========================
   FILTER BAR
   =========================== */
.gallery-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}
.gallery-filter-bar.stuck { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.filter-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.year-tabs { display: flex; gap: 0.4rem; }
.year-tab {
  display: inline-flex; align-items: center;
  background: var(--light-warm);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.year-tab:hover { border-color: var(--secondary); color: var(--secondary); }
.year-tab.active { background: var(--secondary); border-color: var(--secondary); color: var(--white); }
.year-tab .fa-circle-dot { color: var(--primary); font-size: 0.65rem; }
.year-tab.active .fa-circle-dot { color: var(--primary); }

.type-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-left: auto; }
.type-chip {
  background: var(--light-warm);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem; font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.type-chip:hover { border-color: var(--primary); color: var(--primary); }
.type-chip.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* ===========================
   TRIPS GRID SECTION
   =========================== */
.gallery-trips-section { padding: 3rem 0 5rem; }
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 2rem;
}
.results-info h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 0.75rem; }
.results-info p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.current-year-badge {
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
}
.btn-plan-group {
  background: var(--secondary);
  color: var(--white);
  border-radius: 50px;
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center;
  transition: all var(--transition);
}
.btn-plan-group:hover { background: var(--secondary-dark); color: var(--white); transform: translateY(-1px); }

.trips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Trip Card */
.trip-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.trip-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.tc-cover-wrap {
  position: relative; height: 220px; overflow: hidden;
  background: var(--light-warm);
}
.tc-cover { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.trip-card:hover .tc-cover { transform: scale(1.06); }
.tc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
  transition: opacity var(--transition);
}
.trip-card:hover .tc-overlay { opacity: 0.7; }

/* Type badge */
.tc-type-badge {
  position: absolute; top: 1rem; left: 1rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}
.tc-type--school { background: rgba(3,77,50,0.85); color: #a8f0c8; }
.tc-type--corporate { background: rgba(240,132,0,0.85); color: #fff3cd; }
.tc-type--family { background: rgba(232,0,19,0.8); color: #ffd6d9; }
.tc-type--community { background: rgba(13,27,16,0.85); color: #b8d4be; }

.tc-photo-count {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.72rem; font-weight: 500;
  padding: 0.3rem 0.75rem; border-radius: 50px;
}

/* Preview strip */
.tc-preview-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; height: 50px; opacity: 0;
  transition: opacity var(--transition);
}
.trip-card:hover .tc-preview-strip { opacity: 1; }
.tc-preview-strip img { flex: 1; object-fit: cover; filter: brightness(0.85); }

/* Card body */
.tc-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.tc-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.tc-dest { color: var(--secondary); font-size: 0.78rem; font-weight: 600; }
.tc-date { color: var(--text-muted); font-size: 0.75rem; }
.tc-group { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 0.4rem; line-height: 1.3; }
.tc-caption { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; margin-bottom: 0.75rem; }
.tc-highlights { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 1rem; }
.tc-hl { background: var(--secondary-light); color: var(--secondary); font-size: 0.68rem; font-weight: 500; padding: 0.2rem 0.6rem; border-radius: 50px; }
.tc-hl i { font-size: 0.6rem; }
.tc-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 0.85rem; gap: 0.5rem; flex-wrap: wrap; }
.tc-info-pills { display: flex; gap: 0.5rem; }
.tc-info-pills span { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; }
.tc-info-pills i { color: var(--secondary); }
.btn-view-gallery {
  background: var(--secondary);
  color: var(--white);
  border-radius: 50px;
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem; font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-view-gallery:hover { background: var(--primary); color: var(--white); }

/* Empty state */
.no-trips {
  text-align: center; padding: 5rem 2rem;
  color: var(--text-muted);
}
.no-trips i { font-size: 3rem; color: var(--border); margin-bottom: 1rem; display: block; }
.no-trips h3 { font-family: 'Playfair Display', serif; color: var(--text); margin-bottom: 0.5rem; }
.no-trips a { color: var(--primary); }

/* ===========================
   GALLERY CTA
   =========================== */
.gallery-cta-section { padding: 0 0 5rem; }
.gcta-card {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
  border-radius: var(--radius);
  padding: 3rem;
  color: var(--white);
}
.gcta-card h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 0.75rem; }
.gcta-card h2 em { color: var(--primary); font-style: normal; }
.gcta-card p { opacity: 0.82; max-width: 540px; }
.btn-gcta {
  background: #25d366; color: var(--white);
  border-radius: 50px; padding: 0.9rem 2rem;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; display: inline-flex; align-items: center;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-gcta:hover { background: #1fb956; color: var(--white); transform: translateY(-2px); }

/* ===========================
   GALLERY DETAIL PAGE
   =========================== */
.gd-hero {
  height: 55vh; min-height: 400px;
  background-size: cover; background-position: center;
  position: relative;
  display: flex; align-items: flex-end;
  padding-top: 80px;
}
.gd-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3,77,50,0.88) 0%, rgba(0,0,0,0.25) 100%);
}
.gd-hero-content { position: relative; z-index: 1; padding-bottom: 3rem; }

.gd-type-badge {
  display: inline-flex; align-items: center;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 50px;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(6px);
}
.gd-type--school { background: rgba(3,77,50,0.7); color: #a8f0c8; border: 1px solid rgba(168,240,200,0.3); }
.gd-type--corporate { background: rgba(240,132,0,0.7); color: #fff3cd; border: 1px solid rgba(255,243,205,0.3); }
.gd-type--family { background: rgba(232,0,19,0.65); color: #ffd6d9; border: 1px solid rgba(255,214,217,0.3); }
.gd-type--community { background: rgba(0,0,0,0.5); color: #c8e6c9; border: 1px solid rgba(200,230,201,0.3); }

.gd-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900; color: var(--white);
  margin-bottom: 0.75rem; line-height: 1.15;
}
.gd-subtitle {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  color: rgba(255,255,255,0.78); font-size: 0.875rem; align-items: center;
}
.gd-sep { opacity: 0.4; }

/* Main content */
.gd-main { padding: 3rem 0 5rem; }

.gd-summary-bar {
  background: var(--secondary-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  border-left: 4px solid var(--secondary);
}
.gd-caption-text { font-size: 1rem; color: var(--secondary-dark); font-weight: 500; margin-bottom: 0.75rem; }
.gd-highlights-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gd-hl-chip {
  background: var(--white);
  border: 1px solid rgba(3,77,50,0.2);
  color: var(--secondary);
  font-size: 0.78rem; font-weight: 500;
  padding: 0.3rem 0.85rem; border-radius: 50px;
}
.gd-hl-chip i { font-size: 0.65rem; color: var(--primary); }

/* Photo Grid */
.gd-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.gd-photo-item {
  position: relative; border-radius: var(--radius-sm);
  overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4/3;
  background: var(--light-warm);
}
.gd-photo-item.gd-photo--hero {
  grid-column: 1 / -1;
  aspect-ratio: 16/7;
}
.gd-photo-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gd-photo-item:hover img { transform: scale(1.04); }
.gd-photo-hover {
  position: absolute; inset: 0;
  background: rgba(3,77,50,0.25);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
  color: var(--white); font-size: 1.5rem;
}
.gd-photo-item:hover .gd-photo-hover { opacity: 1; }
.gd-photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: var(--white);
  font-size: 0.78rem; padding: 1.5rem 0.85rem 0.7rem;
  opacity: 0; transition: opacity var(--transition);
}
.gd-photo-item:hover .gd-photo-caption { opacity: 1; }

.gd-photo-note {
  margin-top: 1.25rem;
  color: var(--text-muted); font-size: 0.82rem;
  text-align: center;
}
.gd-photo-note i { color: var(--secondary); }

/* Trip Nav */
.gd-trip-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.gd-nav-btn {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.2rem;
  text-decoration: none; color: var(--text);
  transition: all var(--transition); max-width: 48%;
}
.gd-nav-btn:hover { border-color: var(--secondary); color: var(--secondary); transform: translateY(-2px); box-shadow: var(--shadow); }
.gd-nav-btn span { font-size: 0.72rem; color: var(--text-muted); display: block; text-transform: uppercase; letter-spacing: 0.05em; }
.gd-nav-btn strong { font-size: 0.875rem; font-weight: 600; display: block; line-height: 1.3; }
.gd-nav-btn i { font-size: 1rem; color: var(--secondary); flex-shrink: 0; }
.gd-nav-next { margin-left: auto; }

/* Info Card */
.gd-info-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.gd-info-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
  color: var(--dark); margin-bottom: 1.25rem;
  padding-bottom: 0.75rem; border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.gd-info-row {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.6rem 0; border-bottom: 1px solid var(--light-warm);
}
.gd-info-row:last-child { border-bottom: none; }
.gd-info-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--secondary-light); color: var(--secondary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.gd-info-row span { font-size: 0.72rem; color: var(--text-muted); display: block; text-transform: uppercase; letter-spacing: 0.05em; }
.gd-info-row strong { font-size: 0.875rem; font-weight: 600; color: var(--dark); display: block; }

/* CTA Card */
.gd-cta-card {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
  border-radius: var(--radius); padding: 1.75rem;
  text-align: center; margin-bottom: 1.25rem;
  color: var(--white);
}
.gd-cta-icon { font-size: 2rem; color: var(--primary); margin-bottom: 0.75rem; }
.gd-cta-card h4 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 0.5rem; }
.gd-cta-card p { font-size: 0.875rem; opacity: 0.8; margin-bottom: 1.25rem; }
.btn-gd-wa {
  background: #25d366; color: var(--white);
  border-radius: 50px; padding: 0.75rem 1.25rem;
  font-weight: 700; font-size: 0.9rem;
  text-decoration: none; display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.6rem;
  transition: all var(--transition);
}
.btn-gd-wa:hover { background: #1fb956; color: var(--white); }
.btn-gd-back {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85);
  border-radius: 50px; padding: 0.65rem 1.25rem;
  font-weight: 500; font-size: 0.85rem;
  text-decoration: none; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-gd-back:hover { background: rgba(255,255,255,0.2); color: var(--white); }

/* Other Trips */
.gd-other-trips {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.gd-other-trips h5 {
  font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700;
  color: var(--dark); margin-bottom: 1rem;
}
.gd-other-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--light-warm);
  text-decoration: none; color: var(--text);
  transition: all var(--transition);
}
.gd-other-item:last-child { border-bottom: none; }
.gd-other-item:hover { color: var(--secondary); }
.gd-other-item img {
  width: 52px; height: 40px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0;
}
.gd-other-item strong { font-size: 0.82rem; font-weight: 600; display: block; line-height: 1.3; }
.gd-other-item span { font-size: 0.72rem; color: var(--text-muted); display: block; }
.gd-other-arrow { color: var(--border); font-size: 0.75rem; margin-left: auto; flex-shrink: 0; transition: all var(--transition); }
.gd-other-item:hover .gd-other-arrow { color: var(--secondary); transform: translateX(3px); }

/* ===========================
   LIGHTBOX
   =========================== */
.gd-lightbox {
  position: fixed; inset: 0; z-index: 9900;
  display: none; align-items: center; justify-content: center;
}
.gd-lightbox.open { display: flex; }
.gdlb-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.gdlb-content {
  position: relative; z-index: 1;
  max-width: 88vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center;
}
#gdLbImg {
  max-width: 100%; max-height: 76vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  display: block;
  transition: opacity 0.25s ease;
}
.gdlb-caption {
  color: rgba(255,255,255,0.85); font-size: 0.875rem;
  margin-top: 1rem; text-align: center; max-width: 500px;
  font-style: italic;
}
.gdlb-counter {
  color: rgba(255,255,255,0.45); font-size: 0.75rem;
  margin-top: 0.4rem;
  letter-spacing: 0.1em;
}
.gdlb-close {
  position: fixed; top: 1.5rem; right: 2rem;
  color: rgba(255,255,255,0.75); font-size: 1.75rem;
  cursor: pointer; z-index: 2;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); border-radius: 50%;
  transition: all var(--transition);
}
.gdlb-close:hover { background: rgba(255,255,255,0.2); color: var(--white); }
.gdlb-prev, .gdlb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.8); font-size: 1.4rem;
  cursor: pointer; z-index: 2;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); border-radius: 50%;
  transition: all var(--transition);
}
.gdlb-prev { left: 1.5rem; }
.gdlb-next { right: 1.5rem; }
.gdlb-prev:hover, .gdlb-next:hover { background: var(--primary); color: var(--white); }
.gdlb-prev.disabled, .gdlb-next.disabled { opacity: 0.25; pointer-events: none; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 991px) {
  .trips-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-row { flex-direction: column; align-items: flex-start; }
  .type-filters { margin-left: 0; }
  .gph-stats { padding: 0.85rem 1.25rem; }
  .gph-stat { padding: 0 1rem; }
}
@media (max-width: 767px) {
  .trips-grid { grid-template-columns: 1fr; }
  .gd-photo-grid { grid-template-columns: 1fr; }
  .gd-photo--hero { grid-column: 1; }
  .gd-trip-nav { flex-direction: column; }
  .gd-nav-btn { max-width: 100%; }
  .year-tabs { flex-wrap: wrap; }
  .gph-stats { flex-wrap: wrap; gap: 0.75rem; }
  .gph-stat-div { display: none; }
  .gdlb-prev { left: 0.5rem; }
  .gdlb-next { right: 0.5rem; }
  .gdlb-content { max-width: 96vw; }
}

/* Nav active link */
.nav-active { color: var(--primary) !important; font-weight: 600 !important; }
