/* ===== Agustin & Eva — Wedding Invitation ===== */

:root{
  --burgundy: #6B1F2C;
  --burgundy-deep: #591621;
  --burgundy-ink: #7A2332;
  --cream: #F5EFE6;
  --cream-warm: #F2EAD8;
  --ink-on-cream: #7A2332;
  --line-on-burgundy: rgba(245, 239, 230, 0.92);
  --line-on-cream: #8A2A38;
  --muted-on-burgundy: rgba(245, 239, 230, 0.72);
  --muted-on-cream: rgba(122, 35, 50, 0.72);
  --radius-input: 999px;

  --ff-script: "Pinyon Script", "Alex Brush", "Great Vibes", cursive;
  --ff-sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ff-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html{
  scroll-behavior: auto;
}

body{
  font-family: var(--ff-sans);
  background: var(--cream);
  color: var(--ink-on-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  touch-action: pan-y pinch-zoom;
}

/* ---- Sections ---- */
section{
  position: relative;
  padding: 96px 28px;
  overflow: hidden;
}

.sec-burgundy{
  background: var(--burgundy);
  color: var(--cream);
}
.sec-cream{
  background: var(--cream);
  color: var(--ink-on-cream);
}

.container{
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 768px){
  section{ padding: 140px 32px; }
  .container{ max-width: 520px; }
  body{ font-size: 16px; }
}

/* ---- Wider containers on large screens ---- */
@media (min-width: 1024px){
  .container{ max-width: 800px; }
  .hero .container{ max-width: 620px; }
  .hero .car-illo{ max-width: 620px; }
  .hero .hero-announce{ max-width: 440px; }
  #location .container{ max-width: 520px; }
}
@media (min-width: 1440px){
  .container{ max-width: 1000px; }
  .hero .container{ max-width: 720px; }
  .hero .car-illo{ max-width: 700px; }
  .hero .hero-announce{ max-width: 500px; }
  #location .container{ max-width: 520px; }
}
@media (min-width: 1920px){
  .container{ max-width: 1300px; }
  .hero .container{ max-width: 1200px; }
  .hero .car-illo{ max-width: 900px; }
  .hero .hero-announce{ max-width: 700px; }
  #location .container{ max-width: 520px; }
}

/* ---- Typography ---- */
.script{
  font-family: var(--ff-script);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

.section-title{
  font-family: var(--ff-script);
  font-size: clamp(56px, 13vw, 92px);
  text-align: center;
  margin: 0 0 14px;
  line-height: 1.05;
  white-space: nowrap;
}

.section-sub{
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 14px 0 56px;
  color: inherit;
  opacity: 0.9;
}

/* ---- Hero ---- */
.hero{
  padding: 36px 28px 48px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.hero-inner{
  width: 100%;
  text-align: center;
}

.hero .nos-casamos{
  font-family: var(--ff-script);
  font-size: clamp(90px, 20vw, 120px);
  transform: rotate(-6deg);
  display: inline-block;
  margin: 0 0 24px;
}

.hero .car-illo{
  width: 100%;
  max-width: 540px;
  height: auto;
  margin: 8px auto 40px;
  display: block;
}

.couple-names{
  font-family: var(--ff-script);
  font-size: clamp(64px, 15vw, 96px);
  margin: 0 0 40px;
  line-height: 1;
}

.date-frame{
  position: relative;
  display: inline-block;
  padding: 22px 44px;
  margin: 0 0 36px;
}
.date-frame-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--line-on-burgundy);
}
.date-frame-text{
  position: relative;
  font-family: var(--ff-sans);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 17px;
  white-space: nowrap;
}

.hero-announce{
  max-width: 380px;
  margin: 0 auto;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 2;
  text-transform: uppercase;
}

/* ---- Location ---- */
#location{ padding: 56px 28px 64px; }
.loc-cards{
  display: grid;
  gap: 24px;
  justify-items: center;
}
.loc-cards.loc-cards-single{
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.loc-cards-single .loc-card{
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.loc-card{
  position: relative;
  padding: 40px 28px 36px;
  text-align: center;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.loc-card, .loc-card * { text-decoration: none; }
.loc-card:hover{ transform: translateY(-3px); }
.loc-frame-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--line-on-cream);
}
.loc-illo{
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto 20px;
  display: block;
}
.loc-title{
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 15px;
  margin: 0 0 6px;
}
.loc-name{
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.loc-time{
  letter-spacing: 0.18em;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 18px;
}
.loc-btn{
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-on-cream);
  text-decoration: none;
  padding: 6px 2px;
  transition: opacity 0.2s ease;
}
.loc-btn:hover{ opacity: 0.65; }

/* ---- Itinerary ---- */
/* Mobile-first: 2 columns, no borders */
#itinerary .section-title{
  font-size: clamp(72px, 16vw, 110px);
  margin-bottom: 24px;
}

.itin-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: center;
  margin-bottom: 0;
}

/* Tablet: 2 columns */
@media (min-width: 768px){
  .itin-grid{
    gap: 28px 16px;
    margin-bottom: 24px;
  }
}

/* Desktop: 4 columns */
@media (min-width: 1024px){
  .itin-grid{
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 24px;
  }
}

.itin-title{
  font-weight: 600;
  letter-spacing: 0.26em;
  font-size: 14px;
  margin: 0 0 6px;
}
@media (min-width: 768px){
  .itin-title{
    font-size: 13px;
    letter-spacing: 0.28em;
    margin: 0 0 8px;
  }
}

.itin-divider{
  width: 44px;
  height: 10px;
  margin: 0 auto 8px;
  display: none;
  stroke: var(--line-on-burgundy);
  fill: none;
}
@media (min-width: 768px){
  .itin-divider{
    display: block;
  }
}
.itin-time{
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 16px;
  margin: 0;
}
@media (min-width: 768px){
  .itin-time{
    font-weight: 500;
    letter-spacing: 0.2em;
    font-size: 14px;
  }
}

/* Photo inside each itinerary block */
.itin-photo{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
  margin: 5px auto 0;
}
@media (min-width: 768px){
  .itin-photo{
    max-width: 280px;
  }
}
@media (min-width: 1024px){
  .itin-photo{
    max-width: 360px;
  }
}

/* ---- RSVP form ---- */
.form-field{
  margin-bottom: 18px;
}
.form-field label{
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-on-cream);
}
.form-field input,
.form-field select,
.form-field textarea{
  width: 100%;
  border: 1.5px solid var(--line-on-cream);
  border-radius: 999px;
  background: transparent;
  padding: 14px 20px;
  font-family: var(--ff-sans);
  font-size: 14px;
  color: var(--ink-on-cream);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-field textarea{
  border-radius: 24px;
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}
.form-field input::placeholder,
.form-field textarea::placeholder{
  color: rgba(122, 35, 50, 0.5);
  font-style: italic;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(107, 31, 44, 0.08);
}
.form-field.error input,
.form-field.error select,
.form-field.error textarea{
  border-color: #b8323f;
  box-shadow: 0 0 0 3px rgba(184, 50, 63, 0.12);
}
.form-field .err-msg{
  display: none;
  font-size: 11px;
  margin-top: 6px;
  letter-spacing: 0.05em;
  color: #b8323f;
  padding-left: 6px;
}
.form-field.error .err-msg{ display: block; }

/* ---- Additional people ---- */
.additional-people{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.person-row{
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.3s ease both;
}

.person-input{
  flex: 1;
  border: 1.5px solid var(--line-on-cream);
  border-radius: 999px;
  background: transparent;
  padding: 12px 20px;
  font-family: var(--ff-sans);
  font-size: 14px;
  color: var(--ink-on-cream);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.person-input::placeholder{
  color: rgba(122, 35, 50, 0.5);
  font-style: italic;
}
.person-input:focus{
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(107, 31, 44, 0.08);
}

.btn-remove-person{
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line-on-cream);
  background: transparent;
  color: var(--ink-on-cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-remove-person svg{
  width: 14px;
  height: 14px;
}
.btn-remove-person:hover{
  background: #b8323f;
  color: #fff;
  border-color: #b8323f;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

.btn-add-person{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px dashed var(--line-on-cream);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-on-cream);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-top: 4px;
}
.btn-add-person svg{
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.btn-add-person:hover{
  background: rgba(107, 31, 44, 0.06);
  border-color: var(--burgundy);
}

.form-field select{
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A2332' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
  background-size: 12px;
  padding-right: 48px;
}

.btn-primary{
  display: block;
  width: 100%;
  background: var(--burgundy);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 18px 24px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  font-family: var(--ff-sans);
}
.btn-primary:hover{ background: var(--burgundy-deep); }
.btn-primary:active{ transform: scale(0.98); }
.btn-primary[disabled]{ opacity: 0.65; cursor: not-allowed; }

#rsvp .section-title{
  font-size: clamp(64px, 14vw, 92px);
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}

.rsvp-success{
  display: none;
  margin-top: 24px;
  padding: 28px 24px;
  border: 1.5px solid var(--line-on-cream);
  border-radius: 24px;
  text-align: center;
}
.rsvp-success.show{ display: block; animation: fadeUp 0.6s ease both; }

/* ---- Re-submission notice ---- */
.rsvp-resubmit-notice{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1.5px solid #8A2A38;
  border-radius: 14px;
  background: rgba(138, 42, 56, 0.06);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-on-cream);
  line-height: 1.5;
  animation: fadeUp 0.4s ease both;
}
.rsvp-resubmit-notice svg{
  flex-shrink: 0;
  color: var(--burgundy);
}
.rsvp-success .script{
  font-size: 42px;
  margin: 0 0 8px;
}
.rsvp-success p{
  font-size: 11.5px;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

/* ---- Flourish divider ---- */
.flourish-divider{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 36px auto 4px;
  color: var(--line-on-cream);
  opacity: 0.5;
}
.flourish-divider svg{
  width: 100%;
  max-width: 160px;
  height: auto;
}

/* ---- Bank account / gift info ---- */
.bank-info{
  margin-top: 48px;
  padding: 28px 24px;
  border: 1.5px solid var(--line-on-cream);
  border-radius: 24px;
  text-align: center;
}
.bank-info p{
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(20px, 4.5vw, 26px);
  letter-spacing: 0.005em;
  margin: 0 0 14px;
  color: var(--ink-on-cream);
  line-height: 1.35;
}
.bank-info .bank-account{
  font-family: var(--ff-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 0;
}

/* ---- Playlist ---- */
.playlist-title{
  font-family: var(--ff-script);
  font-size: clamp(48px, 11vw, 72px);
  text-align: center;
  margin: 0 0 0;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.playlist-desc{
  text-align: center;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
  margin: 0 auto 28px;
  max-width: 380px;
}
.playlist-search{
  position: relative;
  margin-bottom: 24px;
}
.playlist-search input{
  width: 100%;
  border: 1.5px solid var(--line-on-cream);
  border-radius: 999px;
  background: transparent;
  padding: 14px 24px 14px 48px;
  font-family: var(--ff-sans);
  font-size: 13px;
  color: var(--ink-on-cream);
  outline: none;
  font-style: italic;
}
.playlist-search input:focus{
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(107, 31, 44, 0.08);
}
.playlist-search input::placeholder{
  color: rgba(122, 35, 50, 0.5);
  font-style: italic;
}
.playlist-search .search-icon{
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-on-cream);
  opacity: 0.7;
  pointer-events: none;
}
.playlist-results{
  margin-top: -12px;
  margin-bottom: 24px;
  border: 1.5px solid var(--line-on-cream);
  border-radius: 18px;
  overflow: hidden;
  display: none;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.playlist-results.show{ display: block; }
.result-row{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(122, 35, 50, 0.15);
  cursor: pointer;
  transition: background 0.15s ease;
}
.result-row:last-child{ border-bottom: none; }
.result-row:hover{ background: rgba(122, 35, 50, 0.06); }
.result-thumb{
  width: 36px; height: 36px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-deep));
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-script);
  font-size: 20px;
  flex-shrink: 0;
}
.result-meta{ flex: 1; min-width: 0; }
.result-name{
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--burgundy);
}
.result-artist{
  font-size: 11.5px;
  font-style: italic;
  color: var(--muted-on-cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.result-add{
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line-on-cream);
  background: transparent;
  color: var(--burgundy);
  font-size: 18px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.result-add:hover{ background: var(--burgundy); color: var(--cream); }
.result-add.added{ background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }

/* Playlist table */
.playlist-table-wrap{
  border: 1.5px solid var(--line-on-cream);
  border-radius: 28px;
  padding: 8px 4px 8px;
  overflow: hidden;
}
.playlist-table{
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 11.5px;
}
.playlist-table thead th:first-child{
  text-align: left;
  padding-left: 41px;
}

.playlist-table thead th{
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 14px 8px 10px;
  text-align: left;
  color: var(--burgundy);
  font-size: 11px;
  font-family: var(--ff-sans);
}
.playlist-table thead th:first-child{ width: 48%; }
.playlist-table thead th:nth-child(2){ width: 30%; }
.playlist-table thead th:nth-child(3){ width: 60px; }
.playlist-table tbody td{
  padding: 11px 8px;
  text-align: center;
  border-top: 1px solid rgba(122, 35, 50, 0.18);
  vertical-align: middle;
}
.playlist-table tbody tr:first-child td{ border-top: 1px solid rgba(122, 35, 50, 0.28); }
.playlist-table .song-col{
  font-weight: 600;
  color: var(--burgundy);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playlist-table .artist-col{
  font-style: italic;
  color: var(--muted-on-cream);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playlist-table .play-col{ width: 60px; padding-right: 6px; white-space: nowrap; text-align: left; }
.playlist-empty{
  text-align: center;
  padding: 28px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-on-cream);
  text-transform: uppercase;
}

/* ---- Gallery / App ---- */
#gallery .section-sub{
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 24px;
}

.gallery-card{
  max-width: 380px;
  margin: 0 auto;
  padding: 44px 32px 40px;
  border: 1.5px solid var(--line-on-cream);
  border-radius: 28px;
  text-align: center;
  position: relative;
}
.camera-illo{
  width: 110px;
  height: auto;
  margin: 0 auto 24px;
  display: block;
  color: var(--line-on-cream);
}
.gallery-card h3{
  font-family: var(--ff-script);
  font-size: 44px;
  margin: 0 0 12px;
  line-height: 1.05;
}
.gallery-card p{
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.9;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 20px;
}
.app-badges{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.app-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--line-on-cream);
  border-radius: 999px;
  color: var(--burgundy);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.app-badge:hover{ background: var(--burgundy); color: var(--cream); }
.app-badge svg{ width: 14px; height: 14px; }
.app-code{
  margin-top: 28px;
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  opacity: 0.75;
}
.app-code strong{ color: var(--burgundy); font-weight: 700; letter-spacing: 0.28em; }

/* ---- Closing ---- */
#closing{
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
}
#closing .container{
  width: 100%;
  text-align: center;
}
.closing-quote{
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(25px, 5.2vw, 30px);
  text-align: center;
  line-height: 1.28;
  margin: 0 auto 40px;
  max-width: 380px;
  letter-spacing: 0.005em;
}
.countdown-frame{
  position: relative;
  display: block;
  margin: 0 auto 52px;
  padding: 22px 0;
  max-width: 300px;
}
.countdown-frame-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--line-on-burgundy);
}
.countdown-text{
  position: relative;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 15px;
}
.closing-couple{
  font-family: var(--ff-script);
  font-size: clamp(48px, 11vw, 68px);
  text-align: center;
  margin: 0 0 48px;
  line-height: 1;
}
.closing-illo{
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* ---- Reveal animation ---- */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in{
  opacity: 1;
  transform: none;
}

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

/* ---- Top scroll progress ---- */
.progress-bar{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--burgundy);
  width: 0;
  z-index: 999;
  will-change: width, opacity;
  transform: translateZ(0);
  transition: width 0.08s linear, background 0.2s ease, opacity 0.25s ease;
}
.progress-bar.hidden{
  opacity: 0;
}

/* ---- Very small screens: ensure hero always fits ---- */
@media (max-width: 374px){
  .hero{
    padding: 16px 16px 28px;
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero .nos-casamos{
    font-size: 68px;
  }
  .hero .car-illo{
    max-width: 100%;
    margin-bottom: 20px;
  }
  .couple-names{
    font-size: 40px;
    margin-bottom: 24px;
  }
  .date-frame{
    padding: 16px 28px;
    margin-bottom: 24px;
  }
  .date-frame-text{
    font-size: 13px;
    letter-spacing: 0.14em;
  }
  .hero-announce{
    font-size: 10.5px;
    letter-spacing: 0.1em;
    max-width: 280px;
  }
}

/* ---- Desktop niceties ---- */
@media (min-width: 768px){
  #location{ padding: 72px 32px 80px; }
}
@media (min-width: 900px){
  .loc-cards:not(.loc-cards-single){
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .container.loc-container{ max-width: 860px; }
  /* When there's a single location card, keep the container tight so it's centered */
  .container.loc-container:has(.loc-cards-single){ max-width: 520px; }
  .loc-cards.loc-cards-single{ max-width: 520px; }
  .loc-cards-single .loc-card{ max-width: 520px; }
  .loc-title{ font-size: 17px; }
  .loc-name{ font-size: 14px; }
  .loc-time{ font-size: 17px; }
  .loc-btn{ font-size: 12px; }
}
@media (min-width: 1440px){
  .container.loc-container:has(.loc-cards-single){ max-width: 620px; }
  .loc-cards.loc-cards-single{ max-width: 620px; }
  .loc-cards-single .loc-card{ max-width: 620px; }
  .loc-title{ font-size: 19px; }
  .loc-name{ font-size: 15px; }
  .loc-time{ font-size: 19px; }
  .loc-btn{ font-size: 13px; }
}
@media (min-width: 1920px){
  .container.loc-container:has(.loc-cards-single){ max-width: 720px; }
  .loc-cards.loc-cards-single{ max-width: 720px; }
  .loc-cards-single .loc-card{ max-width: 720px; }
  .loc-title{ font-size: 21px; }
  .loc-name{ font-size: 16px; }
  .loc-time{ font-size: 21px; }
  .loc-btn{ font-size: 14px; }
}

/* ---- Playlist on burgundy background ---- */
/* ==== Playlist on burgundy — hard overrides ==== */
#playlist .playlist-title,
#playlist .playlist-desc{ color: var(--cream); }
#playlist .playlist-search input{
  background: rgba(245, 239, 230, 0.08);
  border: 1.5px solid rgba(245, 239, 230, 0.55);
  color: var(--cream);
}
#playlist .playlist-search input:focus{
  border-color: var(--cream);
  box-shadow: 0 0 0 3px rgba(245, 239, 230, 0.14);
}
#playlist .playlist-search input::placeholder{
  color: rgba(245, 239, 230, 0.6);
}
#playlist .playlist-search .search-icon{ color: var(--cream); opacity: 0.85; }

#playlist .playlist-results{
  background: var(--cream);
  border: 1.5px solid var(--cream);
  border-radius: 14px;
  overflow: hidden auto;
  overscroll-behavior: contain;
}
#playlist .result-row{ border-bottom: 1px solid rgba(122, 35, 50, 0.15); color: var(--ink-on-cream); }
#playlist .result-row:hover{ background: rgba(122, 35, 50, 0.08); }
#playlist .result-name{ color: var(--burgundy); }
#playlist .result-artist{ color: rgba(122, 35, 50, 0.7); }
#playlist .result-add{ border-color: var(--burgundy); color: var(--burgundy); }
#playlist .result-add:hover, #playlist .result-add.added{ background: var(--burgundy); color: var(--cream); }

#playlist .playlist-table-wrap{
  border: 1.5px solid rgba(245, 239, 230, 0.75);
  background: rgba(245, 239, 230, 0.04);
}
#playlist .playlist-table thead th:first-child{
  text-align: left;
  padding-left: 41px;
}

#playlist .playlist-table thead th{
  color: var(--cream);
  border-bottom: 1.5px solid rgba(245, 239, 230, 0.6);
}
#playlist .playlist-table tbody td{
  border-top: 1px solid rgba(245, 239, 230, 0.22);
  color: var(--cream);
}
#playlist .playlist-table tbody tr:first-child td{ border-top-color: transparent; }
#playlist .playlist-table .song-col{ color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#playlist .playlist-table .artist-col{ color: rgba(245, 239, 230, 0.8); }
#playlist .playlist-empty{ color: rgba(245, 239, 230, 0.85); }
/* ---- Cover + title merged in one column ---- */
.song-cover{
  width: 26px; height: 26px;
  border-radius: 4px;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  flex-shrink: 0;
}
.song-cover-placeholder{
  width: 26px; height: 26px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-deep));
  color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-script);
  font-size: 13px;
  vertical-align: middle;
  margin-right: 7px;
  flex-shrink: 0;
}
.song-name-text{
  vertical-align: middle;
}

/* ---- Preview button ---- */
.preview-btn{
  background: transparent;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-right: 6px;
  vertical-align: middle;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.preview-btn:hover{ transform: scale(1.1); }
.preview-btn.playing{
  background: var(--cream);
  color: var(--burgundy);
  border-color: var(--cream);
}

/* Preview button inside search results (smaller, cream bg area) */
.result-prev{
  width: 26px; height: 26px;
  margin-right: 4px;
  border-color: var(--line-on-cream);
  color: var(--burgundy);
}
.result-prev:hover{
  background: rgba(107, 31, 44, 0.1);
}
.result-prev.playing{
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
}
#playlist .preview-btn{ color: var(--cream); }
#playlist .preview-btn.playing{
  background: var(--cream);
  color: var(--burgundy);
  border-color: var(--cream);
}
/* Fix preview button visibility inside search results (cream bg on burgundy section) */
#playlist .result-prev,
#playlist .result-prev:hover{
  color: var(--burgundy);
  border-color: var(--burgundy);
}
#playlist .result-prev.playing{
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
}

/* ---- Remove song button ---- */
.btn-remove-song{
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  padding: 4px;
  line-height: 0;
  vertical-align: middle;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.btn-remove-song:hover{
  opacity: 1;
  color: #b8323f;
}

/* Empty preview placeholder (keeps alignment when no preview) */
.preview-btn-empty{
  visibility: hidden;
  pointer-events: none;
}

/* ---- Search result cover ---- */
.result-cover{
  width: 40px; height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ---- Loading spinner ---- */
.results-loading{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted-on-cream);
}
.results-loading-more{
  justify-content: center;
  padding: 12px;
  border-top: 1px solid rgba(122, 35, 50, 0.1);
}
.spinner{
  width: 16px; height: 16px;
  border: 2px solid rgba(122, 35, 50, 0.2);
  border-top-color: var(--burgundy);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Messages inside results dropdown (cream bg → dark text) ---- */
.results-msg{
  padding: 16px 18px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted-on-cream);
  text-transform: uppercase;
}
.results-msg-error{
  color: #b8323f;
}
