:root{
  --bg: #07070b;
  --ink: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);

  --gold: #d8b75a;
  --lav: #b9a6ff;

  --glass: rgba(255,255,255,0.09);
  --glass-2: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,0.16);

  --shadow: 0 18px 60px rgba(0,0,0,0.55);
  --radius: 18px;

  --serif: "Playfair Display", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.topbar{
  animation: navFade 0.8s ease forwards;
  opacity: 0;
}

@keyframes navFade{
  from{
    opacity: 0;
    transform: translateY(-8px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}



*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  background: radial-gradient(1200px 700px at 70% -10%, rgba(185,166,255,0.22), transparent 60%),
              radial-gradient(1000px 800px at 10% 10%, rgba(216,183,90,0.14), transparent 55%),
              var(--bg);
  color: var(--ink);
  overflow-x:hidden;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
button{ font-family: inherit; }

.container{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* grain overlay */
.grain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  z-index: 1;
}

/* Topbar 
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  transition: all .35s ease;
}
.topbar.scrolled{
  padding: 10px 0;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(10,10,14,0.55), rgba(10,10,14,0.25));
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
*/


.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 22px 0;
  background: transparent;
  transition:
    padding .35s ease,
    background .35s ease,
    backdrop-filter .35s ease,
    border .35s ease,
    box-shadow .35s ease;
}

/* TOP STATE (hero mode) */
.topbar:not(.scrolled){
  background: transparent;
  border-bottom: 1px solid transparent;
}

/* SCROLLED STATE (glass mode) */
.topbar.scrolled{
  padding: 10px 0;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(8,8,14,0.75),
    rgba(8,8,14,0.55)
  );
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}



.nav{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}




.brand-mark{
  font-family: var(--serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 600;
  transform-origin: left center;
  transition: transform .45s cubic-bezier(.22,.9,.3,1), opacity .35s ease;
}

.topbar.scrolled .brand-mark{
  transform: scale(0.90);
  opacity: 0.85;
}



.topbar:not(.scrolled) .brand-mark{
  font-size: 15px;
  opacity: 1;
}

.topbar.scrolled .brand-mark{
  font-size: 13px;
  opacity: 0.85;
}


.amp{
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
}
/*
.nav-links{
  display:flex;
  gap: 18px;
  align-items:center;
}
.navlink{
  font-size: 14px;
  opacity: 0.86;
  padding: 8px 10px;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.navlink:hover{
  opacity: 1;
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

*/

.navlink{
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  opacity: 0.95;
  transition:
    transform .2s ease,
    opacity .2s ease,
    background .25s ease,
    color .25s ease;
}

/* TOP HERO MODE */
.topbar:not(.scrolled) .navlink{
  background: transparent;
  color: rgba(255,255,255,0.95);
}

.topbar:not(.scrolled) .navlink:hover{
  background: rgba(255,255,255,0.10);
}

/* SCROLLED MODE */
.topbar.scrolled .navlink{
  opacity: 0.85;
}



/* Mobile menu */
.nav-toggle{
  display:none;
  width: 42px; height: 38px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span{
  display:block;
  height: 2px;
  background: rgba(255,255,255,0.85);
  margin: 5px 0;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-drawer{
  display:none;
  width: min(1120px, calc(100% - 40px));
  margin: 10px auto 0;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15,15,20,0.55);
  backdrop-filter: blur(12px);
  transform-origin: top;
  transform: translateY(-10px) scaleY(0.96);
  opacity: 0;
  pointer-events:none;
  transition: all .25s ease;
}
.nav-drawer.open{
  display:block;
  transform: translateY(0) scaleY(1);
  opacity: 1;
  pointer-events: auto;
}
.drawer-link{
  display:block;
  padding: 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  opacity: 0.92;
}
.drawer-link:first-child{ border-top: 0; }

/* Hero */

.hero{
  position: relative;
  min-height: 100svh;
  display:flex;
  align-items:center;
  justify-content: center;   
  text-align: center;        
  padding: 96px 0 54px;
}

/* 
.hero-bg{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(to bottom, rgba(8,8,12,0.15), rgba(8,8,12,0.85)),
    url("https://images.unsplash.com/photo-1529634806980-85c3dd6d34ac?auto=format&fit=crop&w=2200&q=80");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  will-change: transform;
}
 */
.hero-bg{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(
      to bottom,
      rgba(8,8,12,0.05) 0%,
      rgba(8,8,12,0.55) 45%,
      rgba(8,8,12,0.85) 75%,
      rgba(7,7,11,1) 100%
    ),
    url("https://d12cx0hjxyub1e.cloudfront.net/uploads/2016/10/Burgh_Brides_Decadent_Purple_Gold_Wedding_Omni_William_Penn_Leeann_Marie_Wedding_Photographers_5477.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  will-change: transform;
}


.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(700px 500px at 25% 22%, rgba(185,166,255,0.22), transparent 60%),
    radial-gradient(700px 500px at 75% 35%, rgba(216,183,90,0.18), transparent 55%);
  opacity: 0.95;
}
.hero-inner{ position: relative; z-index: 2; justify-content: center; width:100%; display: flex;}
/*
.hero-card{
    
  text-align: center; 
  width: min(720px, 100%);
  padding: 34px 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
*/
.hero-card{
  text-align: center; 
  width: min(720px, 100%);
  padding: 48px 40px 38px;
  border-radius: 24px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.06)
  );

  border: 1px solid rgba(255,255,255,0.10);

  box-shadow:
    0 40px 120px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.15);

  backdrop-filter: blur(18px);
}

.kicker{
  margin: 0 0 10px;
  opacity: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.hero-title{
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
   position: relative;
  display: inline-block;
}

.hero-title::after{
  content:"";
  display:block;
  margin: 18px auto 0;
  width: 140px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold),
    transparent
  );
  opacity: 0.8;
  box-shadow: 0 0 18px rgba(216,183,90,0.4);
}


.hero-subtitle{
  margin: 14px 0 30px;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.dot{ opacity: 0.85; margin: 0 6px; }

.countdown{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin: 22px auto 26px;
  max-width: 420px;   /* keeps it visually tight */
}

.timebox{
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  text-align:center;
}
.timevalue{
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.timelabel{
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.78;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.hero-actions{
  display:flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* Buttons */
.btn{
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .2s ease, background .2s ease, border .2s ease, box-shadow .2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
}
.btn.primary{
  border-color: rgba(216,183,90,0.38);
  background: linear-gradient(135deg, rgba(216,183,90,0.20), rgba(185,166,255,0.16));
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}
.btn.primary:hover{
  background: linear-gradient(135deg, rgba(216,183,90,0.26), rgba(185,166,255,0.20));
}
.btn.ghost{
  background: rgba(255,255,255,0.06);
}
.btn.small{
  padding: 10px 12px;
  font-size: 13px;
}

.scroll-cue{
    margin: 28px auto 0; 
  width: fit-content; 
  margin-top: 18px;
  justify-content: center;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.85);
  display:flex;
  align-items:center;
  gap: 10px;
  cursor:pointer;
  opacity: 0.9;
  transition: opacity .2s ease, transform .2s ease;
}
.scroll-cue:hover{
  opacity: 1;
  transform: translateY(1px);
}
.scroll-cue-icon{
  width: 28px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  position: relative;
}
.scroll-cue-icon::after{
  content:"";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.80);
  position:absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  animation: dot 1.6s ease-in-out infinite;
}
@keyframes dot{
  0%{ transform: translateX(-50%) translateY(0); opacity: .9; }
  60%{ transform: translateX(-50%) translateY(14px); opacity: .5; }
  100%{ transform: translateX(-50%) translateY(0); opacity: .9; }
}

/* Sections */
.section{
  padding: 78px 0;
  position: relative;
  z-index: 2;
}
.section.alt{
  background: linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
}







.section-head{
  max-width: 760px;
  margin-bottom: 26px;
}
.h2{
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.h3{
  font-family: var(--serif);
  font-size: 24px;
  margin: 0;
}
.muted{
  margin: 0;
  opacity: 0.78;
  line-height: 1.6;
}
.muted.small{ font-size: 13px; opacity: 0.68; margin-top: 8px; }

.glass{
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.pad{ padding: 18px; }

/* Reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(2px);
  transition: opacity .7s ease, transform .7s ease, filter .7s ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Story */
.story-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}
.story-list{
  padding: 10px;
}

/*
.chapter{
  width: 100%;
  text-align:left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  padding: 14px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border .2s ease;
} */
.chapter{
  position: relative;
  width: 100%;
  text-align:left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  padding: 16px 14px 16px 32px; /* extra left space */
  border-radius: 14px;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, border .25s ease;
}
/* Gold vertical line */
.chapter::before{
  content:"";
  position:absolute;
  left:14px;
  top:50%;
  transform: translateY(-50%);
  width:2px;
  height:60%;
  background: linear-gradient(to bottom, var(--gold), rgba(216,183,90,0.2));
  border-radius:2px;
}

/* Gold dot */
.chapter::after{
  content:"";
  position:absolute;
  left:9px;
  top:50%;
  transform: translateY(-50%);
  width:10px;
  height:10px;
  background: var(--gold);
  border-radius:50%;
  box-shadow: 0 0 12px rgba(216,183,90,0.5);
}

.chapter:hover{
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}
.chapter.active{
  border-color: rgba(216,183,90,0.36);
  background: rgba(216,183,90,0.10);
}
.chapter-date{
  font-size: 12px;
  opacity: 0.75;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-title{
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
}


.story-panel{
  padding: 14px;
}
.story-media{
  position: relative;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
}

.story-main{
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: 
    opacity .6s ease,
    transform .6s ease,
    filter .6s ease;
  opacity: 1;
  filter: blur(0px);
}
.story-main.swap{
  opacity: 0;
  transform: scale(1.05);
  filter: blur(6px);
}


.story-main.swap{
  opacity: 0.70;
  transform: scale(1.04);
}
.story-thumbs{
  display:flex;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  position:absolute;
  left:0; right:0; bottom:0;
  overflow:auto;
}
.thumb{
  width: 58px;
  height: 44px;
  border-radius: 10px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  cursor:pointer;
  flex: 0 0 auto;
  opacity: 0.9;
  transition: transform .2s ease, opacity .2s ease, border .2s ease;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(0.6) blur(1px) brightness(0.9);
  transition: filter .4s ease, transform .4s ease;
}

.thumb:hover img,
.thumb.active img{
  filter: saturate(1) blur(0) brightness(1);
  transform: scale(1.04);
}

.icon-btn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(10,10,14,0.45);
  color: rgba(255,255,255,0.90);
  cursor:pointer;
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease;
  display:grid;
  place-items:center;
  font-size: 22px;
}
.icon-btn:hover{
  transform: translateY(-50%) scale(1.03);
  background: rgba(10,10,14,0.58);
}
.icon-btn.left{ left: 12px; }
.icon-btn.right{ right: 12px; }
.icon-btn.close{
  position: static;
  transform: none;
  width: 38px; height: 38px;
  font-size: 20px;
}
.icon-btn.close:hover{ transform: none; }

.story-copy{
  padding: 14px 6px 6px;
  transition: opacity .5s ease, transform .5s ease;
}

.story-copy.fade-out{
  opacity: 0;
  transform: translateY(10px);
}

.story-copy.fade-in{
  opacity: 1;
  transform: translateY(0);
}


.story-meta{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-bottom: 10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  opacity: 0.9;
}
.pill.soft{ border-color: rgba(185,166,255,0.25); background: rgba(185,166,255,0.10); }
.story-text{
    margin: 10px 0 0;
  opacity: 0.80;
  line-height: 1.65;

}

.story-heading{
  display:flex;
  align-items:center;
  gap:10px;
}

.story-mark{
  color: var(--gold);
  font-size: 14px;
  opacity: 0.9;
}

/* Timeline tabs */


.timeline-tabs{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}

.tab{
    color: rgba(255,255,255,0.75);
  border-radius: 999px;
  padding: 18px 26px;
  text-align: center;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);

  transition:
    transform .35s cubic-bezier(.22,.9,.3,1),
    background .35s ease,
    box-shadow .35s ease,
    border .35s ease;
}

.tab:hover{
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.tab.active{
  background: linear-gradient(
    135deg,
    rgba(216,183,90,0.18),
    rgba(185,166,255,0.12)
  );
  border-color: rgba(216,183,90,0.45);
  box-shadow: 0 20px 60px rgba(216,183,90,0.15);
}

.tab-time{
  font-size: 12px;
  opacity: 0.78;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.tab-title{
  font-weight: 600;
}

/* Spotlight */

.spotlight-right{
  display:flex;
  align-items: stretch;
  position: relative;
  
}

.mapwrap{
  position: relative;
  flex: 1;
  min-height: 420px;   /* CRITICAL */
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.08);
}

#spotMap{
  position:absolute;
  inset:0;
  
}




.spotlight{
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;

  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}




.spot-bg{
  position:absolute;
  inset:0;
  z-index:0;

  background-size: cover;
  background-position: center;



  transform: scale(1.1);

  opacity: 0.45; /* critical */
  transition: opacity .6s ease;
    filter: blur(10px) brightness(0.30) saturate(0.6);
  transform: scale(1.15);

  transition: opacity .6s ease;
  
}




.spotlight.swap{
  animation: pop .32s ease;
}
@keyframes pop{
  from{ transform: scale(0.995); filter: blur(0.5px); }
  to{ transform: scale(1); filter: blur(0); }
}
.spotlight.slide-out {
  opacity: 0;
  transform: translateX(40px);
}

.spotlight.slide-in {
  opacity: 1;
  transform: translateX(0);
}




.spotlight-left{
  padding: 42px 42px 36px;
  position: relative;
  z-index: 3; 
}


.spot-desc{
  font-size: 15px;
  line-height: 1.85;
  opacity: 0.70;
  max-width: 520px;
  letter-spacing: 0.01em;
}

.spotlight-time{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.80;
}

.spot-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.spot-details{
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
}
.detail-row{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 8px 0;
}
.detail-label{
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 0.14em;
}
.detail-value{
    font-size: 13px;
  opacity: 0.75;
}


.spotlight-photos{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.spot-photo{
  border-radius: 14px;
  height: 110px;
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.20);
}



/* subtle fade mask */
.mapwrap::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(to top, rgba(7,7,11,0.8), transparent 25%),
    linear-gradient(to bottom, rgba(7,7,11,0.8), transparent 25%);
}
.leaflet-control-container {
  display: none;
}
.custom-marker {
  position: relative;
  width: 40px;
  height: 40px;
}

.marker-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #d8b75a; /* gold */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(216,183,90,0.8);
}

.marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(216,183,90,0.4);
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  70% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}


/* Only grayscale map tiles */

.leaflet-tile-pane{
  filter:
    saturate(0.7)
    contrast(0.95)
    brightness(0.85);
}


.mapwrap iframe{
  width: 100%;
  height: 100%;
  border:0;
}
.mapwrap::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(600px 300px at 70% 40%, rgba(216,183,90,0.06), transparent 70%),
    linear-gradient(to bottom, rgba(7,7,11,0.6), rgba(7,7,11,0.8));
}

/* Wishlist */
.wishlist-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.map-link {
  color: var(--muted);
  text-decoration: none;
  transition: color .25s ease;
}

.map-link:hover {
  color: var(--gold);
}

/* Wishlist entrance animation */
.gift{
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(6px);
  transition:
    opacity .8s cubic-bezier(.22,.9,.3,1),
    transform .8s cubic-bezier(.22,.9,.3,1),
    filter .8s ease,
    box-shadow .35s ease;
    overflow: hidden;
}

.gift.in{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}



.gift:hover{
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}







.gift-media{
  position: relative;
  height: 170px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}


.gift-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .6s ease;
  filter: saturate(0.65) contrast(0.95) brightness(0.92);
}

.gift:hover .gift-media img{
  transform: scale(1.05);
  filter: saturate(0.9) contrast(1);
}

/* subtle cinematic fade */
.gift-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.15) 0%,
      rgba(0,0,0,0.25) 55%,
      rgba(7,7,11,0.85) 100%
    );
  pointer-events:none;
}



.gift-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gift-body{
  padding: 14px;
}
.gift-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
}
.gift-title{
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}
.gift-note{
  margin: 10px 0 14px;
  opacity: 0.78;
  line-height: 1.6;
  min-height: 48px;
}
.gift-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge{
    font-size: 10px;
  letter-spacing: 0.14em;;
  text-transform: uppercase;
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  opacity: 0.92;
  white-space: nowrap;
}
.badge.available{
  border-color: rgba(185,166,255,0.28);
  background: rgba(185,166,255,0.10);
}
.badge.reserved{
  border-color: rgba(216,183,90,0.32);
  background: rgba(216,183,90,0.10);
}


.spot-bullets{
  margin-top: 16px;
  padding-left: 18px;
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.75;
}

.spot-bullets li::marker{
  color: #d8b75a;  
}

.spot-bullets li {
  margin-bottom: 6px;
}

.spot-icon {
  color: var(--gold);
  margin-right: 10px;
  font-size: 18px;
}

/* Footer */
.footer{
  position: relative;
  padding: 80px 0 90px;
  margin-top: 80px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(216,183,90,0.08), transparent 70%),
    linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:140px;
  height:1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(216,183,90,0.7),
    transparent
  );
}

.footer-inner{
  display:flex;
  flex-direction: column;
  gap: 18px;
  align-items:center;
}


.footer-love{
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.footer-date{
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Modal */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events:none;
  transition: opacity .25s ease;
  z-index: 80;
}
.modal-backdrop.open{
  opacity: 1;
  pointer-events:auto;
}
.modal{
  position: fixed;
  inset: 0;
  display:grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events:none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 90;
}
.modal.open{
  opacity: 1;
  pointer-events:auto;
  transform: translateY(0);
}
.modal-card{
  width: min(520px, 100%);
  padding: 16px 16px 14px;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.field{
  margin-top: 14px;
  display:grid;
  gap: 8px;
}
label{
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.78;
}
input{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
}
input:focus{
  border-color: rgba(185,166,255,0.45);
  box-shadow: 0 0 0 4px rgba(185,166,255,0.14);
}
input.shake{
  animation: shake .34s ease;
}
@keyframes shake{
  0%{ transform: translateX(0); }
  25%{ transform: translateX(-5px); }
  50%{ transform: translateX(5px); }
  75%{ transform: translateX(-4px); }
  100%{ transform: translateX(0); }
}
.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  margin-top: 14px;
}
.modal-small{ margin-top: 10px; }

/* Responsive */
@media (max-width: 980px){
  .spotlight{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px){
  .story-grid{ grid-template-columns: 1fr; }
  .spotlight{ grid-template-columns: 1fr; }
  .spotlight-photos{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .wishlist-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px){
  .nav-links{ display:none; }
  .nav-toggle{ display:block; }

  .hero{ padding-top: 86px; }
  .hero-card{ padding: 26px 18px 18px; }
  .countdown{ grid-template-columns: repeat(2, minmax(0,1fr)); }

  .story-main{ height: 290px; }
  .wishlist-grid{ grid-template-columns: 1fr; }

  .tab{ min-width: 100%; }
}