/*
Theme Name: Open Acre
Theme URI: https://openacre.in
Author: Open Acre
Description: Custom theme for Open Acre — private villas and farmstays across Delhi NCR. Converted from the Open Acre design system into a full WordPress theme with a 'villa' custom post type, Customizer-driven homepage content, and Contact Form 7 integration.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: openacre
*/

:root {
  --bg: #f8f6f2;
  --surface: #ffffff;
  --text: #1b1b1b;
  --muted: #666666;
  --gold: #c7a86d;
  --gold-dark: #a98a52;
  --forest: #29443a;
  --ocean: #4d748b;
  --sand: #e8ddcf;
  --border: rgba(0, 0, 0, 0.08);
  --success: #4caf50;
  --shadow-sm: 0 2px 12px rgba(27, 27, 27, 0.05);
  --shadow-md: 0 16px 32px -12px rgba(27, 27, 27, 0.12);
  --shadow-lg: 0 30px 60px -16px rgba(27, 27, 27, 0.2);
  --font-h: "Playfair Display", serif;
  --font-b: "Inter", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--font-h);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: var(--forest);
  text-decoration: none;
}
a:hover {
  color: var(--gold-dark);
}
img {
  max-width: 100%;
  display: block;
}
.oa-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 16px;
}
.eyebrow-sm {
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn-gold {
  background: var(--gold);
  color: #241d0f;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    background 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  height: 44px;
  text-decoration: none;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -8px rgba(199, 168, 109, 0.55);
  background: var(--gold-dark);
  color: #fff;
}
.btn-gold:active {
  transform: scale(0.97);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  padding: 0 30px;
  height: 54px;
  text-decoration: none;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}
.btn-outline-dark {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  height: 48px;
  text-decoration: none;
}
.btn-outline-dark:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-icon:hover {
  border-color: var(--gold);
}

/* ---------- Card / image helpers ---------- */
.card-lift {
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.card-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.zoom-wrap {
  overflow: hidden;
  position: relative;
}
.zoom-wrap img {
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-lift:hover .zoom-wrap img {
  transform: scale(1.08);
}
.oa-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}
.oa-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.oa-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  color: var(--forest);
  font-family: var(--font-h);
  font-size: 15px;
  text-align: center;
  padding: 12px;
}
.oa-credit {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font:
    10px/1.2 system-ui,
    sans-serif;
}
.oa-credit a {
  color: inherit;
  text-decoration: underline;
}
.tag {
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-block;
}
.tag-sand {
  background: var(--sand);
  color: var(--forest);
}
.tag-gold {
  background: var(--gold);
  color: #241d0f;
}
.tag-outline {
  border: 1px solid var(--border);
  color: var(--muted);
  background: #fff;
}
.tag-outlined-white {
  font-size: 13px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* ---------- Scroll chrome ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 100;
  transition: width 0.1s linear;
  width: 0;
}
#back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 60;
}
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
#back-to-top:hover {
  transform: translateY(-4px);
}

/* ---------- Nav ---------- */
#site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 20px clamp(20px, 5vw, 64px);
  z-index: 50;
  position: sticky;
  top: 0;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
#site-nav .brand {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 22px;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}
.oa-nav-links {
  display: contents;
}
#site-nav .navlink,
#site-nav a:not(.btn-gold):not(.brand) {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
#site-nav .navlink:hover {
  color: var(--text);
}
#site-nav .navlink.active {
  color: var(--text);
  font-weight: 600;
}
.home #site-nav {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
}
.home #site-nav .brand,
.home #site-nav .navlink {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.25s ease;
}
.home #site-nav .navlink:hover {
  color: #fff;
}
.home #site-nav.scrolled {
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom-color: var(--border);
}
.home #site-nav.scrolled .brand,
.home #site-nav.scrolled .navlink {
  color: var(--text);
}
.home #site-nav.scrolled .navlink:hover {
  color: var(--gold-dark);
}
.single-villa #site-nav {
  position: fixed;
  left: 0;
  right: 0;
}
.single-villa .breadcrumb {
  margin: 96px 0 0;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.home #site-nav .hamburger span {
  background: #fff;
}
.home #site-nav.scrolled .hamburger span {
  background: var(--text);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(248, 246, 242, 0.98);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.35s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu a {
  font-family: var(--font-h);
  font-size: 28px;
  color: var(--text);
  text-decoration: none;
}
.menu-close {
  position: absolute;
  top: 22px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}
.menu-social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.menu-social a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1b1b1b;
  color: rgba(255, 255, 255, 0.65);
}
.footer-top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 22px;
  color: #fff;
}
.footer-brand-col p {
  font-size: 13.5px;
  margin-top: 14px;
  max-width: 28ch;
  line-height: 1.7;
}
.footer-acc summary {
  cursor: default;
  pointer-events: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--gold);
}
.footer-acc summary::-webkit-details-marker {
  display: none;
}
.footer-links {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  margin-top: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}
.footer-social {
  display: none;
}
.footer-newsletter {
  display: none;
}
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) 28px;
  font-size: 12px;
  opacity: 0.5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

/* ---------- Hero (home) ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-credit {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 11px;
  color: #fff;
  opacity: 0.7;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 27, 27, 0.25) 0%,
    rgba(27, 27, 27, 0.55) 100%
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-eyebrow {
  color: var(--gold);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-h1 {
  font-size: clamp(46px, 7vw, 96px);
  line-height: 1.03;
  margin: 0 0 24px;
  color: #fff;
  font-style: italic;
  font-weight: 500;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both 0.12s;
}
.hero-p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 46ch;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 300;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both 0.24s;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both 0.36s;
}
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 130px;
  transform: translateX(-50%);
  color: #fff;
  opacity: 0.85;
  animation: bounce 2s ease-in-out infinite;
}

/* ---------- Search bar ---------- */
.search-bar {
  margin: -64px 0 96px;
  padding: 32px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 20px;
  align-items: end;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  font-family: var(--font-b);
  color: var(--text);
}
.field textarea {
  height: auto;
  padding: 13px 14px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.search-btn {
  height: 46px;
}

/* ---------- Stats ---------- */
.stats-grid {
  padding: 0 0 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-h);
  font-weight: 600;
  font-style: italic;
  font-size: 46px;
  margin: 0;
  color: var(--forest);
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 10px 0 0;
  color: var(--muted);
}

/* ---------- How it works ---------- */
.how-section {
  padding: 0 0 96px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.how-section h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.2;
}
.how-step {
  display: flex;
  gap: 28px;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.how-step-last {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.how-num {
  font-family: var(--font-h);
  font-style: italic;
  font-size: 26px;
  color: var(--gold);
  flex-shrink: 0;
}
.how-step h3 {
  font-size: 21px;
  margin: 0 0 8px;
}
.how-step p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Villa grid (home + listing) ---------- */
.featured-section {
  padding: 0 0 96px;
}
.featured-section h2,
.listing-section h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 0 0 40px;
}
.villa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.villa-card {
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
}
.villa-card-img {
  aspect-ratio: 4/3;
}
.villa-card-body {
  padding: 24px;
}
.villa-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.villa-card h3 {
  font-size: 21px;
  margin: 0 0 6px;
}
.villa-loc {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}
.villa-price {
  font-size: 15px;
  margin: 10px 0 0;
}

/* ---------- Standards split ---------- */
.standards-section {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 72px;
  align-items: center;
  padding: 0 0 96px;
}
.standards-section h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  margin: 0 0 20px;
  line-height: 1.25;
}
.standards-section p {
  font-size: 16px;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.8;
}
.standards-img {
  aspect-ratio: 951/665;
  border-radius: 18px;
}

/* ---------- Mosaic ---------- */
.mosaic-section {
  padding: 0 0 96px;
}
.mosaic-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 560px;
}
.mosaic-big {
  grid-row: span 2;
}
.mosaic-grid > div {
  border-radius: 18px;
}

/* ---------- Testimonial ---------- */
.testimonial-section {
  padding: 80px clamp(24px, 5vw, 80px);
  margin: 0 auto 96px;
  max-width: 1240px;
  border-radius: 24px;
  background: var(--forest);
  text-align: center;
}
.quote-mark {
  font-family: var(--font-h);
  font-size: 64px;
  color: var(--gold);
  opacity: 0.6;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.testimonial-section blockquote {
  font-family: var(--font-h);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.5;
  max-width: 38ch;
  margin: 0 auto 24px;
  color: #fff;
}
.testimonial-section figcaption {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

/* ---------- FAQ ---------- */
.faq-section {
  padding: 0 0 96px;
  max-width: 780px;
  margin: 0 auto;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-h);
  font-size: 19px;
  font-weight: 600;
  padding: 24px 0;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq summary::after {
  content: "+";
  font-size: 24px;
  color: var(--gold-dark);
  transition: transform 0.35s ease;
  font-family: var(--font-b);
  font-weight: 300;
}
details.faq[open] summary::after {
  transform: rotate(45deg);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
details.faq[open] .faq-body-wrap {
  grid-template-rows: 1fr;
}
.faq-body-inner {
  overflow: hidden;
}
.faq-body {
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 60ch;
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--sand);
  padding: 72px clamp(20px, 5vw, 64px);
  text-align: center;
}
.final-cta > div {
  max-width: 800px;
  margin: 0 auto;
}
.final-cta h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 28px;
  color: var(--forest);
}

/* ---------- Listing filters ---------- */
.page-hero {
  padding: 56px 0 36px;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 14px;
}
.page-hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 56ch;
}
.filters-bar {
  margin: 0 0 48px;
  padding: 22px 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.seg {
  display: flex;
  background: var(--sand);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.seg label {
  position: relative;
}
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
  margin: 0;
}
.seg span {
  display: block;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s;
}
.seg input:checked + span {
  background: #fff;
  color: var(--forest);
  box-shadow: var(--shadow-sm);
}
.chips-row {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}
.chip {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
}
.chip:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}
.chip-active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.chip-active:hover {
  color: #fff;
}
.load-more-wrap {
  text-align: center;
  margin-top: 48px;
}
.no-results {
  padding: 40px 0;
  text-align: center;
}

/* ---------- Detail page ---------- */
.detail-wrap {
  padding-bottom: 0;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 36px 0 0;
}
.breadcrumb a {
  color: inherit;
}
.detail-head {
  padding: 16px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.detail-head h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 0 0 10px;
}
.detail-loc {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 14px;
}
.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 64px;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
}
.gal-main {
  grid-row: span 2;
}
.gal-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gal-cell {
  cursor: pointer;
}
.gal-overlay-count {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 28px;
  font-weight: 600;
  pointer-events: none;
}

.oa-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 7, 0.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.oa-lightbox.is-open {
  display: flex;
}
.oa-lightbox figure {
  margin: 0;
  max-width: 90vw;
  max-height: 82vh;
}
.oa-lightbox img {
  display: block;
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.oa-lb-close,
.oa-lb-prev,
.oa-lb-next {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.oa-lb-close:hover,
.oa-lb-prev:hover,
.oa-lb-next:hover {
  background: rgba(255, 255, 255, 0.2);
}
.oa-lb-close {
  top: 24px;
  right: 24px;
}
.oa-lb-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.oa-lb-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.oa-lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.03em;
}
@media (max-width: 640px) {
  .oa-lb-prev {
    left: 8px;
  }
  .oa-lb-next {
    right: 8px;
  }
  .oa-lb-close {
    top: 12px;
    right: 12px;
  }
}
.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
}
.detail-main {
  min-width: 0;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.detail-block {
  padding: 36px 0 44px;
  border-bottom: 1px solid var(--border);
}
.detail-block:first-child {
  padding-top: 0;
}
.detail-block h2 {
  font-size: 25px;
  margin: 0 0 22px;
}
.detail-overview p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 14px;
}
table.roomtbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.roomtbl th {
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
table.roomtbl td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.amenity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--forest);
}
.rules-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.rules-block h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.nearby-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.nearby-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.nearby-row:last-child {
  border-bottom: none;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.quote-mark-sm {
  font-family: var(--font-h);
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.review-card p {
  font-size: 14.5px;
  margin: 0 0 14px;
  color: var(--text);
}
.review-meta {
  font-size: 13px;
  color: var(--muted) !important;
  margin: 0 !important;
  display: flex;
  gap: 4px;
  align-items: center;
}
.similar-block {
  border-bottom: none;
  padding-bottom: 8px;
}
.similar-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.similar-card {
  flex: 0 0 220px;
}
.similar-img {
  aspect-ratio: 4/3;
  margin-bottom: 10px;
  border-radius: 14px;
}
.similar-name {
  font-size: 14px;
  margin: 0 0 2px;
  font-weight: 600;
}
.similar-price {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Booking price card ---------- */
.price-card {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-md);
}
.price-card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}
.price-line {
  font-size: 23px;
  margin: 0 0 4px;
}
.price-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.guests-field {
  margin: 0 0 16px;
}
.guests-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.guests-stepper span {
  font-size: 15px;
  min-width: 24px;
  text-align: center;
}
.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--muted);
}
.price-breakdown > div {
  display: flex;
  justify-content: space-between;
}
.price-subtotal-row {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-weight: 600;
  color: var(--text);
}
.price-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  margin-bottom: 18px;
}
.reserve-btn {
  width: 100%;
  justify-content: center;
  display: flex;
}
.price-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}

.oa-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.oa-modal.is-open {
  display: flex;
}
.oa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.55);
}
.oa-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
}
.oa-modal-panel h3 {
  font-size: 22px;
  margin: 0 0 18px;
  padding-right: 30px;
}
.oa-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.oa-modal-close:hover {
  background: var(--sand);
}
.oa-modal-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bg);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}
.oa-modal-summary div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.oa-modal-summary span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.oa-modal-summary strong {
  font-size: 15px;
  font-weight: 600;
}
.oa-modal-panel .field {
  margin-bottom: 14px;
}
.oa-modal-status {
  font-size: 13px;
  text-align: center;
  margin: 12px 0 0;
  min-height: 16px;
}
.oa-modal-status.is-success {
  color: var(--success);
}
.oa-modal-status.is-error {
  color: #c0392b;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  padding-bottom: 72px;
}
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.contact-form-card .wpcf7-form p {
  margin-bottom: 16px;
}
.contact-form-card label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 13px 14px;
  font-size: 14px;
  font-family: var(--font-b);
  color: var(--text);
}
.contact-form-card input[type="submit"] {
  background: var(--gold);
  color: #241d0f;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  height: 50px;
  padding: 0 30px;
}
.contact-form-card input[type="submit"]:hover {
  background: var(--gold-dark);
  color: #fff;
}
.contact-form-card .wpcf7-response-output {
  border-radius: 12px;
  margin-top: 16px;
  font-size: 13px;
}
.contact-map {
  aspect-ratio: 4/3;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 20px;
}
.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}
.contact-info-card p {
  margin: 6px 0 0;
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4px;
  }
  .footer-brand-col {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  .footer-acc {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
    text-align: left;
  }
  .footer-acc summary {
    cursor: pointer;
    pointer-events: auto;
    padding: 18px 4px;
    font-size: 13px;
  }
  .footer-acc summary::after {
    content: "+";
    font-size: 19px;
    color: var(--gold);
    font-weight: 300;
  }
  .footer-acc[open] summary::after {
    content: "\2212";
  }
  .footer-acc .footer-links {
    padding: 0 4px 18px;
    font-size: 15px;
  }
  .footer-acc:not([open]) .footer-links {
    display: none !important;
  }
  .footer-social {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 28px 0 8px;
  }
  .footer-social a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
  }
  .footer-newsletter {
    display: flex;
    gap: 8px;
    max-width: 360px;
    margin: 8px auto 32px;
    padding: 0 20px;
  }
  .footer-newsletter input {
    flex: 1;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 0 16px;
    font-size: 15px;
  }
  .footer-newsletter button {
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--gold);
    color: #241d0f;
    border: none;
    font-weight: 600;
    font-size: 13.5px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .villa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-section {
    grid-template-columns: 1fr;
  }
  .standards-section {
    grid-template-columns: 1fr;
  }
  .detail-body {
    grid-template-columns: 1fr;
  }
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .gal-main {
    grid-column: 1/-1;
    aspect-ratio: 16/9;
    height: auto;
  }
  .gallery-mosaic > div:not(.gal-main) {
    aspect-ratio: 4/3;
    height: auto;
  }
}
@media (max-width: 768px) {
  #site-nav .navlink,
  #site-nav .btn-gold.nav-cta {
    display: none !important;
  }
  .hamburger {
    display: flex;
  }
  .search-bar {
    grid-template-columns: 1fr !important;
    margin: -40px 0px 72px;
    padding: 24px 20px;
    gap: 16px;
    border-radius: 20px;
  }
  .search-btn {
    height: 54px;
    width: 100%;
  }
  .field label {
    font-size: 12px;
  }
  .field input,
  .field select {
    height: 52px;
    font-size: 16px;
    border-radius: 14px;
  }
  .hero-section {
    min-height: 600px;
  }
  .hero-h1 {
    font-size: clamp(38px, 9.5vw, 42px);
    line-height: 1.12;
  }
  .hero-p {
    font-size: 16px;
  }
  h2 {
    font-size: clamp(28px, 7vw, 32px);
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .villa-grid {
    grid-template-columns: 1fr;
  }
  .mosaic-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }
  .mosaic-grid > div {
    aspect-ratio: 16/9;
  }
  .mosaic-big {
    grid-row: auto;
  }
  .testimonial-section {
    padding: 56px 24px;
  }
  .faq-section {
    padding-left: 4px;
    padding-right: 4px;
  }
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .seg {
    overflow-x: auto;
  }
  h1 {
    font-size: clamp(30px, 8vw, 36px);
  }
  .amenities-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rules-block {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .price-card {
    position: static;
    margin-top: 24px;
  }
  .single-villa .breadcrumb {
    margin-top: 120px;
  }
  .villa-card-body,
  .filters-bar {
    padding: 16px;
  }
  .seg span {
    padding: 12px;
    font-size: 12px;
  }
  .chip {
    padding: 10px;
    font-size: 12px;
  }
  .similar-scroll {
    flex-wrap: wrap;
  }
  .similar-card {
    flex: 0 0 100%;
  }
  table.roomtbl td.muted,
  table.roomtbl th.muted {
    display: none;
  }
  .price-card {
    padding: 16px;
  }
  .price-dates {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: clamp(28px, 9vw, 38px);
  }
  .btn-gold,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .stats-grid {
    grid-template-columns: 2fr 2fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  form .btn-gold {
    width: 100%;
  }
  .amenities-grid {
    grid-template-columns: 2fr 2fr;
  }
}
