:root {
  --sage: #bdc8b1;
  --blue: #00497b;
  --gold: #977614;
  --ink: #1d1d1f;
  --line: #bdc8b1;
  --bg: #fafafa;
  --error: #b3261e;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--blue);
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; }

/* ---------- Nav + framed hero (per Home.pdf) ---------- */
.site-head {
  padding: 40px 16px 45px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 23px;
}
.nav a {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--blue);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--blue); }

.hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 7.08vw, 102px);
}
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--sage);
}

/* ---------- Pages ---------- */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 84px 16px 40px;
}
.page h1 {
  font-weight: 400;
  font-size: 36px;
  text-align: center;
  margin: 0 0 56px;
  letter-spacing: .02em;
}
.center { text-align: center; }
.lead { margin: 0 0 24px; }
.day {
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .2em;
  margin: 48px 0 24px;
}
.page .day:first-of-type { margin-top: 0; }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0 0 24px 13px;
  padding: 0 0 0 32px;
  border-left: 1px solid var(--line);
}
.timeline li {
  position: relative;
  padding-bottom: 40px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 6px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
}
.time {
  font-size: 13px;
  letter-spacing: .06em;
  margin: 0 0 4px;
}
.timeline h3 {
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 12px;
}
.meta {
  color: var(--gold);
  font-size: 13px;
  margin: 0 0 6px;
}
.meta .loc { text-decoration: none; }
.meta .loc, .dress { display: inline-flex; align-items: center; gap: 8px; }
.meta .loc::before, .dress::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.meta .loc { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.dress { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5.5a2 2 0 1 1 2 2v1.6L3.4 15.6a1 1 0 0 0 .6 1.9h16a1 1 0 0 0 .6-1.9L12 9.1'/%3E%3C/svg%3E"); }
.desc { margin: 12px 0 16px; }
.cal {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .12em;
  text-decoration: none;
}
.cal:hover, .meta .loc:hover { text-decoration: underline; }

/* Accommodation */
.code {
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold);
}
.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  margin: 40px -100px 32px;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.photo-grid .big { grid-row: span 2; }
.gold-link { color: var(--gold); }

/* Wishlist */
.gift-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 36px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
}
.gift-btn:hover { background: #003a62; }
.small { font-size: 14px; color: var(--gold); }

/* FAQ */
.faq dt {
  font-size: 22px;
  margin: 40px 0 10px;
}
.faq dd {
  margin: 0;
}
.faq a { color: var(--gold); }

/* ---------- RSVP form ---------- */
.rsvp {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}
.rsvp .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rsvp label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.rsvp input:not([type=radio]):not([type=checkbox]),
.rsvp textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  width: 100%;
}
.rsvp input:focus, .rsvp textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.rsvp fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px 16px;
  margin: 0;
  display: grid;
  gap: 8px;
}
.rsvp legend { font-size: 14px; padding: 0 6px; }
.rsvp .choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
}
.rsvp .choice input { accent-color: var(--blue); width: 18px; height: 18px; }
.if-attending { display: grid; gap: 20px; }
.if-attending[hidden] { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rsvp button, .pill-btn {
  justify-self: center;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .04em;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  padding: 12px 32px;
  cursor: pointer;
}
.rsvp button:disabled { opacity: .6; cursor: progress; }
.form-status { text-align: center; margin: 0; min-height: 1.5em; font-size: 15px; }
.form-status.error { color: var(--error); }
.invalid { border-color: var(--error) !important; }
.link-btn {
  font: inherit;
  color: var(--gold);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Footer ---------- */
footer {
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
}
.pill {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 20px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}
.pill-btn {
  background: var(--gold);
  text-decoration: none;
  padding: 9px 20px;
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .photo-grid { margin-left: 0; margin-right: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-head { padding: 22px 12px 20px; }
  .nav { gap: 6px 16px; }
  .nav a { font-size: 14px; }
  main { padding-top: 48px; }
  .page h1 { font-size: 28px; margin-bottom: 36px; }
  .timeline h3 { font-size: 21px; }
  .rsvp .row { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .photo-grid .big { grid-row: auto; }
}

/* One typeface everywhere: Raleway, with bold capped at the loaded 600 weight */
strong, b { font-weight: 600; }
input, textarea, select, button { font-family: inherit; }

/* ---------- Gallery ---------- */
.gallery-bar { text-align: center; margin-bottom: 24px; }
.gallery-filter { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.gallery-filter button {
  font: inherit; font-size: 14px; color: var(--blue);
  background: none; border: 0; border-radius: 999px; padding: 6px 16px; cursor: pointer;
}
.gallery-filter button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.gallery-total { margin: 12px 0 0; font-size: 14px; color: var(--gold); }
.gallery-hint { margin: 4px 0 0; font-size: 14px; }
.gallery-grid {
  list-style: none; padding: 0;
  margin: 0 -100px;
  display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.tile { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--sage); }
.tile-open { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.tile-open img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.tile-open:hover img { transform: scale(1.04); }
.tile-open:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.tile-open.no-thumb { display: grid; place-items: center; color: var(--blue); }
.is-video .tile-open::after {
  content: "▶"; position: absolute; left: 10px; bottom: 8px;
  color: #fff; font-size: 18px; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none;
}
.tile-dl {
  position: absolute; right: 8px; bottom: 8px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.tile-dl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile-dl:hover { background: #fff; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(15, 20, 25, .94); color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: 56px 1fr 56px; grid-template-rows: 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(15, 20, 25, .94); }
.lb-media { margin: 0; grid-column: 2; grid-row: 1; height: 100%; display: grid; place-items: center; min-width: 0; padding: 48px 0 8px; }
.lb-media img, .lb-media video { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 2px; }
.lightbox button { font: inherit; color: #fff; background: none; border: 0; cursor: pointer; }
.lb-prev, .lb-next { font-size: 44px; line-height: 1; height: 100%; grid-row: 1; }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }
.lb-close { position: absolute; top: 8px; right: 14px; font-size: 36px; line-height: 1; z-index: 1; }
.lb-bar { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; align-items: center; gap: 20px; padding: 12px 16px 20px; }
.lb-count { font-size: 14px; opacity: .8; }
.lb-download {
  color: var(--blue); background: #fff; text-decoration: none;
  padding: 9px 24px; border-radius: 999px; font-weight: 500; font-size: 15px;
}

@media (max-width: 960px) {
  .gallery-grid { margin: 0; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .tile-dl { width: 28px; height: 28px; right: 4px; bottom: 4px; }
  .tile-dl svg { width: 15px; height: 15px; }
  .lightbox[open] { grid-template-columns: 36px 1fr 36px; }
  .lb-prev, .lb-next { font-size: 34px; }
}

/* RSVP submit button in the site's gold */
.rsvp button[type="submit"] { background: var(--gold); }
.rsvp button[type="submit"]:hover { background: #7f6311; }

/* RSVP field-level errors */
.rsvp .field { display: grid; gap: 6px; align-content: start; font-size: 14px; }
.field-hint { color: var(--gold); font-size: 12px; }
.field-error { margin: 0; font-size: 13px; line-height: 1.4; color: var(--error); }
.field-error .fix-btn {
  font: inherit; font-weight: 600; color: var(--blue); background: none; border: 0; padding: 0;
  text-decoration: underline; cursor: pointer; margin-left: 4px;
}
.rsvp input[aria-invalid="true"] { border-color: var(--error) !important; }
.rsvp input::placeholder { color: #9aa5b1; }
.rsvp .field label { display: block; }

/* Thank-you heart — same red as the tab icon */
.thanks .heart { width: 1.1em; height: 1.1em; vertical-align: -0.15em; margin-left: 4px; fill: #dd4c23; }

/* Extra breathing room above the RSVP submit button */
.rsvp button[type="submit"] { margin-top: 55px; }

/* Footer bar: site blue with white text, gold RSVP button */
.pill { background: var(--sage); color: var(--blue); }
.pill-btn { background: var(--gold); color: #fff; }
.pill-btn:hover { background: #7f6311; }

/* Anything marked hidden stays hidden, even if a layout rule sets display */
[hidden] { display: none !important; }

/* RSVP stands out in gold in the navigation */
.nav a.nav-rsvp { color: var(--gold); }
.nav a.nav-rsvp[aria-current="page"] { border-bottom-color: var(--gold); }

/* Rounded hero corners */
.hero-img { border-radius: 40px; }
@media (max-width: 600px) { .hero-img { border-radius: 24px; } }

/* Add to calendar: Google + Apple */
.cal-row { margin: 0; font-size: 11px; letter-spacing: .12em; color: var(--gold); }
.cal-row .cal { font-weight: 600; }
.cal-sep { margin: 0 6px; }

/* Keep the Wishlist button the same size it had with "Допринеси за круиза" */
.gift-btn { min-width: 261px; text-align: center; }

/* ---------- Настаняване (per Настаняване.pdf) ---------- */
body.no-hero main { padding-top: 24px; }
.stay-top {
  display: block;
  width: min(366px, 64vw);
  height: auto;
  margin: 0 auto 62px;
}
.stay-pair {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1106px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin: 72px 0 64px;
}
.stay-pair img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
  .stay-pair { grid-template-columns: 1fr; gap: 24px; margin: 48px 0; }
}

/* ---------- Phone menu (per m.Home.pdf + Menu_Open.pdf) ---------- */
.menu-btn, .menu-close, .menu-heart { display: none; }

@media (max-width: 600px) {
  .site-head { position: relative; height: 47px; padding: 0; }

  /* Gold burger, top right */
  .menu-btn {
    display: flex; align-items: center; justify-content: flex-end;
    position: absolute; top: 1px; right: 4px;
    width: 44px; height: 44px; padding: 0 10px 0 0;
    background: none; border: 0; cursor: pointer;
  }
  .menu-btn svg { width: 31.6px; height: 19px; overflow: visible; }
  .menu-btn path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }

  /* Full-screen menu */
  .nav {
    display: none;
    position: fixed; inset: 0; z-index: 100;
    background: var(--sage);
    flex-direction: column; flex-wrap: nowrap;
    align-items: center; justify-content: center;
    gap: 19px;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { display: flex; }
  .nav a, .nav a.nav-rsvp { font-size: 20px; color: var(--blue); letter-spacing: .02em; }
  .nav a[aria-current="page"], .nav a.nav-rsvp[aria-current="page"] { border-bottom-color: var(--blue); }
  .nav a:hover { border-bottom-color: transparent; }

  .menu-close {
    display: grid; place-items: center;
    position: absolute; top: 40px; right: 23px;
    width: 52px; height: 52px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-close svg { width: 26px; height: 26px; }
  .menu-close path { fill: none; stroke: var(--blue); stroke-width: 1.4; }

  .menu-heart {
    display: block;
    position: absolute; left: 27px; bottom: 39px;
    width: 44px; height: auto;
    fill: #dd4c23;
  }

  /* Програма hero: almost full width, 5px side margins */
  .hero { padding: 0 5px; margin-top: 12px; }
}

/* Wishlist: a bit more room between the text and the „Допринеси" button */
.gift-btn { margin-top: 28px; }

/* RSVP privacy line under email/phone */
.privacy-note { margin: -8px 0 0; font-size: 13px; color: var(--gold); }

/* reCAPTCHA: hide the floating badge, show Google's required notice under the RSVP button instead */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-note { margin: -6px 0 0; text-align: center; font-size: 11px; color: #8a8f96; }
.recaptcha-note a { color: inherit; }
