/*!
 * Greenish theme styles
 * Bootstrap 5 overrides (colours, type, buttons, forms, cards, accordion) plus page-specific styles.
 * Palette: forest #22301f, amber #e9a83a (main calls to action only), paper #fbfaf6, sage #e3e8da.
 * Type: Fraunces (titles), Figtree (text).
 */

/* =====================================================================
   BOOTSTRAP THEME OVERRIDES
   Palette: forest #22301f, amber #e9a83a (main CTAs only), paper #fbfaf6, sage #e3e8da
   Type:    Fraunces (titles), Figtree (text, close to Helvetica Neue)
   ===================================================================== */
:root {
  --nl-forest: #22301f;
  --nl-forest-2: #34472f;
  --nl-gold: #e9a83a;
  --nl-gold-dark: #d4952a;
  --nl-paper: #fbfaf6;
  --nl-sage: #e3e8da;
  --nl-line: #dcdfd2;
  --nl-header-h: 72px;

  --bs-primary: #22301f;            --bs-primary-rgb: 34, 48, 31;
  --bs-warning: #e9a83a;            --bs-warning-rgb: 233, 168, 58;
  --bs-secondary: #596257;          --bs-secondary-rgb: 89, 98, 87;
  --bs-light: #e3e8da;              --bs-light-rgb: 227, 232, 218;
  --bs-dark: #182116;               --bs-dark-rgb: 24, 33, 22;
  --bs-body-bg: #fbfaf6;            --bs-body-bg-rgb: 251, 250, 246;
  --bs-body-color: #1c211b;         --bs-body-color-rgb: 28, 33, 27;
  --bs-secondary-color: #596257;
  --bs-emphasis-color: #1c211b;
  --bs-heading-color: #1c211b;
  --bs-border-color: #dcdfd2;
  --bs-link-color: #22301f;         --bs-link-color-rgb: 34, 48, 31;
  --bs-link-hover-color: #000;      --bs-link-hover-color-rgb: 0, 0, 0;
  --bs-focus-ring-color: rgba(34, 48, 31, .25);
  --bs-body-font-family: 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --bs-body-line-height: 1.65;
  --bs-border-radius: .625rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-xl: 1.5rem;
  --bs-font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
:focus-visible { outline: 3px solid var(--nl-forest); outline-offset: 3px; }
.bg-dark :focus-visible, .bg-primary :focus-visible { outline-color: var(--nl-gold); }

/* Headings use the serif */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--bs-font-serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.08;
}
.display-3 { line-height: 1; }

/* Buttons */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: .625rem; }
.btn:not(.btn-sm):not(.btn-lg) { --bs-btn-padding-y: .75rem; --bs-btn-padding-x: 1.4rem; }
.btn-primary {
  --bs-btn-bg: #22301f; --bs-btn-border-color: #22301f; --bs-btn-color: #fff;
  --bs-btn-hover-bg: #000; --bs-btn-hover-border-color: #000; --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #000; --bs-btn-active-border-color: #000; --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 34, 48, 31;
}
.btn-warning {
  --bs-btn-color: #22301f; --bs-btn-bg: #e9a83a; --bs-btn-border-color: #e9a83a;
  --bs-btn-hover-color: #22301f; --bs-btn-hover-bg: #d4952a; --bs-btn-hover-border-color: #d4952a;
  --bs-btn-active-color: #22301f; --bs-btn-active-bg: #d4952a; --bs-btn-active-border-color: #d4952a;
  --bs-btn-focus-shadow-rgb: 233, 168, 58;
}
.btn-outline-primary {
  --bs-btn-color: #22301f; --bs-btn-border-color: #22301f;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #22301f; --bs-btn-hover-border-color: #22301f;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #22301f; --bs-btn-active-border-color: #22301f;
  --bs-btn-focus-shadow-rgb: 34, 48, 31;
}
.btn-outline-secondary {
  --bs-btn-color: #1c211b; --bs-btn-border-color: #dcdfd2; --bs-btn-bg: #fff;
  --bs-btn-hover-color: #1c211b; --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #22301f;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #22301f; --bs-btn-active-border-color: #22301f;
  --bs-btn-focus-shadow-rgb: 34, 48, 31;
}
.btn-outline-light { --bs-btn-hover-color: #22301f; --bs-btn-active-color: #22301f; }

/* Forms */
.form-label { font-weight: 600; font-size: .85rem; color: var(--bs-secondary-color); margin-bottom: .25rem; }
.form-control, .form-select { min-height: 50px; background-color: var(--nl-paper); border-color: var(--nl-line); }
.form-control:focus, .form-select:focus { background-color: var(--nl-paper); border-color: var(--nl-forest); box-shadow: 0 0 0 .25rem rgba(34, 48, 31, .15); }

/* Navbar */
.site-header { z-index: 1025; /* above the sticky map column (Bootstrap sticky-top is 1020) */ background: rgba(251, 250, 246, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--nl-line); }
.navbar { --bs-navbar-color: #1c211b; --bs-navbar-hover-color: #22301f; --bs-navbar-active-color: #22301f; --bs-navbar-brand-padding-y: 0; min-height: var(--nl-header-h); }
.navbar-brand img { height: 22px; width: auto; }
.navbar .nav-link { font-weight: 500; }
.navbar-toggler { border-color: var(--nl-line); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(34, 48, 31, .2); }
@media (min-width: 992px) { .navbar .nav-link { padding-left: .85rem; padding-right: .85rem; border-radius: .5rem; } .navbar .nav-link:hover { background: var(--nl-sage); } }

/* Cards, badges, accordion, table */
.card { --bs-card-border-color: #dcdfd2; --bs-card-border-radius: 1rem; --bs-card-inner-border-radius: calc(1rem - 1px); --bs-card-bg: #fff; }
.badge { font-weight: 600; }
.text-bg-warning { color: #22301f !important; }
.text-bg-light { color: #1c211b !important; }
.table-dark { --bs-table-bg: #22301f; --bs-table-border-color: #22301f; }
.accordion {
  --bs-accordion-bg: transparent; --bs-accordion-border-color: #dcdfd2; --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-bg: transparent; --bs-accordion-active-bg: transparent; --bs-accordion-active-color: #22301f;
  --bs-accordion-btn-color: #1c211b; --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-padding-x: 0; --bs-accordion-btn-padding-y: 1.3rem; --bs-accordion-body-padding-x: 0;
}
.accordion-button { font-family: var(--bs-font-serif); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.2; box-shadow: none; }
.accordion-button::after { background-image: none !important; content: "+"; width: auto; height: auto; font-family: var(--bs-body-font-family); font-size: 1.7rem; font-weight: 400; line-height: 1; transform: none !important; }
.accordion-button:not(.collapsed)::after { content: "\2212"; }
.accordion-button:focus-visible { outline: 3px solid var(--nl-forest); outline-offset: 2px; }
.accordion-body { color: var(--bs-secondary-color); padding-top: 0; padding-bottom: 1.4rem; }

/* =====================================================================
   PAGE-SPECIFIC STYLES (things Bootstrap has no utility for)
   ===================================================================== */
body { -webkit-text-size-adjust: 100%; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { fill: currentColor; stroke: none; }
.section { padding: 5rem 0; }
@media (max-width: 767.98px) { .section { padding: 3.5rem 0; } }
.measure { max-width: 56ch; }
.hero-title { max-width: 15ch; }

/* Hero */
.search-card { max-width: 860px; border-radius: 1.25rem; box-shadow: 0 24px 50px -30px rgba(34, 48, 31, .55); }
.search-msg { min-height: 1.4em; color: #9a3412; font-size: .92rem; }
.search-msg:empty { display: none; }
.hero { position: relative; overflow: hidden; padding-block: clamp(5rem, 12vw, 10rem) !important; background: radial-gradient(70rem 36rem at 88% -8%, rgba(176, 197, 160, .75), transparent 72%), radial-gradient(54rem 30rem at -5% 105%, rgba(176, 197, 160, .55), transparent 72%), radial-gradient(40rem 22rem at 50% 115%, rgba(233, 168, 58, .12), transparent 70%); }
.hero > .container { position: relative; z-index: 1; }
/* Optional background image (Customizer > Hero): darkened, with light text. */
.hero-has-bg::before { content: ""; position: absolute; inset: calc(var(--hero-blur, 0px) * -3); z-index: 0; background: linear-gradient(rgba(15, 22, 13, var(--hero-overlay, .45)), rgba(15, 22, 13, var(--hero-overlay, .45))), var(--hero-bg) center / cover no-repeat; filter: blur(var(--hero-blur, 0px)); }
.hero-has-bg .hero-title { color: #fff; }
.hero-has-bg .lead, .hero-has-bg .list-inline { color: rgba(255, 255, 255, .9) !important; }
.hero-has-bg .list-inline .ic { color: var(--nl-gold) !important; }
.hero-chip { background: #fff; border: 1px solid var(--nl-line); border-radius: 999px; padding: .45rem 1.1rem; margin-bottom: 0; }
.star { color: var(--nl-gold-dark); }

/* Trust strip */
.trust-item .ic { width: 1.6rem; height: 1.6rem; color: var(--nl-forest-2); }
@media (min-width: 992px) { .trust-item + .trust-item { border-left: 1px solid var(--nl-line); } }
@media (max-width: 991.98px) { .trust-item { border-bottom: 1px solid var(--nl-line); } .trust-item:nth-child(odd) { border-right: 1px solid var(--nl-line); } .trust-item:nth-last-child(-n+2) { border-bottom: 0; } }

/* Apartments */
.apt { overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.apt:hover, .apt.is-active { border-color: var(--nl-forest); box-shadow: 0 20px 40px -28px rgba(34, 48, 31, .6); }
.apt-media { background: linear-gradient(150deg, var(--c1, #d5d9cd), var(--c2, #aab5a3)); color: rgba(34, 48, 31, .4); }
.apt-media .ic { width: 2.2rem; height: 2.2rem; }
.apt-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 992px) { .apt-title { font-size: 21px; } }
.apt .rating .ic { color: var(--nl-gold-dark); width: .95em; height: .95em; }
.price-main { font-family: var(--bs-font-serif); font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.pp { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%) translateY(-8px); background: #fff; color: #1c211b; font: 600 .85rem/1 var(--bs-body-font-family); padding: .45rem .7rem; border-radius: 999px; box-shadow: 0 3px 10px rgba(0, 0, 0, .28); border: 1px solid var(--nl-line); white-space: nowrap; cursor: pointer; }
.pp::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: inherit; border-right: 1px solid var(--nl-line); border-bottom: 1px solid var(--nl-line); transform: translateX(-50%) rotate(45deg); }
.pp.is-active { background: var(--nl-forest); color: #fff; border-color: var(--nl-forest); }
.pp.is-active::after { border-color: var(--nl-forest); }
/* Soften the OpenStreetMap tiles: muted colours, gentle contrast, slightly lighter. */
.leaflet-tile-pane .osm-soft { filter: saturate(.55) contrast(.9) brightness(1.06) sepia(.08); }
.leaflet-container { background: #eceae4; }
.leaflet-popup-content { font-family: var(--bs-body-font-family); margin: 14px 16px; }
.leaflet-popup-content h3 { font-size: 1.25rem; margin: 0 0 .2rem; }
.leaflet-popup-content p { color: var(--bs-secondary-color); font-size: .92rem; margin: 0 0 .4rem; }
.leaflet-popup-content a { font-weight: 600; }


/* Reviews */
.reviews .star { color: var(--nl-gold-dark); }
.reviews h2 .ic, #reviewsModalTitle .ic { width: .8em; height: .8em; }
.review-stars { display: flex; gap: 2px; }
.review-stars .ic { width: 1rem; height: 1rem; }
.review-stars .star-off { color: #c9ccc2; }
.review-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-grid.review-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 576px) { .review-grid.review-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.review-list { display: grid; gap: 1rem; }
.review-card { display: flex; flex-direction: column; padding: 1.25rem; border: 1px solid var(--nl-line); border-radius: 1rem; background: #fff; }
.review-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--nl-sage); color: var(--nl-forest); font-weight: 600; }
.review-grid .review-text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review-text { line-height: 1.5; }

/* Areas */
.area { min-height: 420px; background: linear-gradient(160deg, var(--c1), var(--c2)); }
.area::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: linear-gradient(180deg, rgba(20, 28, 18, .05) 20%, rgba(20, 28, 18, .88) 100%); }
.area .card-img-overlay { z-index: 2; }
.area { position: relative; overflow: hidden; }
.area .area-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform .5s ease; }
.area:hover .area-img { transform: scale(1.04); }

/* Steps */
.step-num { font-family: var(--bs-font-serif); font-size: 2.6rem; line-height: 1; display: block; margin-bottom: .6rem; }

/* Footer */
.footer-logo { height: 22px; width: auto; filter: brightness(0) invert(1); }
.social a { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; }

/* Persistent contact */
.mobile-bar { padding-bottom: calc(.5rem + env(safe-area-inset-bottom)); background: rgba(251, 250, 246, .97); backdrop-filter: blur(8px); }
@media (max-width: 767.98px) { body { padding-bottom: 76px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* =====================================================================
   WORDPRESS ADDITIONS
   ===================================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; background: #fff; padding: .75rem 1rem; z-index: 2000; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.navbar .current-menu-item > .nav-link, .navbar .nav-link.active { color: var(--nl-forest); font-weight: 600; }
.greenish-logo { height: 22px; width: auto; max-width: none; }
.navbar-brand .greenish-logo { display: block; }

/* Post and page content */
.entry-content { font-size: 1.1rem; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2rem; }
.entry-content img, .entry-content video { max-width: 100%; height: auto; border-radius: var(--bs-border-radius-lg); }
.entry-content figure { margin: 0; }
.entry-content figcaption, .wp-caption-text { font-size: .9rem; color: var(--bs-secondary-color); margin-top: .5rem; }
.entry-content blockquote { border-left: 3px solid var(--nl-forest); padding-left: 1.25rem; font-family: var(--bs-font-serif); font-size: 1.4rem; }
.entry-content .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .wp-block-gallery { gap: .75rem; }
.entry-content a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.entry-content table { width: 100%; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--nl-line); padding: .6rem .75rem; text-align: left; }

/* Pagination */
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 .9rem; border: 1px solid var(--nl-line); border-radius: .625rem; background: #fff; color: var(--nl-forest); text-decoration: none; font-weight: 500; }
.page-numbers:hover { border-color: var(--nl-forest); }
.page-numbers.current { background: var(--nl-forest); border-color: var(--nl-forest); color: #fff; }

/* Single apartment */
.booking-panel { box-shadow: 0 24px 50px -30px rgba(34, 48, 31, .55); }
@media (min-width: 992px) { .booking-panel.sticky-lg-top { top: calc(var(--nl-header-h) + 16px); } }
.apt-single-map { height: 360px; border-radius: 1rem; border: 1px solid var(--nl-line); background: var(--nl-sage); isolation: isolate; }

/* Search form (default WordPress) */
.search-form { display: flex; gap: .5rem; max-width: 480px; }
.search-form label { flex: 1; margin: 0; }
.search-form .search-field { width: 100%; min-height: 50px; padding: .6rem .8rem; border: 1px solid var(--nl-line); border-radius: .625rem; background: var(--nl-paper); }
.search-form .search-submit { min-height: 50px; padding: 0 1.4rem; border: 0; border-radius: .625rem; background: var(--nl-forest); color: #fff; font-weight: 600; }

/* =====================================================================
   APARTMENT GALLERY (mosaic + full-screen carousel)
   ===================================================================== */
.gallery-mosaic {
  position: relative; display: grid; gap: .5rem; overflow: hidden; border-radius: 1rem;
  height: clamp(260px, 42vw, 480px);
  grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr);
}
.gallery-cell { padding: 0; border: 0; background: var(--nl-sage); overflow: hidden; cursor: zoom-in; min-width: 0; min-height: 0; }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .25s ease; }
.gallery-cell:hover img { filter: brightness(.9); }
.gallery-cell:focus-visible { outline: 3px solid var(--nl-gold); outline-offset: -3px; }
.gallery-cell.main { grid-column: 1 / 3; grid-row: 1 / 3; }

/* Layouts by number of photos */
.gallery-mosaic.g-n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery-mosaic.g-n1 .gallery-cell.main { grid-column: 1; grid-row: 1; }
.gallery-mosaic.g-n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.gallery-mosaic.g-n2 .gallery-cell.main { grid-column: 1; grid-row: 1; }
.gallery-mosaic.g-n3 { grid-template-columns: 2fr 1fr; }
.gallery-mosaic.g-n3 .gallery-cell.main { grid-column: 1; grid-row: 1 / 3; }
.gallery-mosaic.g-n4 .gallery-cell:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
.gallery-mosaic.g-n4 .gallery-cell:nth-child(3) { grid-column: 3; grid-row: 2; }
.gallery-mosaic.g-n4 .gallery-cell:nth-child(4) { grid-column: 4; grid-row: 2; }

.gallery-all {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2;
  background: #fff; color: var(--bs-body-color); border: 1px solid #1c211b; border-radius: .625rem;
  padding: .5rem .9rem; font-weight: 600; font-size: .95rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.gallery-all:hover { background: var(--nl-paper); }
.gallery-all:focus-visible { outline: 3px solid var(--nl-gold); outline-offset: 2px; }
.gallery-empty { height: clamp(220px, 34vw, 380px); border-radius: 1rem; background: linear-gradient(150deg, #d5d9cd, #aab5a3); color: rgba(34, 48, 31, .4); }
.gallery-empty .ic { width: 2.5rem; height: 2.5rem; }

@media (max-width: 767.98px) {
  .gallery-mosaic, .gallery-mosaic.g-n2, .gallery-mosaic.g-n3, .gallery-mosaic.g-n4 { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 280px; }
  .gallery-cell:not(.main) { display: none; }
  .gallery-mosaic .gallery-cell.main { grid-column: 1; grid-row: 1; }
}

/* Full-screen carousel */
.gallery-modal .modal-content { background: #0f150e; color: #fff; }
.gallery-modal .modal-body { min-height: 0; }
.gallery-modal .carousel { flex: 1 1 0; min-height: 0; position: relative; }
.gallery-modal .carousel-inner, .gallery-modal .carousel-item { height: 100%; }
.gallery-slide { height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 3.75rem; }
.gallery-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: .5rem; }
.gallery-modal .carousel-control-prev, .gallery-modal .carousel-control-next { width: 4rem; opacity: .85; }
.gallery-modal .carousel-control-prev:hover, .gallery-modal .carousel-control-next:hover { opacity: 1; }
.gallery-modal .carousel-control-prev:focus-visible, .gallery-modal .carousel-control-next:focus-visible { outline: 3px solid var(--nl-gold); outline-offset: -3px; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem 1rem 1rem; flex: 0 0 auto; scroll-behavior: smooth; }
.gallery-thumb { flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: .5rem; overflow: hidden; background: none; opacity: .6; transition: opacity .2s ease; }
.gallery-thumb:hover { opacity: .9; }
.gallery-thumb.active { border-color: var(--nl-gold); opacity: 1; }
.gallery-thumb:focus-visible { outline: 3px solid var(--nl-gold); outline-offset: 2px; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767.98px) { .gallery-slide { padding: 0 .5rem; } .gallery-modal .carousel-control-prev, .gallery-modal .carousel-control-next { width: 2.75rem; } }
