:root {
  --navy: #1c2b3a;
  --navy-dark: #131e29;
  --gold: #c98a3e;
  --gold-dark: #a86f2c;
  --cream: #faf7f2;
  --gray-100: #f3f1ed;
  --gray-300: #d9d5cd;
  --gray-600: #6b675f;
  --text: #22282e;
  --radius: 10px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}

h1, h2, h3, .wordmark {
  font-family: "Inter", system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--gray-300);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.wordmark {
  display: flex;
  align-items: center;
}

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-600);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.logo-img {
  height: 92px;
  width: auto;
  display: block;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(19,30,41,0.5) 0%, rgba(19,30,41,0.6) 100%),
    url('images/site/hero.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 200px 0;
  text-align: center;
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: #fff;
  font-weight: 700;
  margin: 0 0 8px;
}


.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover { background: var(--gold-dark); }

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

/* Search bar */
.search-bar-wrap { margin-top: 40px; }

.search-bar {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: stretch;
  gap: 0;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  flex-wrap: wrap;
}

.search-field {
  flex: 1 1 140px;
  padding: 4px 18px;
  border-right: 1px solid var(--gray-300);
  text-align: left;
}
.search-field:first-child { padding-left: 4px; }
.search-field:last-of-type { border-right: none; }

.search-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.search-field select,
.search-field input {
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  width: 100%;
  padding: 2px 0;
  background: transparent;
}
.search-field select:focus,
.search-field input:focus { outline: none; }

.search-submit {
  flex: 0 0 auto;
  align-self: center;
  margin-left: 12px;
  white-space: nowrap;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.page-header .chip-row { justify-content: flex-start; }

.chip {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.chip:hover { border-color: var(--gold); }
.chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.search-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-300);
  margin: 14px 0 0;
}
.page-header .search-note { text-align: left; color: var(--gray-600); }

.results-count {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

.no-results {
  text-align: center;
  color: var(--gray-600);
  padding: 40px 0;
}

/* Trust strip */
.trust-strip {
  background: #fff;
  padding: 56px 0 0;
}

.trust-heading {
  text-align: center;
  color: #1a1a1a;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  margin: 0 0 40px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 64px;
  padding-bottom: 40px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #444;
}

.trust-logo-img-mono {
  height: 54px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* grayscale (not brightness(0)) so any internal light/dark detail in a
     logo -- e.g. Booking's white "B" cutout on a navy square -- stays
     visible instead of crushing everything to a single black shape. Some
     of these files also have an opaque white background rather than real
     transparency, and brightness(0) would blacken that box; grayscale
     alone leaves white as white, blending into the section's own
     white background. */
  filter: grayscale(1) contrast(1.3);
}

.trust-logo-img-lg {
  height: 96px;
  max-width: 280px;
}

.trust-rule {
  border: none;
  border-top: 1px solid var(--gray-300);
  margin: 0;
}

/* Sections */
.section { padding: 64px 0; }

.section-title {
  font-size: 1.8rem;
  margin: 0 0 32px;
  text-align: center;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

.page-header {
  background: var(--gray-100);
  padding: 56px 0;
}

.page-header h1 { margin: 0 0 8px; font-size: 2.2rem; }
.page-header p { color: var(--gray-600); margin: 0; }

.about-logo {
  display: block;
  height: 200px;
  width: auto;
  margin: 0 auto 24px;
}

.about-header h1 { text-align: center; }

/* Property grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.property-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-300);
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}

.property-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
  position: relative;
}

.card-tag-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.card-body { padding: 18px; }
.card-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.card-location { color: var(--gray-600); font-size: 0.9rem; margin: 0 0 12px; }

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Testimonials */
.testimonials-section { background: var(--gray-100); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-300);
}

.testimonial-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.testimonial-stars {
  color: var(--gold);
  letter-spacing: 2px;
}

.platform-badge {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.platform-badge-img {
  height: 38px;
  width: 38px;
  display: block;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.6;
}

.testimonial-attr {
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 600;
  margin: 0;
}

/* Property detail */
.property-hero { padding: 40px 0 0; }
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
}
.property-main h1 { margin: 0 0 8px; font-size: 2.1rem; }
.property-location { color: var(--gray-600); margin: 0 0 10px; }

/* Listing photo grid (Hostaway-style hero) */
.listing-photo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  height: 420px;
  margin-bottom: 8px;
}

.listing-photo-main {
  display: block;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius) 0 0 var(--radius);
  position: relative;
}

.listing-photo-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.listing-photo-cell {
  display: block;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
  position: relative;
}
.listing-photo-sub-grid .listing-photo-cell:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
.listing-photo-sub-grid .listing-photo-cell:nth-child(4) { border-radius: 0 0 var(--radius) 0; }

.listing-tag-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
}

.listing-rating-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
}

.photo-count-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
}

.listing-quickline {
  color: var(--gray-600);
  margin: 0 0 12px;
}

.listing-rating-line {
  font-weight: 700;
  margin: 0 0 20px;
}
.listing-rating-line a { color: var(--navy); text-decoration: underline; }

.listing-description {
  max-height: 8.5em;
  overflow: hidden;
  line-height: 1.7;
}
.listing-description.expanded { max-height: none; }

.show-more-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 8px 0 0;
  font-weight: 700;
  text-decoration: underline;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.92rem;
  display: block;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-300);
}
.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* Availability calendar */
.availability-calendar {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 20px;
}

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

.calendar-nav-btn {
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}
.calendar-nav-btn:hover { background: var(--gray-300); }

.calendar-months {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.cal-month { min-width: 220px; }

.cal-month-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.cal-weekdays,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-600);
}

.cal-day {
  text-align: center;
  font-size: 0.82rem;
  padding: 6px 0;
  border-radius: 6px;
}

.cal-day-available { background: var(--gray-100); color: var(--text); }
.cal-day-unavailable { color: var(--gray-300); text-decoration: line-through; }

.calendar-loading,
.calendar-note {
  text-align: center;
  color: var(--gray-600);
  font-size: 0.88rem;
  margin: 8px 0 0;
}

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

.property-main h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
}
.property-main h2:first-child { margin-top: 0; }

.property-main h3 {
  font-size: 1.05rem;
  margin: 20px 0 10px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-grid[hidden] { display: none; }

.pill {
  background: var(--gray-100);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.pill-icon {
  font-size: 1.25rem;
  vertical-align: middle;
  margin-right: 2px;
}

.booking-card {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 112px;
}
.booking-card h3 { margin: 0 0 14px; font-size: 1.1rem; }
.booking-card .form-row { grid-template-columns: 1fr 1fr; margin-bottom: 0; }
.booking-card .form-field { margin-bottom: 14px; }

.booking-quote {
  background: var(--gray-100);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.booking-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.booking-actions .btn { flex: 1; text-align: center; }

.booking-status {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
}
.booking-status-error { color: #c0392b; }

/* Prose pages */
.prose { max-width: 720px; }
.prose p { margin: 0 0 18px; }

.mission {
  border-left: 4px solid var(--gold);
  background: var(--gray-100);
  margin: 0 0 24px;
  padding: 18px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.mission p { margin: 0 0 6px; font-weight: 700; color: var(--navy); }
.mission p:last-child { margin-bottom: 0; }

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 { margin: 0 0 12px; font-size: 1.3rem; }
.contact-info p { color: var(--gray-600); }
.contact-line { font-size: 1rem; color: var(--text) !important; margin: 14px 0 !important; }
.contact-line a { color: var(--gold-dark); font-weight: 600; }

.contact-form-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form-card h2 { margin: 0 0 20px; font-size: 1.2rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.hp-field { position: absolute; left: -9999px; }

.form-success {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.form-success h3 { margin: 0 0 8px; color: var(--navy); }
.form-success p { color: var(--gray-600); margin: 0; }

/* FAQ */
.faq-list { max-width: 800px; }

.faq-item {
  border-bottom: 1px solid var(--gray-300);
  padding: 20px 0;
}
.faq-item:first-child { padding-top: 0; }

.faq-item summary {
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }

.faq-answer {
  color: var(--gray-600);
  padding-top: 12px;
  line-height: 1.6;
}
.faq-answer ul { margin: 8px 0 0; padding-left: 20px; }
.faq-answer li { margin-bottom: 4px; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: var(--gray-300);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 0 24px;
  text-align: center;
}

.footer-logo {
  height: 110px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px;
  font-size: 0.8rem;
  text-align: center;
  color: var(--gray-600);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.85rem;
  background: rgba(0,0,0,0.5);
  padding: 6px 14px;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .property-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .listing-photo-grid { grid-template-columns: 1fr; height: auto; }
  .listing-photo-main { height: 260px; border-radius: var(--radius) var(--radius) 0 0; }
  .listing-photo-sub-grid { display: none; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form-card { padding: 20px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-300);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .site-nav li { border-top: 1px solid var(--gray-100); }
  .hero { padding: 64px 0; }
  .section { padding: 40px 0; }
  .search-field { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--gray-300); padding: 10px 4px; }
  .search-field:last-of-type { border-bottom: none; }
  .search-submit { margin-left: 0; margin-top: 12px; width: 100%; }
}

@media (prefers-color-scheme: dark) {
  body { background: #14181c; color: #eae7e1; }
  .site-header { background: #1a1e23; border-color: #2a2f36; }
  .search-bar { background: #1a1e23; }
  .search-field { border-color: #2a2f36; }
  .search-field select, .search-field input { color: #eae7e1; }
  .search-field label { color: #9a978f; }
  .chip { background: #1a1e23; border-color: #2a2f36; color: #eae7e1; }
  .property-card { background: #1a1e23; border-color: #2a2f36; }
  .pill { background: #232830; }
  .booking-card { border-color: #2a2f36; }
  .page-header { background: #1a1e23; }
  .card-image { background-color: #232830; }
  .contact-form-card, .form-success { background: #1a1e23; }
  .form-field input, .form-field select, .form-field textarea {
    background: #232830; border-color: #2a2f36; color: #eae7e1;
  }
  .mission { background: #1a1e23; }
  .mission p { color: #eae7e1; }
  .faq-item { border-color: #2a2f36; }
  .testimonials-section { background: #1a1e23; }
  .testimonial-card { background: #14181c; border-color: #2a2f36; }
  .listing-photo-cell { background-color: #232830; }
  .listing-rating-line a { color: #eae7e1; }
  .show-more-btn { color: #eae7e1; }
  .map-embed { border-color: #2a2f36; }
  .trust-strip { background: #1a1e23; }
  .trust-heading { color: #eae7e1; }
  .trust-item { color: #eae7e1; }
  .trust-logo-img-mono { filter: grayscale(1) contrast(1.3) invert(1); }
  .trust-rule { border-color: #2a2f36; }
  .about-logo { filter: brightness(0) invert(1); }
}
