@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --ivory: #FBF7F0;
  --ivory-deep: #F3ECDF;
  --navy: #16283D;
  --navy-soft: #3A4C60;
  --sky: #3E7CB1;
  --sky-deep: #2A5C88;
  --gold: #B8924F;
  --gold-soft: #E4D3AC;
  --line: #DDD3C0;
  --white: #FFFFFF;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--navy);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

p { margin: 0 0 1em; max-width: 62ch; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.nav .brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav .brand span { color: var(--sky); }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
}

.nav-links a { border-bottom: 1px solid transparent; padding-bottom: 3px; }
.nav-links a:hover { border-bottom-color: var(--gold); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--sky); color: var(--white); }
.btn-primary:hover { background: var(--sky-deep); }
.btn-primary:disabled { background: #A9B8C4; cursor: not-allowed; }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-ghost-light:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,25,38,0.78) 0%, rgba(15,25,38,0.25) 45%, rgba(15,25,38,0.08) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 32px 72px;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 15px;
  color: var(--gold-soft);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(38px, 5.5vw, 64px);
  margin-bottom: 18px;
}

.hero p {
  color: rgba(255,255,255,0.88);
  font-size: 18px;
  max-width: 46ch;
}

.hero-actions { display: flex; gap: 16px; margin-top: 28px; }

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.section-head h2 { font-size: 32px; margin: 0; }
.section-head .sub { color: var(--navy-soft); font-size: 15px; }

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.property-card { display: block; }

.property-card .photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--ivory-deep);
}

.property-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .photo img { transform: scale(1.04); }

.property-card .loc { font-size: 13px; color: var(--sky-deep); margin-bottom: 6px; }
.property-card h3 { font-size: 22px; margin-bottom: 6px; }
.property-card .price { font-size: 15px; color: var(--navy-soft); }
.property-card .price strong { color: var(--navy); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.principle h3 { font-size: 20px; margin-bottom: 10px; }
.principle p { color: var(--navy-soft); font-size: 15px; }
.principle { border-top: 2px solid var(--gold); padding-top: 20px; }

.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.footer .brand { font-family: var(--serif); font-size: 20px; color: var(--white); margin-bottom: 12px; }
.footer a:hover { color: var(--gold-soft); }
.footer .bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 13px; color: rgba(255,255,255,0.5); }

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  height: 480px;
  margin-bottom: 48px;
}

.gallery .main img { width: 100%; height: 480px; object-fit: cover; }

.gallery .side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.gallery .side img { width: 100%; height: 235px; object-fit: cover; }

.detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}

.detail-main h1 { font-size: 38px; }
.detail-main .loc { color: var(--sky-deep); font-size: 15px; margin-bottom: 18px; }

.amenity-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.amenity-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.policy-box {
  background: var(--ivory-deep);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--navy-soft);
}

.booking-panel {
  position: sticky;
  top: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.booking-panel .rate { font-size: 22px; font-family: var(--serif); margin-bottom: 4px; }
.booking-panel .rate span { font-size: 14px; font-family: var(--sans); color: var(--navy-soft); }

.date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.date-fields label { font-size: 12px; color: var(--navy-soft); display: block; margin-bottom: 4px; }
.date-fields input {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px; background: var(--ivory);
}

.calendar-legend { display: flex; gap: 16px; font-size: 12px; color: var(--navy-soft); margin: 12px 0 4px; }
.calendar-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.dot-blocked { background: #C9736A; }
.dot-open { background: var(--sky); }

.quote-lines { margin: 18px 0; font-size: 14.5px; }
.quote-lines .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.quote-lines .row.total { font-weight: 600; border-bottom: none; padding-top: 12px; }

.guest-fields { display: grid; gap: 12px; margin: 18px 0; }
.guest-fields input, .guest-fields select {
  width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px;
}

.form-msg { font-size: 13.5px; margin-top: 10px; }
.form-msg.error { color: #B84A3E; }
.form-msg.ok { color: #2F7A52; }

.mini-cal { margin: 16px 0; }
.mini-cal .cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.mini-cal .cal-nav button { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--sky-deep); }
.mini-cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 12.5px; }
.mini-cal .dow { color: var(--navy-soft); padding: 4px 0; font-size: 11px; }
.mini-cal .day { padding: 7px 0; border-radius: var(--radius); cursor: pointer; }
.mini-cal .day.blocked { background: #F3E0DD; color: #B84A3E; cursor: not-allowed; text-decoration: line-through; }
.mini-cal .day.past { color: #C6BFAF; cursor: not-allowed; }
.mini-cal .day.selected { background: var(--sky); color: var(--white); }
.mini-cal .day.in-range { background: var(--ivory-deep); }
.mini-cal .day.empty { visibility: hidden; }

.admin-wrap { max-width: 1000px; margin: 0 auto; padding: 40px 32px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 20px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--navy-soft); font-weight: 600; font-size: 12.5px; }
.status-pill { padding: 3px 10px; border-radius: 20px; font-size: 12px; display: inline-block; }
.status-deposit_paid { background: #E1EEE5; color: #2F7A52; }
.status-pending { background: #F3ECDF; color: #8A6A2F; }
.status-cancelled { background: #F3E0DD; color: #B84A3E; }
.status-refunded { background: #E3E9EF; color: var(--navy-soft); }

.admin-form { display: grid; gap: 14px; max-width: 560px; }
.admin-form label { font-size: 13px; color: var(--navy-soft); display: block; margin-bottom: 4px; }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans);
}

@media (max-width: 860px) {
  .detail-layout { grid-template-columns: 1fr; }
  .booking-panel { position: static; }
  .principles { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; height: auto; }
  .gallery .main img { height: 280px; }
  .gallery .side { grid-template-rows: 1fr 1fr; }
  .gallery .side img { height: 135px; }
  .nav-links { display: none; }
}

/* -------- lightbox gallery -------- */
.gallery-more-tile { position: relative; cursor: pointer; }
.gallery-more-tile::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  background: rgba(22,40,61,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.view-all-photos {
  margin: -36px 0 40px;
  font-size: 14px;
  color: var(--sky-deep);
  cursor: pointer;
  text-decoration: underline;
  display: inline-block;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,16,24,0.94);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: #fff;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  padding: 14px;
  line-height: 1;
}

.lightbox-close { top: 12px; right: 20px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }

.lightbox-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}

/* -------- admin photo management -------- */
.photo-manage { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.photo-manage .thumb { position: relative; width: 84px; height: 84px; }
.photo-manage .thumb img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 3px;
  border: 2px solid transparent;
}
.photo-manage .thumb.is-cover img { border-color: var(--gold); }
.photo-manage .thumb .remove-btn {
  position: absolute; top: -7px; right: -7px;
  background: #B84A3E; color: #fff; border: none; border-radius: 50%;
  width: 20px; height: 20px; font-size: 12px; cursor: pointer; line-height: 1;
}
.photo-manage .thumb .cover-btn {
  position: absolute; bottom: 3px; left: 3px;
  background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 3px;
  font-size: 10px; padding: 2px 6px; cursor: pointer;
}
.photo-manage .thumb.is-cover .cover-btn { background: var(--gold); color: var(--navy); }

/* -------- hero carousel -------- */
.hero { background-image: none !important; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  z-index: 0;
}
.hero-slide.active { opacity: 1; }

.hero-dots {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  right: 32px;
  display: flex;
  gap: 8px;
}
.hero-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s ease;
}
.hero-dots .dot.active { background: var(--gold-soft); }

/* -------- whatsapp float button -------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 500;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* -------- coming soon cards -------- */
.property-card.coming-soon { cursor: default; }
.property-card.coming-soon .photo {
  background: var(--ivory-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.property-card.coming-soon .photo-label {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy-soft);
  letter-spacing: 0.02em;
}
.property-card.coming-soon:hover .photo img { transform: none; }
.coming-soon-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  padding: 2px 10px;
  border-radius: 20px;
  margin-top: 6px;
}

/* -------- footer grid -------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-weight: 600;
}
.footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}
.footer-grid a:hover { color: var(--gold-soft); }
.footer-grid p { color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 8px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* -------- simple content pages -------- */
.page-content { padding: 64px 0 88px; max-width: 760px; }
.page-content h1 { font-size: 36px; margin-bottom: 8px; }
.page-content .updated { color: var(--navy-soft); font-size: 13px; margin-bottom: 40px; }
.page-content h2 { font-size: 22px; margin-top: 36px; }
.page-content p, .page-content li { color: var(--navy-soft); font-size: 15.5px; }
.page-content ul { padding-left: 20px; }
.page-content a { color: var(--sky-deep); text-decoration: underline; }
