:root {
  --navy: #0b2a52;
  --navy-dark: #06162e;
  --blue: #315b78;
  --ink: #142033;
  --muted: #687386;
  --line: #e1e6ec;
  --soft: #f2f5f8;
  --page: #f7f8fa;
  --white: #fff;
  --green: #157454;
  --red: #a83a3a;
  --shadow: 0 22px 55px rgba(7, 27, 56, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(20, 32, 51, .08);
  background: rgba(251, 250, 247, .9);
  backdrop-filter: blur(14px);
}
.site-nav { position: relative; min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; justify-self: start; color: var(--navy); }
.brand img { width: auto; height: 64px; object-fit: contain; }
.nav-actions { display: flex; align-items: center; gap: 26px; color: #4f5969; font-size: .92rem; font-weight: 600; }
.nav-actions a:hover { color: var(--navy); }
.nav-actions a[aria-current="page"] { color: var(--navy); font-weight: 800; }
.header-cta { justify-self: end; }
.mobile-nav-button { display: none; padding: 8px 0; border: 0; background: transparent; color: var(--navy); font-weight: 800; cursor: pointer; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); background: var(--navy-dark); }
.site-header .button { min-height: 0; padding: 14px 22px; font-weight: 700; }
.button.secondary { border-color: var(--line); background: var(--white); color: var(--navy); }
.button.secondary:hover { box-shadow: 0 10px 24px rgba(7, 27, 56, .08); }
.button.danger { border-color: #ead0d0; background: #fff7f7; color: var(--red); }
.button.small { min-height: 38px; padding: 8px 14px; font-size: .86rem; }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.eyebrow { color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.page-hero { padding: 78px 0 42px; background: linear-gradient(145deg, #f8fafc 0%, #edf2f6 100%); }
.page-hero h1, .detail-copy h1 {
  max-width: 15ch;
  margin: 14px 0 0;
  color: var(--navy);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  letter-spacing: -.055em;
  line-height: 1;
}
.page-hero p { max-width: 62ch; margin: 20px 0 0; color: var(--muted); font-size: 1.04rem; }
.availability-search { margin-top: 38px; padding: 24px; border: 1px solid rgba(20, 32, 51, .1); border-radius: 22px; background: rgba(255, 255, 255, .92); box-shadow: 0 18px 45px rgba(7, 27, 56, .08); }
.search-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.search-heading h2 { margin: 0; color: var(--navy); font-size: 1.25rem; letter-spacing: -.025em; }
.search-heading p { margin: 0; font-size: .86rem; }
.availability-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.availability-fields .field { gap: 5px; }
.availability-fields input, .availability-fields select { min-height: 44px; background: var(--white); }
.search-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; }
.search-actions > div { display: flex; gap: 9px; }
.search-feedback { margin: 0 !important; color: var(--muted); font-size: .82rem !important; }
.search-feedback.error { color: var(--red); }
.listing-section { min-height: 50vh; padding: 48px 0 90px; }
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.listing-toolbar p { margin: 0; color: var(--muted); }
.sort-control { display: flex; align-items: center; gap: 10px; }
.sort-control label { color: #586579; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.sort-control select { min-width: 190px; padding: 10px 36px 10px 12px; border: 1px solid #d8e0e8; border-radius: 11px; background: var(--white); color: var(--navy); font-weight: 650; outline: none; cursor: pointer; }
.sort-control select:focus { border-color: #8aa4ba; box-shadow: 0 0 0 3px rgba(49, 91, 120, .1); }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.listing-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.listing-media { height: 230px; background: linear-gradient(145deg, #eaf0f5, #dce6ee); overflow: hidden; }
.listing-media img, .listing-media video { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #708096; font-weight: 700; }
.listing-body { padding: 22px; }
.listing-kicker { display: flex; flex-wrap: wrap; gap: 8px; color: var(--blue); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.availability-badge { padding: 3px 7px; border-radius: 999px; letter-spacing: .03em; }
.availability-badge.available { background: #e8f4ee; color: var(--green); }
.availability-badge.unavailable { background: #f7eaea; color: var(--red); }
.listing-body h2 { margin: 10px 0 7px; color: var(--navy); font-size: 1.25rem; letter-spacing: -.025em; line-height: 1.25; }
.listing-body p { min-height: 3em; margin: 0; color: var(--muted); font-size: .91rem; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); color: #536175; font-size: .82rem; }
.status-box { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); color: var(--muted); text-align: center; }
.status-box.error { border-color: #edd1d1; background: #fff8f8; color: #8a3030; }
.catalogue-cta { margin-top: 58px; padding: 36px 40px; border: 1px solid #d8e1e9; border-radius: 24px; background: linear-gradient(135deg, #eef3f7, #fff); display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.catalogue-cta h2 { max-width: 16ch; margin: 11px 0 0; color: var(--navy); font-size: clamp(1.8rem, 3.2vw, 2.8rem); letter-spacing: -.045em; line-height: 1.05; }
.catalogue-cta p { max-width: 62ch; margin: 13px 0 0; color: var(--muted); }
.catalogue-cta .button { flex: 0 0 auto; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 42px; padding: 56px 0 92px; }
.detail-gallery { display: grid; gap: 14px; align-content: start; }
.detail-gallery img, .detail-gallery video { width: 100%; max-height: 680px; border-radius: 22px; background: #e9eef3; object-fit: cover; }
.detail-copy { position: sticky; top: 112px; align-self: start; }
.detail-copy h1 { max-width: none; font-size: clamp(2.25rem, 4vw, 3.65rem); }
.detail-summary { margin: 18px 0 0; color: var(--muted); font-size: 1.02rem; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.fact { padding: 15px; background: var(--white); }
.fact span { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fact strong { display: block; margin-top: 3px; color: var(--navy); font-size: .94rem; }
.detail-description { margin-top: 28px; white-space: pre-wrap; }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.amenities li { padding: 7px 11px; border-radius: 999px; background: #eaf0f5; color: var(--navy); font-size: .79rem; font-weight: 700; }
.detail-cta { margin-top: 30px; }
.site-footer { padding: 38px 0; background: var(--navy-dark); color: rgba(255, 255, 255, .68); font-size: .85rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: white; }
.faq-section { padding: 58px 0 92px; }
.faq-layout { display: grid; grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.faq-intro { position: sticky; top: 112px; }
.faq-intro h2 { margin: 12px 0 0; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.045em; line-height: 1.08; }
.faq-intro p { margin: 15px 0 0; color: var(--muted); }
.faq-list { display: grid; gap: 12px; }
.faq-list details { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.faq-list summary { position: relative; padding: 20px 54px 20px 22px; color: var(--navy); font-weight: 750; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 50%; right: 21px; transform: translateY(-50%); color: var(--blue); font-size: 1.4rem; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 22px 21px; color: var(--muted); }
.faq-answer a { color: var(--navy); font-weight: 700; }

/* Privacy and confirmation pages */
.legal-hero h1 { max-width: 14ch; }
.legal-section { padding: 58px 0 92px; }
.legal-card { max-width: 880px; padding: 44px 48px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.legal-updated { margin: 0 0 30px !important; color: var(--muted); font-size: .82rem; }
.legal-card h2 { margin: 34px 0 10px; color: var(--navy); font-size: 1.3rem; letter-spacing: -.025em; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card p { margin: 0; color: #566275; }
.legal-card ul { margin: 12px 0 0; padding-left: 22px; color: #566275; }
.legal-card li + li { margin-top: 6px; }
.legal-card a:not(.button) { color: var(--navy); font-weight: 700; text-decoration: underline; }
.legal-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 24px; border-radius: 18px; background: var(--soft); color: var(--navy); }
.success-section { min-height: calc(100vh - 78px - 123px); display: grid; place-items: center; padding: 70px 20px; background: linear-gradient(145deg, #f8fafc, #eaf0f5); }
.success-card { max-width: 760px; padding: 54px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); text-align: center; box-shadow: var(--shadow); }
.success-icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: #e8f4ee; color: var(--green); font-size: 1.7rem; font-weight: 800; }
.success-card h1 { margin: 14px auto 0; max-width: 15ch; color: var(--navy); font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.055em; line-height: 1; }
.success-card p { max-width: 58ch; margin: 20px auto 0; color: var(--muted); }
.success-actions { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }

/* About page */
.about-hero h1 { max-width: 13ch; }
.about-section { padding: 72px 0 86px; }
.about-intro { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); gap: 72px; align-items: start; }
.about-intro h2, .about-values h2, .registration-card h2 { margin: 12px 0 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.05em; line-height: 1.05; }
.about-copy { color: var(--muted); font-size: 1.04rem; }
.about-copy p { margin: 0; }
.about-copy p + p { margin-top: 18px; }
.about-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 60px; }
.about-card { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.about-card > span { color: var(--blue); font-size: .74rem; font-weight: 800; letter-spacing: .12em; }
.about-card h3 { margin: 18px 0 0; color: var(--navy); font-size: 1.25rem; letter-spacing: -.025em; }
.about-card p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }
.about-values { padding: 82px 0; background: var(--navy-dark); color: white; }
.about-values-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: 80px; align-items: center; }
.about-values .eyebrow { color: #9ebbd2; }
.about-values h2 { color: white; }
.about-values p { max-width: 58ch; margin: 18px 0 0; color: rgba(255, 255, 255, .68); }
.value-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: rgba(255, 255, 255, .16); }
.value-list > div { padding: 22px 24px; background: #0b2344; }
.value-list strong { display: block; font-size: 1rem; }
.value-list span { display: block; margin-top: 5px; color: rgba(255, 255, 255, .65); font-size: .88rem; }
.about-registration { padding: 78px 0 12px; }
.registration-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 38px 42px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.registration-card h2 { font-size: 2.3rem; }
.registration-card p { margin: 10px 0 0; color: var(--muted); }
.registration-number { flex: 0 0 auto; padding: 18px 22px; border-radius: 16px; background: var(--soft); }
.registration-number span { display: block; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.registration-number strong { display: block; margin-top: 4px; color: var(--navy); font-size: 1.3rem; letter-spacing: .04em; }
.about-cta { padding: 0 0 90px; }

/* Authentication and dashboard */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; background: linear-gradient(145deg, #071b38, #17456a); }
.auth-card { width: min(460px, 100%); padding: 34px; border-radius: 24px; background: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.auth-card .brand { margin-bottom: 30px; }
.auth-card h1 { margin: 0; color: var(--navy); font-size: 2rem; letter-spacing: -.04em; }
.auth-card > p { margin: 8px 0 25px; color: var(--muted); }
.form-stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { color: #586579; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d8e0e8;
  border-radius: 12px;
  outline: none;
  background: #fbfcfd;
  color: var(--ink);
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #8aa4ba; box-shadow: 0 0 0 3px rgba(49, 91, 120, .1); }
.form-message { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); font-size: .85rem; }
.form-message.error { color: var(--red); }
.form-message.success { color: var(--green); }
.setup-link { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.setup-link button { padding: 0; border: 0; background: transparent; color: var(--navy); font-weight: 750; cursor: pointer; text-decoration: underline; }
.admin-body { background: #edf1f5; }
.admin-header { border-bottom: 1px solid var(--line); background: var(--white); }
.admin-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-main { padding: 34px 0 70px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-heading h1 { margin: 0; color: var(--navy); font-size: 2.1rem; letter-spacing: -.04em; }
.admin-heading p { margin: 5px 0 0; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: minmax(250px, .68fr) minmax(0, 1.32fr); gap: 22px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 12px 34px rgba(7, 27, 56, .05); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; color: var(--navy); font-size: 1.1rem; }
.admin-list { display: grid; max-height: 760px; overflow: auto; }
.admin-list-item { padding: 16px 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.admin-list-item:last-child { border-bottom: 0; }
.admin-list-item:hover, .admin-list-item.active { background: #f2f6f9; }
.admin-list-item strong { display: block; color: var(--navy); }
.admin-list-item span { color: var(--muted); font-size: .8rem; }
.editor { padding: 22px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor-grid .wide { grid-column: 1 / -1; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f7faf8; }
.check-row input { width: 18px; height: 18px; }
.check-row label { font-weight: 750; }
.media-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.media-chip { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #eef2f5; }
.media-chip img, .media-chip video { width: 100%; height: 105px; object-fit: cover; }
.media-chip button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(6, 22, 46, .84); color: white; cursor: pointer; }
.availability-manager { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #f8fafb; }
.availability-manager-head h3 { margin: 0; color: var(--navy); font-size: 1.05rem; }
.availability-manager-head p { max-width: 72ch; margin: 6px 0 0; color: var(--muted); font-size: .83rem; }
.availability-block-editor { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr auto; gap: 10px; align-items: end; margin-top: 18px; }
.availability-block-editor .button { min-height: 45px; white-space: nowrap; }
.availability-block-list { display: grid; gap: 8px; margin-top: 12px; }
.availability-empty { padding: 14px 16px; border: 1px dashed #ccd6df; border-radius: 12px; color: var(--muted); font-size: .84rem; }
.availability-block-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.availability-block-item strong { display: block; color: var(--navy); font-size: .88rem; }
.availability-block-item span { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; }
.editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.config-warning { margin-bottom: 20px; padding: 14px 17px; border: 1px solid #e5d7a9; border-radius: 13px; background: #fff9e8; color: #6a5721; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .listing-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout, .admin-grid, .faq-layout, .about-intro, .about-values-grid { grid-template-columns: 1fr; }
  .about-intro, .about-values-grid { gap: 38px; }
  .about-cards { grid-template-columns: 1fr; }
  .availability-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .availability-block-editor { grid-template-columns: 1fr 1fr; }
  .detail-copy { position: static; }
  .faq-intro { position: static; }
}
@media (max-width: 650px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-nav { grid-template-columns: 1fr auto; }
  .mobile-nav-button { display: block; }
  .nav-actions { display: none; position: absolute; top: 78px; left: -14px; right: -14px; padding: 18px 20px 22px; border: 1px solid var(--line); border-top: 0; background: var(--page); box-shadow: 0 18px 30px rgba(7, 27, 56, .08); flex-direction: column; align-items: stretch; gap: 13px; }
  .nav-actions.open { display: flex; }
  .header-cta { display: none; }
  .page-hero { padding: 58px 0 35px; }
  .listing-grid, .editor-grid { grid-template-columns: 1fr; }
  .availability-fields, .availability-block-editor { grid-template-columns: 1fr; }
  .search-heading, .search-actions { align-items: flex-start; flex-direction: column; }
  .search-actions > div, .search-actions .button { width: 100%; }
  .listing-toolbar { align-items: flex-start; flex-direction: column; }
  .sort-control { width: 100%; justify-content: space-between; }
  .sort-control select { min-width: 0; flex: 1; }
  .catalogue-cta { align-items: flex-start; flex-direction: column; padding: 28px 24px; }
  .editor-grid .wide { grid-column: auto; }
  .media-preview { grid-template-columns: 1fr 1fr; }
  .admin-heading { align-items: start; flex-direction: column; }
  .auth-card { padding: 26px 22px; }
  .about-section, .about-values { padding: 58px 0; }
  .about-cards { margin-top: 40px; }
  .registration-card { align-items: flex-start; flex-direction: column; padding: 30px 24px; }
  .registration-number { width: 100%; }
  .legal-card, .success-card { padding: 32px 24px; }
  .legal-contact, .success-actions { align-items: stretch; flex-direction: column; }
}
