/* ==========================================================================
   KALPITIYA KITESURF ACADEMY — EXPERIENCE PAGE STYLES (`css/experience.css`)
   Brand System: LIGHT • WHITE • OCEAN BLUE • GLASS • WATER • TRAVEL EDITORIAL
   ========================================================================== */

/* Import Core Brand Tokens & System */
@import url('index.css');

/* --------------------------------------------------------------------------
   1. CINEMATIC EXPERIENCE HERO
   -------------------------------------------------------------------------- */
.exp-hero {
  position: relative;
  min-height: 85vh;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-pearl);
}

.exp-hero-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: cover;
  object-position: center;
}

.exp-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg, 
    rgba(246, 251, 252, 0.8) 0%, 
    rgba(246, 251, 252, 0.4) 50%, 
    rgba(246, 251, 252, 0.85) 100%
  );
  z-index: 2;
}

.exp-hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
}

.exp-hero-h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  line-height: 0.95;
  color: var(--navy-deep);
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.exp-hero-subline {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--ocean-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   2. SPACIOUS EDITORIAL INTRO
   -------------------------------------------------------------------------- */
.editorial-statement-section {
  padding: 140px 0;
  text-align: center;
  position: relative;
}

.statement-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  color: var(--navy-deep);
  letter-spacing: -1px;
  max-width: 960px;
  margin: 0 auto 28px;
}

.statement-desc {
  font-size: 1.15rem;
  color: rgba(8, 44, 61, 0.75);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   3. KALPITIYA LAGOON SECTION
   -------------------------------------------------------------------------- */
.lagoon-hero-container {
  position: relative;
  height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(8, 44, 61, 0.1);
  border: 1px solid var(--glass-border);
}

.lagoon-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lagoon-glass-card {
  position: absolute;
  bottom: 40px;
  right: 40px;
  max-width: 440px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--glass-shadow);
}

/* --------------------------------------------------------------------------
   4. ASYMMETRICAL EDITORIAL EXPERIENCE GRID
   -------------------------------------------------------------------------- */
.asym-magazine-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 28px;
  margin-top: 50px;
}

.asym-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.asym-tile-large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  height: 620px;
}

.asym-tile-tall {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  height: 295px;
}

.asym-tile-wide {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  height: 295px;
}

.asym-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.asym-tile:hover img {
  transform: scale(1.04);
}

.asym-tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 44, 61, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  color: var(--white);
}

.asym-tile-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   5. ACCOMMODATION / STAY SECTION
   -------------------------------------------------------------------------- */
.stay-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.stay-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.stay-card:hover {
  transform: translateY(-6px);
}

.stay-img-box {
  height: 220px;
  overflow: hidden;
}

.stay-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stay-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   6. OFF-THE-WATER EXPERIENCES & LARGE IMAGE EXPERIENCE CARDS
   -------------------------------------------------------------------------- */
.off-water-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.off-water-card {
  background: var(--glass-bg, rgba(255, 255, 255, 0.75));
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.6));
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: var(--glass-shadow, 0 10px 30px rgba(8, 44, 61, 0.08));
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal, 0.25s ease), box-shadow var(--transition-normal, 0.25s ease);
}

.off-water-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(8, 44, 61, 0.12);
}

.experience-card-img-wrap {
  width: 100%;
  height: 220px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050E14;
}

.experience-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.off-water-card:hover .experience-card-img-wrap img {
  transform: scale(1.05);
}

.experience-card-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.experience-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy-deep, #082C3D);
  margin-bottom: 8px;
  line-height: 1.3;
}

.experience-card-desc {
  font-size: 0.92rem;
  color: rgba(8, 44, 61, 0.78);
  line-height: 1.6;
  margin-bottom: 12px;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   7. A DAY IN KALPITIYA TIMELINE
   -------------------------------------------------------------------------- */
.day-timeline-container {
  position: relative;
  margin-top: 60px;
}

.timeline-track-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(8, 44, 61, 0.15);
  transform: translateX(-50%);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.timeline-item:nth-child(even) {
  direction: rtl;
}

.timeline-item:nth-child(even) .timeline-content {
  direction: ltr;
}

.timeline-time-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--navy-deep);
  color: var(--white);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

/* Warm Sunset Step Accent (18:15) */
.timeline-item-sunset .timeline-time-badge {
  background: linear-gradient(135deg, #FF7E5F, #FEB47B);
  color: var(--navy-deep);
}

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

/* --------------------------------------------------------------------------
   8. PHOTO STORY GALLERY MASONRY
   -------------------------------------------------------------------------- */
.gallery-masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.gallery-photo-item {
  position: relative;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.gallery-photo-item-tall {
  grid-row: span 2;
  height: 540px;
}

.gallery-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-photo-item:hover img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   9. MAP & LOCATION SECTION
   -------------------------------------------------------------------------- */
.map-placeholder-box {
  position: relative;
  height: 380px;
  background: rgba(231, 245, 247, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  box-shadow: var(--glass-shadow);
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE BREAKPOINTS FOR EXPERIENCE PAGE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .asym-magazine-grid {
    grid-template-columns: 1fr;
  }
  .asym-tile-large, .asym-tile-tall, .asym-tile-wide {
    grid-column: 1 / 2;
    height: 340px;
  }
  .stay-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .off-water-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-track-line {
    left: 20px;
  }
  .timeline-item, .timeline-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    padding-left: 40px;
  }
  .gallery-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-photo-item-tall {
    grid-row: span 1;
    height: 260px;
  }
}

@media (max-width: 768px) {
  .stay-cards-grid {
    grid-template-columns: 1fr;
  }
  .off-water-grid {
    grid-template-columns: 1fr;
  }
  .gallery-masonry-grid {
    grid-template-columns: 1fr;
  }
  .lagoon-glass-card {
    position: relative;
    bottom: 0;
    right: 0;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    padding: 24px 20px;
    box-sizing: border-box;
  }
  #why-stats .container > div {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

@media (max-width: 480px) {
  #why-stats .container > div {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .exp-hero-h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }
}

/* --------------------------------------------------------------------------
   11. CUSTOM PUBLIC GALLERY LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: rgba(5, 14, 20, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeInLightbox 0.25s ease forwards;
}

@keyframes fadeInLightbox {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100001;
  transition: all 0.2s ease;
  line-height: 1;
}

.lightbox-close:hover {
  background: var(--cyan-bright, #00E5FF);
  color: #050E14;
  border-color: var(--cyan-bright, #00E5FF);
  transform: rotate(90deg);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  font-size: 2.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100001;
  transition: all 0.2s ease;
  user-select: none;
}

.lightbox-arrow-prev { left: 24px; }
.lightbox-arrow-next { right: 24px; }

.lightbox-arrow:hover {
  background: var(--cyan-bright, #00E5FF);
  color: #050E14;
  border-color: var(--cyan-bright, #00E5FF);
}

.lightbox-content-wrap {
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100000;
}

.lightbox-image-container {
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-image-container img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.lightbox-caption-bar {
  margin-top: 16px;
  width: 100%;
  background: rgba(10, 28, 36, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFF;
  margin: 0 0 4px 0;
}

.lightbox-caption {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.lightbox-counter {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cyan-bright, #00E5FF);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .lightbox-arrow-prev { left: 10px; }
  .lightbox-arrow-next { right: 10px; }
  .lightbox-arrow { width: 42px; height: 42px; font-size: 1.8rem; }
  .lightbox-close { top: 16px; right: 16px; width: 38px; height: 38px; font-size: 1.5rem; }
  .lightbox-caption-bar { flex-direction: column; text-align: center; gap: 8px; }
}
