/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
}

body{
  font-family:'Poppins',sans-serif;
  background:#fffaf5;
  color:#333;
  transition:opacity 1s ease;
}


/* =======================
   HERO
======================= */

.hero{
  min-height:100vh;
  background:url('https://images.unsplash.com/photo-1519225421980-715cb0215aed') center/cover no-repeat;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:20px;
}

.overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.35));
  backdrop-filter:blur(3px);

  /* FIX ZA KLIK */
  pointer-events:none;
}

.content{
  position:relative;
  z-index:2;
  color:white;
  max-width:760px;
  animation:fadeUp 1.2s ease;
}

.invite{
  letter-spacing:4px;
  font-size:13px;
  margin-bottom:20px;
  text-transform:uppercase;
  color:#f0d675;
}

h1{
  font-family:'Great Vibes',cursive;
  font-size:90px;
  font-weight:400;
  margin-bottom:10px;
}

h1 span{
  color:#d4af37;
  text-shadow:0 0 10px rgba(212,175,55,0.6);
}

.date{
  font-size:24px;
  margin-bottom:20px;
  font-weight:600;
}

.quote{
  font-size:18px;
  line-height:1.8;
  margin-bottom:30px;
}


/* =======================
   COUNTDOWN
======================= */

#countdown{
  font-size:24px;
  margin-bottom:28px;
  font-weight:700;
  color:#f0d675;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.hero-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.seating-hero-btn{
  background:linear-gradient(135deg,#d4af37,#e7c75a);
  color:white;
  box-shadow:0 0 15px rgba(212,175,55,0.35);
}


/* =======================
   BUTTON
======================= */

.btn{
  display:inline-block;
  padding:15px 34px;
  background:white;
  color:#333;
  text-decoration:none;
  border-radius:40px;
  font-weight:700;
  transition:0.3s ease;
  border:none;
  position:relative;
  overflow:hidden;
  z-index:5;
}

.btn:hover{
  transform:translateY(-4px) scale(1.04);
}


/* RIPPLE */
.ripple{
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,0.6);
  transform:scale(0);
  animation:rippleAnim 600ms linear;
}

@keyframes rippleAnim{
  to{
    transform:scale(4);
    opacity:0;
  }
}


/* GOLD BUTTON */
.gold{
  background:linear-gradient(135deg,#d4af37,#e7c75a);
  color:white;
  margin-top:25px;
  box-shadow:0 0 15px rgba(212,175,55,0.4);
}

.gold:hover{
  box-shadow:0 0 30px rgba(212,175,55,0.8);
}


/* RSVP */
.rsvp-buttons{
  display:flex;
  gap:15px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:15px;
}


/* =======================
   DETAILS
======================= */

.details{
  padding:90px 20px;
  text-align:center;
  max-width:1000px;
  margin:auto;
}

.details h2{
  font-size:48px;
  margin-bottom:50px;
  font-family:'Great Vibes',cursive;
  color:#d4af37;
  text-shadow:0 0 10px rgba(212,175,55,0.6);
}


/* CARD */
.card{
  background:rgba(255,255,255,0.75);
  backdrop-filter:blur(10px);
  padding:36px 24px;
  margin-bottom:26px;
  border-radius:28px;
  box-shadow:0 15px 40px rgba(0,0,0,0.08);
  transition:0.3s ease;
  position:relative;
  z-index:1;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 60px rgba(0,0,0,0.15);
}

.card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:28px;
  opacity:0;
  transition:0.3s;
  box-shadow:0 0 30px rgba(212,175,55,0.3);

  /* FIX */
  pointer-events:none;
}

.card:hover::after{
  opacity:1;
}

.card h3{
  margin-bottom:16px;
  color:#d4af37;
  font-size:23px;
}

.card p{
  margin:10px 0;
  font-size:18px;
}


/* LINKS */
.map-link{
  display:inline-block;
  font-size:18px;
  text-decoration:none;
  color:#333;
  line-height:1.7;
  font-weight:600;
  transition:0.3s;
  position:relative;
  z-index:999;
}

.map-link:hover,
.phone-link:hover{
  color:#d4af37;
}

.phone-link{
  color:#333;
  text-decoration:none;
  font-weight:700;
}


/* SMALL BUTTON */
.small-btn{
  display:inline-block;
  margin-top:18px;
  padding:10px 22px;
  border-radius:30px;
  background:#fff7dc;
  color:#9b7918;
  text-decoration:none;
  font-weight:700;
  transition:0.3s;

  /* FIX */
  position:relative;
  z-index:999;
  pointer-events:auto;
}

.small-btn:hover{
  background:#d4af37;
  color:white;
  transform:translateY(-3px);
}


/* =======================
   MUSIC BUTTON
======================= */

.music-btn{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:20;
  width:52px;
  height:52px;
  border-radius:50%;
  border:none;
  background:linear-gradient(135deg,#d4af37,#e7c75a);
  color:white;
  font-size:22px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 25px rgba(0,0,0,0.25);
  transition:0.3s;
}

.music-btn:hover{
  transform:scale(1.1);
}

.music-btn:not(.paused){
  animation:pulseMusic 2s infinite;
}

.music-btn.paused{
  background:#222;
}

@keyframes pulseMusic{
  0%{box-shadow:0 0 0 rgba(212,175,55,0.6);}
  50%{box-shadow:0 0 25px rgba(212,175,55,0.9);}
  100%{box-shadow:0 0 0 rgba(212,175,55,0.6);}
}


/* =======================
   ENTER OVERLAY
======================= */

#enter-overlay{
  position:fixed;
  inset:0;
  background:#111;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
  transition:0.6s;
}

.enter-box{
  text-align:center;
  color:white;
}

.enter-box p{
  font-family:'Great Vibes',cursive;
  font-size:42px;
  margin-bottom:20px;
}

.enter-box button{
  padding:12px 28px;
  border:none;
  border-radius:30px;
  background:linear-gradient(135deg,#d4af37,#e7c75a);
  color:white;
  font-weight:700;
  cursor:pointer;
}


/* =======================
   FOOTER
======================= */

footer{
  text-align:center;
  padding:30px;
  background:#111;
  color:white;
  margin-top:50px;
}


/* =======================
   ANIMATIONS
======================= */

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}


/* SCROLL */
.fade-in{
  opacity:0;
  transform:translateY(40px);
  transition:all 0.8s ease;
}

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


/* =======================
   MOBILE
======================= */

@media(max-width:768px){

  h1{
    font-size:58px;
  }

  .date{
    font-size:20px;
  }

  .quote{
    font-size:16px;
  }

  #countdown{
    font-size:19px;
  }

  .details{
    padding:65px 16px;
  }

  .details h2{
    font-size:38px;
  }

  .card{
    padding:26px 16px;
  }

  .card p,
  .map-link{
    font-size:16px;
  }

  .btn{
    padding:14px 26px;
    font-size:15px;
  }
}

/* =======================
   SEATING PLAN
======================= */
.seating-section{padding:90px 20px 70px;background:linear-gradient(180deg,#fffaf5 0%,#f8efe2 100%)}
.seating-inner{max-width:1180px;margin:0 auto;text-align:center}
.seating-kicker{color:#b88b28;margin-bottom:8px}
.seating-section h2{font-family:'Great Vibes',cursive;font-size:64px;font-weight:400;color:#6b4b2a;margin-bottom:8px}
.seating-intro{font-size:17px;color:#6a5b50;margin-bottom:28px}
.seating-search{max-width:920px;margin:0 auto 28px;padding:28px 30px}
.seating-search label{display:block;font-family:'Great Vibes',cursive;font-size:34px;color:#6b4b2a;margin-bottom:14px}
.search-row{display:flex;gap:12px;align-items:center;justify-content:center}
.search-row input{flex:1;min-width:0;padding:15px 18px;border:1px solid #d8c6aa;border-radius:16px;background:#fff;font:400 16px Poppins,sans-serif;outline:none}
.search-row input:focus{border-color:#d4af37;box-shadow:0 0 0 3px rgba(212,175,55,.12)}
.search-row .gold{margin-top:0;cursor:pointer}
.search-result{min-height:24px;margin-top:14px;font-weight:600;color:#6b4b2a}
.search-result.error{color:#9b4c38}
.search-result strong{color:#b88b28}
.seating-map-card{background:rgba(255,255,255,.8);border:1px solid #ddc79f;border-radius:28px;padding:20px;box-shadow:0 15px 40px rgba(0,0,0,.08)}
.map-heading{display:flex;justify-content:space-between;align-items:end;padding:0 6px 14px;color:#6b4b2a}
.map-heading span{font-family:'Great Vibes',cursive;font-size:38px}
.map-heading small{font-size:13px;color:#8a7968}
.seating-map-image-wrap{position:relative;width:100%;overflow:hidden;border-radius:20px;border:1px solid #d9c4a0;line-height:0;background:#fff}
.seating-map-image{display:block;width:100%;height:auto;user-select:none;-webkit-user-drag:none}
.image-hotspot,.image-special-hotspot{position:absolute;transform:translate(-50%,-50%);width:6%;min-width:0;aspect-ratio:1;border:0;background:transparent;border-radius:50%;cursor:pointer;padding:0;z-index:5;color:transparent}
.image-hotspot.small{width:6%}
.image-hotspot span,.image-special-hotspot span{position:absolute;inset:0;display:block;font-size:0}
.image-hotspot::before,.image-special-hotspot::before{content:"";position:absolute;inset:-10px;border-radius:50%;background:transparent}
.image-hotspot:hover,.image-hotspot:focus-visible,.image-special-hotspot:hover,.image-special-hotspot:focus-visible{outline:2px solid rgba(184,139,40,.65);outline-offset:5px;background:rgba(212,175,55,.08)}
.image-hotspot.found,.image-special-hotspot.found{outline:4px solid rgba(212,175,55,.9);outline-offset:6px;box-shadow:0 0 24px rgba(212,175,55,.7);animation:tablePulse 1s ease-in-out infinite alternate}
.image-special-hotspot{width:6%;}
@keyframes tablePulse{to{transform:translate(-50%,-50%) scale(1.08)}}
.image-hotspot.arrive,.image-special-hotspot.arrive{animation:tablePulse 1s ease-in-out infinite alternate}
.map-note{font-size:13px;color:#8a7968;margin:12px 4px 0}
.seating-quick-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-top:24px}
.table-quick-btn{border:1px solid #dfcda9;background:#fff;border-radius:14px;padding:12px 8px;color:#6b4b2a;font:600 14px Poppins,sans-serif;cursor:pointer;transition:.2s}
.table-quick-btn:hover{transform:translateY(-2px);border-color:#d4af37;box-shadow:0 8px 20px rgba(0,0,0,.07)}
.table-quick-btn strong{display:block;font-size:16px}.table-quick-btn span{font-size:12px;color:#8a7968}
.seating-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:20px;z-index:10000}
.seating-modal.open{display:flex}
.seating-modal-backdrop{position:absolute;inset:0;background:rgba(30,20,10,.58);backdrop-filter:blur(5px)}
.seating-dialog{position:relative;z-index:1;width:min(720px,100%);max-height:min(82vh,760px);overflow:auto;background:#fffaf5;border:1px solid #d9bd82;border-radius:28px;padding:34px;box-shadow:0 25px 80px rgba(0,0,0,.28);text-align:left}
.modal-close{position:absolute;right:16px;top:12px;width:42px;height:42px;border:0;background:transparent;font-size:32px;color:#6b4b2a;cursor:pointer}
.modal-eyebrow{font-size:12px;letter-spacing:3px;color:#b88b28;font-weight:700}
.seating-dialog h3{font-family:'Great Vibes',cursive;font-size:52px;font-weight:400;color:#6b4b2a;margin:2px 0 0}
.modal-subtitle{color:#7d6e5f;margin-bottom:18px}
.guest-list{margin:0;padding-left:28px;display:grid;grid-template-columns:1fr 1fr;gap:8px 28px}
.guest-list li{padding:9px 10px;border:1px solid #eadfcf;border-radius:10px;background:#fff;font-size:15px}
.guest-list li::marker{color:#b88b28;font-weight:700}
@media(max-width:768px){
  .hero-actions{flex-direction:column;gap:10px;width:100%}
  .hero-actions .btn{width:min(320px,100%)}
  .seating-section{padding:65px 12px 50px}
  .seating-section h2{font-size:48px}
  .seating-intro{font-size:15px}
  .seating-search{padding:22px 15px}
  .seating-search label{font-size:30px}
  .search-row{flex-direction:column}
  .search-row input,.search-row button{width:100%}
  .map-heading{align-items:center;flex-direction:column;gap:2px}
  .map-heading span{font-size:32px}
  .seating-map-card{padding:10px;border-radius:20px}
  .seating-map-image-wrap{border-radius:14px}
  .image-hotspot{width:6%;min-width:0}
  .image-hotspot.small{width:6%;min-width:0}
  .image-special-hotspot{width:6%;min-width:0}
  .seating-quick-grid{grid-template-columns:repeat(3,1fr);gap:8px}
  .table-quick-btn{padding:10px 5px;font-size:12px}
  .seating-dialog{padding:28px 18px}
  .seating-dialog h3{font-size:42px}
  .guest-list{grid-template-columns:1fr;gap:7px}
}


/* =======================
   SEATING UX / MOBILE TOUCH FIX
======================= */
body.seating-modal-open{
  overflow:hidden;
  touch-action:none;
}

.image-hotspot,
.image-special-hotspot{
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  user-select:none;
  -webkit-user-select:none;
  cursor:pointer;
}

.image-hotspot:active,
.image-special-hotspot:active{
  background:rgba(212,175,55,.16);
}

.image-hotspot.found,.image-special-hotspot.found{
  z-index:20;
}

.image-hotspot.arrive{
  animation:tableArrival 1.05s cubic-bezier(.2,.8,.2,1) 2;
}

@keyframes tableArrival{
  0%,100%{transform:translate(-50%,-50%) scale(1)}
  35%{transform:translate(-50%,-50%) scale(1.28)}
  65%{transform:translate(-50%,-50%) scale(.96)}
}

.modal-map-btn{
  width:100%;
  justify-content:center;
  margin-top:22px;
}

.guest-list{
  list-style:none;
  padding:0;
}

.guest-list li{
  display:flex;
  align-items:center;
  gap:8px;
}

.guest-number{
  color:#b88b28;
  min-width:26px;
  font-weight:700;
}

.search-found-title{
  margin-bottom:12px;
}

.search-match-list{
  display:grid;
  gap:10px;
  margin-top:12px;
}

.search-match{
  width:100%;
  text-align:left;
  border:1px solid #e2d2b7;
  border-radius:16px;
  padding:14px 16px;
  background:#fff;
  color:#5e4a38;
  cursor:pointer;
  font:inherit;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

.search-match:hover,
.search-match:focus-visible{
  transform:translateY(-2px);
  border-color:#d4af37;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  outline:none;
}

.match-name{
  display:block;
  font-weight:700;
  font-size:17px;
  color:#6b4b2a;
}

.match-table{
  display:block;
  margin-top:2px;
  color:#b88b28;
  font-weight:700;
}

.match-people{
  display:block;
  margin-top:7px;
  font-size:12px;
  line-height:1.55;
  color:#887563;
}

.match-action{
  display:block;
  margin-top:8px;
  font-size:12px;
  font-weight:700;
  color:#9b7918;
}

.search-empty{
  padding:4px 0;
}

@media(max-width:768px){
  .seating-map-image-wrap{
    /* Keep the entire map visible and preserve its proportions. */
    overflow:visible;
  }

  .seating-map-image{
    width:100%;
    height:auto;
    display:block;
  }

  .image-hotspot,
  .image-special-hotspot{
    min-width:40px;
    min-height:40px;
  }

  .image-hotspot.small{
    min-width:38px;
    min-height:38px;
  }

  .seating-modal{
    padding:0;
    align-items:flex-end;
  }

  .seating-modal-backdrop{
    backdrop-filter:blur(4px);
  }

  .seating-dialog{
    width:100%;
    max-width:none;
    max-height:86vh;
    border-radius:28px 28px 0 0;
    padding:28px 18px calc(22px + env(safe-area-inset-bottom));
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    animation:mobileSheetIn .28s ease-out;
  }

  .seating-dialog::before{
    content:"";
    display:block;
    width:42px;
    height:4px;
    border-radius:99px;
    background:#d8c6aa;
    margin:0 auto 15px;
  }

  .modal-close{
    top:17px;
    right:12px;
    width:46px;
    height:46px;
  }

  .seating-dialog h3{
    font-size:44px;
    padding-right:35px;
  }

  .guest-list{
    grid-template-columns:1fr;
    gap:7px;
  }

  .guest-list li{
    min-height:44px;
    padding:10px 12px;
  }

  .modal-map-btn{
    min-height:50px;
    margin-bottom:4px;
  }

  .search-match{
    min-height:72px;
    padding:13px 14px;
  }

  .match-people{
    max-height:82px;
    overflow:hidden;
  }
}

@keyframes mobileSheetIn{
  from{transform:translateY(100%);opacity:.7}
  to{transform:translateY(0);opacity:1}
}

@media(prefers-reduced-motion:reduce){
  .image-hotspot.arrive,
  .seating-dialog{
    animation:none !important;
  }
}

/* Final wedding notes + exact search */
.wedding-seating-note{
  margin:0 auto 22px;
  max-width:760px;
  text-align:center;
  padding:18px 20px;
  border:1px solid rgba(184,139,40,.28);
  border-radius:18px;
  background:rgba(255,255,255,.58);
}
.wedding-seating-note-title{
  margin:0 0 5px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#9b7918;
}
.wedding-seating-note p{
  margin:5px 0;
}
.wedding-seating-note .site-credit{
  margin-top:11px;
  font-size:12px;
  color:#887563;
}
.exact-search-note{
  margin:7px 0 0;
  font-size:12px;
  color:#8a7868;
}
.search-hint{
  font-size:13px;
  color:#8a7868;
}

/* Klikabilna imena u meniju stola */
.guest-list li{
  padding:0;
}
.guest-name-link{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  gap:8px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:inherit;
  padding:9px 10px;
  text-align:left;
  font:inherit;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  transition:background .18s ease, transform .18s ease;
}
.guest-name-link:hover,
.guest-name-link:focus-visible{
  background:rgba(212,175,55,.10);
  outline:none;
}
.guest-name-link:active{
  transform:scale(.985);
  background:rgba(212,175,55,.18);
}
.guest-name-text{
  flex:1;
}
.guest-go-icon{
  color:#b88b28;
  font-weight:700;
  font-size:18px;
  opacity:.75;
}
@media(max-width:768px){
  .guest-name-link{
    min-height:52px;
    padding:10px 12px;
  }
  .guest-go-icon{
    font-size:20px;
  }
}

/* =======================
   2026 POLISH / DESKTOP REFINEMENT
======================= */
.hero .quote .pulse-heart{
  display:inline-block;
  color:#f3c928;
  font-size:1.16em;
  text-shadow:0 0 12px rgba(243,201,40,.55);
  animation:heartPulse 1.15s ease-in-out infinite;
  transform-origin:center;
}

@keyframes heartPulse{
  0%,100%{transform:scale(1)}
  35%{transform:scale(1.22)}
  55%{transform:scale(1.08)}
}

.calendar-btn{
  background:rgba(255,255,255,.13);
  color:#fff;
  border:1px solid rgba(255,255,255,.62);
  backdrop-filter:blur(8px);
}
.calendar-btn:hover{
  background:rgba(255,255,255,.22);
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}

/* Desktop: mapa više nije nepotrebno širok, ali na telefonu ostaje puna širina. */
.seating-map-card{
  max-width:960px;
  margin:0 auto;
}
.seating-map-image-wrap{
  width:min(100%,850px);
  margin:0 auto;
}

/* Mladenački sto prati stvarni pravougaoni oblik sa skice, umjesto kružne animacije. */
.image-special-hotspot[data-table="mladi"]{
  width:6.2%;
  height:23.2%;
  aspect-ratio:auto;
  border-radius:8px;
  transform:translate(-50%,-50%);
}
.image-special-hotspot[data-table="mladi"]:hover,
.image-special-hotspot[data-table="mladi"]:focus-visible{
  outline:2px solid rgba(184,139,40,.75);
  outline-offset:4px;
  background:rgba(212,175,55,.08);
}
.image-special-hotspot[data-table="mladi"].found{
  outline:4px solid rgba(212,175,55,.95);
  outline-offset:5px;
  box-shadow:0 0 28px rgba(212,175,55,.72);
  animation:youngTablePulse 1.05s ease-in-out infinite alternate;
}
@keyframes youngTablePulse{
  from{transform:translate(-50%,-50%) scale(1)}
  to{transform:translate(-50%,-50%) scale(1.025)}
}

/* Jasnije istaknut Mladenački sto u brzom izboru. */
.table-quick-btn.young-table{
  border-color:rgba(212,175,55,.72);
  background:linear-gradient(145deg,#fffdf6,#fff8df);
  box-shadow:0 8px 24px rgba(212,175,55,.12);
}
.table-quick-btn.young-table strong{color:#9b7918}

.music-btn.playing{
  animation:musicGlow 1.8s ease-in-out infinite;
}
@keyframes musicGlow{
  0%,100%{box-shadow:0 10px 25px rgba(0,0,0,.25),0 0 0 rgba(212,175,55,0)}
  50%{box-shadow:0 10px 25px rgba(0,0,0,.25),0 0 22px rgba(212,175,55,.58)}
}

@media(min-width:769px){
  .seating-section h2{margin-top:2px}
  .seating-intro{max-width:760px;margin-left:auto;margin-right:auto}
  .seating-quick-grid{max-width:960px;margin-left:auto;margin-right:auto}
}

@media(max-width:768px){
  .seating-map-card{max-width:none}
  .seating-map-image-wrap{width:100%;max-width:none}
  .image-special-hotspot[data-table="mladi"]{
    width:8.8%;
    height:22.5%;
    min-width:0;
    min-height:0;
    border-radius:7px;
  }
  .calendar-btn{border-color:rgba(255,255,255,.7)}
}

@media(prefers-reduced-motion:reduce){
  .hero .quote .pulse-heart,
  .music-btn.playing,
  .image-special-hotspot[data-table="mladi"].found{
    animation:none !important;
  }
}
