:root {
  --ink: #142033;
  --muted: #657084;
  --line: #dfe6ee;
  --panel: #ffffff;
  --soft: #f4f7fa;
  --accent: #0f7c68;
  --accent-dark: #09594a;
  --warn: #b45309;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
}

.topbar {
  min-height: 72px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 50%;
}

.site-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.hidden {
  display: none !important;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

.admin-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.hero {
  min-height: 390px;
  padding: 48px 28px;
  display: grid;
  align-items: end;
  gap: 30px;
  background:
    linear-gradient(rgba(20, 32, 51, 0.28), rgba(20, 32, 51, 0.46)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
}

.hero-copy {
  max-width: 760px;
  color: white;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.08;
}

.hero-copy p {
  margin: 0;
  font-size: 18px;
}

.search-panel {
  width: min(1180px, 100%);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(20, 32, 51, 0.18);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
button {
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
}

button {
  min-width: 118px;
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.content {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 60px;
}

.info-band,
.contact-band {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-band h2,
.contact-band h2 {
  margin: 0 0 8px;
}

.info-band p,
.contact-band p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.section-title h2 {
  margin: 0;
  font-size: 26px;
}

#statusText {
  color: var(--muted);
}

.results {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.property-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-card {
  grid-template-columns: 240px minmax(0, 1fr) 230px;
  align-items: stretch;
}

.search-card-body {
  min-width: 0;
}

.search-card-side {
  padding-left: 18px;
  display: grid;
  align-content: center;
  gap: 12px;
  border-left: 1px solid var(--line);
}

.primary-link {
  height: 46px;
  padding: 0 16px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.primary-link:hover {
  background: var(--accent-dark);
}

.property-photo {
  min-height: 150px;
  background: #d9e5df;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.property-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.muted {
  color: var(--muted);
}

.options {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.chips span {
  padding: 6px 9px;
  color: #26415e;
  background: #eef5f2;
  border: 1px solid #d7e7df;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.option-row {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.villa-badge {
  color: var(--warn);
  font-weight: 700;
}

.villa-cta {
  width: max-content;
  min-width: 260px;
}

.room-card {
  display: grid;
  grid-template-columns: 170px 1fr 260px;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.room-photo {
  width: 100%;
  min-height: 140px;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #dbe8e1;
}

.room-title {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 19px;
  text-align: left;
}

.room-title:hover {
  color: var(--accent-dark);
  background: transparent;
}

.room-detail {
  display: none;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.room-detail.show {
  display: block;
}

.room-selectors {
  display: grid;
  gap: 8px;
}

.stepper {
  display: grid;
  grid-template-columns: 1fr 34px 34px 34px;
  align-items: center;
  gap: 6px;
}

.stepper span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stepper button {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
}

.stepper strong {
  text-align: center;
}

.booking-summary {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  background: #eef7f4;
  border: 1px solid #cce4db;
  border-radius: 8px;
}

.loading-state {
  width: min(1120px, calc(100% - 40px));
  margin: 60px auto;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.property-page {
  padding-bottom: 110px;
}

.property-hero {
  min-height: clamp(360px, 58vh, 620px);
  padding: 28px;
  display: grid;
  align-items: end;
  background-size: cover;
  background-position: center;
}

.property-hero-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  color: white;
}

.property-hero h1 {
  max-width: 840px;
  margin: 14px 0 8px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1;
}

.property-hero p {
  margin: 0;
  font-size: 18px;
}

.back-link {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.property-shell {
  width: min(1120px, calc(100% - 40px));
  margin: -44px auto 60px;
  position: relative;
  z-index: 2;
}

.gallery-strip {
  padding: 10px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(20, 32, 51, 0.16);
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.gallery-strip img:first-child {
  grid-row: span 2;
}

.property-intro {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.property-intro h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.property-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.stay-summary {
  padding: 18px;
  display: grid;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stay-summary span {
  color: var(--muted);
}

.feature-row {
  margin: 22px 0;
}

.property-info-grid {
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card,
.map-card {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-card h3 {
  margin: 0 0 8px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.map-card {
  display: grid;
  place-items: center;
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.room-stack {
  display: grid;
  gap: 18px;
}

.detail-room-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 250px;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-room-media {
  position: relative;
}

.detail-room-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

.detail-room-media button {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: auto;
  min-width: 0;
  height: 38px;
  background: rgba(20, 32, 51, 0.82);
  border: 0;
}

.detail-room-copy {
  min-width: 0;
}

.room-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.room-heading h3,
.villa-card h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.detail-room-copy p,
.villa-card p {
  color: var(--muted);
  line-height: 1.5;
}

.detail-room-book {
  padding-left: 18px;
  display: grid;
  align-content: center;
  gap: 10px;
  border-left: 1px solid var(--line);
}

.villa-card {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: #fffaf0;
  border: 1px solid #f1d4a8;
  border-radius: 8px;
}

.villa-card.unavailable {
  color: var(--muted);
  background: #f7f8fa;
  border-color: var(--line);
}

.sticky-booking {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  width: min(760px, calc(100% - 32px));
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(20, 32, 51, 0.22);
  transform: translateX(-50%);
}

.sticky-booking span {
  display: block;
  color: var(--muted);
}

@media (max-width: 900px) {
  .search-panel,
  .property-card,
  .search-card,
  .option-row,
  .room-card,
  .booking-summary,
  .property-intro,
  .property-info-grid,
  .detail-room-card {
    grid-template-columns: 1fr;
  }

  .booking-summary,
  .villa-card,
  .sticky-booking {
    display: grid;
  }

  .search-card-side,
  .detail-room-book {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-strip img:first-child {
    grid-row: auto;
  }

  .property-shell {
    width: min(100% - 24px, 1120px);
  }

  .hero-copy h1 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .topbar {
    height: auto;
    padding: 14px 16px;
    align-items: flex-start;
  }

  .brand {
    font-size: 18px;
  }

  .site-nav {
    justify-content: flex-start;
    font-size: 14px;
  }

  .hero {
    padding: 32px 16px;
  }

  .content {
    width: min(100% - 24px, 1180px);
  }

  .property-card,
  .detail-room-card {
    padding: 12px;
  }

  .property-hero {
    padding: 20px 16px;
  }

  .gallery-strip {
    display: flex;
    overflow-x: auto;
  }

  .gallery-strip img {
    min-width: 78%;
  }

  .room-heading {
    display: grid;
  }
}
