
:root {
    --green: #1f7a4d;
    --green-2: #27875a;
    --green-dark: #0f4d31;
    --green-soft: #eef8f2;
    --text: #1d2a23;
    --muted: #6b756f;
    --border: #e6ebe8;
    --white: #fff;
    --shadow: 0 18px 45px rgba(18, 62, 39, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1180px;
}

/* ==========================================
   HEADER
========================================== */

.site-header {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 20;
    padding: 22px 0;
}

.site-brand {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-brand .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--green);
    font-size: 15px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    font-size: .94rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}

.site-nav a:hover {
    color: #fff;
}

.nav-book {
    padding: 11px 20px;
    border-radius: 999px !important;
    background: #fff;
    color: var(--green-dark) !important;
    font-weight: 700 !important;
}

/* ==========================================
   DYNAMIC HERO IMAGE AND VIDEO
========================================== */

.hero {
    min-height: 720px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;

    background-image: var(--hero-bg-image);
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;

    color: #fff;
}

/* Background video */

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

/* Gradient overlay for image and video */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(9, 45, 28, .74) 0%,
        rgba(9, 45, 28, .47) 48%,
        rgba(9, 45, 28, .20) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Hero content above background */

.hero > .container {
    position: relative;
    z-index: 2;
}

/* Original hero content */

.hero-content {
    max-width: 720px;
    padding-top: 72px;
}

.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: .87rem;
    font-weight: 700;
}

.rating-chip .stars {
    color: #ffda70;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(3rem, 6.2vw, 5.8rem);
    line-height: .96;
    font-weight: 800;
    letter-spacing: -.045em;
    margin: 24px 0 20px;
    max-width: 850px;
}

.hero .lead {
    font-size: 1.12rem;
    line-height: 1.8;
    max-width: 650px;
    color: rgba(255, 255, 255, .9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn-main {
    background: #fff;
    color: var(--green-dark);
    border: none;
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 700;
}

.btn-main:hover {
    background: #f4f7f5;
    color: var(--green-dark);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, .05);
}

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

/* ==========================================
   HERO STATS - ORIGINAL POSITION RESTORED
========================================== */

.hero-stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;

    background: rgba(7, 38, 24, .62);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.stat {
    padding: 25px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid rgba(255, 255, 255, .14);
}

.stat:last-child {
    border-right: none;
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .13);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}

.stat strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1.15;
}

.stat span {
    font-size: .85rem;
    color: rgba(255, 255, 255, .72);
}

/* ==========================================
   GENERAL SECTIONS
========================================== */

.section {
    padding: 96px 0;
}

.section-soft {
    background: #f7faf8;
}

.kicker {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
    margin-bottom: 14px;
}

.section-copy {
    color: var(--muted);
    max-width: 680px;
    margin: 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
}

.text-link {
    color: var(--green);
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================
   GALLERY
========================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr .75fr;
    grid-template-rows: 250px 250px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #e9efeb;
}

.gallery-item:first-child {
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.gallery-item:hover img {
    transform: scale(1.045);
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 38px 18px 16px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, .62)
    );
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
}

/* Full gallery page */

.gallery-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 250px;
}

.gallery-page-grid .gallery-item,
.gallery-page-grid .gallery-item:first-child {
    grid-column: auto;
    grid-row: auto;
    height: 100%;
    min-width: 0;
}

/* ==========================================
   AMENITIES
========================================== */

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

.amenity-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    min-height: 190px;
    transition: .25s;
    box-shadow: 0 10px 30px rgba(26, 70, 45, .035);
}

.amenity-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.amenity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.amenity-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.amenity-card p {
    font-size: .94rem;
    color: var(--muted);
    margin: 0;
}

/* ==========================================
   LOCATION
========================================== */

.location-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 24px;
    align-items: stretch;
}

.map-card {
    min-height: 480px;
    border-radius: 20px;
    overflow: hidden;
    background: #e5ece7;
    box-shadow: var(--shadow);
}

/* .map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 0;
} */


/* Google Map iframe fix */
.map-card iframe {
    display: block;
    width: 100%;
    height: 480px;
    min-height: 480px;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
    }

    .map-card {
        min-height: 350px;
    }

    .map-card iframe {
        height: 350px;
        min-height: 350px;
    }
}


.location-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 34px;
    background: #fff;
}

.location-card h3 {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: 0;
}

.info-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--green-soft);
    color: var(--green);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.info-row strong {
    display: block;
    font-size: .92rem;
    margin-bottom: 4px;
}

.info-row span,
.info-row a {
    font-size: .93rem;
    color: var(--muted);
}

/* ==========================================
   BOOKING SECTION
========================================== */

.booking-section {
    background: linear-gradient(
        135deg,
        #0f4d31,
        #1f7a4d
    );
    color: #fff;
}

.booking-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.booking-copy .section-title {
    color: #fff;
}

.booking-copy p {
    color: rgba(255, 255, 255, .76);
    max-width: 500px;
}

.booking-points {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.booking-point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .92);
}

.booking-point i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    font-size: .78rem;
}

.booking-card {
    background: #fff;
    color: var(--text);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .18);
}

.booking-card label {
    font-size: .83rem;
    font-weight: 700;
    margin-bottom: 7px;
    color: #34463d;
}

.booking-card .form-control,
.booking-card .form-select {
    border: 1px solid #dfe7e2;
    border-radius: 10px;
    padding: 12px 13px;
    font-size: .94rem;
}

.booking-card .form-control:focus,
.booking-card .form-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 .2rem rgba(31, 122, 77, .10);
}

.btn-green {
    background: var(--green);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 13px 20px;
    font-weight: 700;
}

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

/* ==========================================
   CONTACT FORM 7
========================================== */

#booking .farm-booking-form {
    width: 100%;
}

#booking .farm-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

#booking .farm-form-group {
    min-width: 0;
    margin-bottom: 18px;
}

#booking .farm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #24382e;
}

#booking .farm-form-group .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    min-width: 0;
}

#booking .farm-booking-form input[type="text"],
#booking .farm-booking-form input[type="tel"],
#booking .farm-booking-form input[type="email"],
#booking .farm-booking-form input[type="date"],
#booking .farm-booking-form input[type="number"],
#booking .farm-booking-form select,
#booking .farm-booking-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #d7ded9;
    border-radius: 10px;
    background: #fff;
    color: #24382e;
    font-family: inherit;
    font-size: 15px;
    padding: 12px 14px;
    outline: none;
    transition: border-color .2s ease,
                box-shadow .2s ease;
}

#booking .farm-booking-form input[type="text"],
#booking .farm-booking-form input[type="tel"],
#booking .farm-booking-form input[type="email"],
#booking .farm-booking-form input[type="date"],
#booking .farm-booking-form input[type="number"],
#booking .farm-booking-form select {
    height: 52px;
}

#booking .farm-booking-form textarea {
    height: 110px;
    min-height: 110px;
    resize: vertical;
}

#booking .farm-booking-form input:focus,
#booking .farm-booking-form select:focus,
#booking .farm-booking-form textarea:focus {
    border-color: #21845a;
    box-shadow: 0 0 0 3px rgba(33, 132, 90, .12);
}

#booking .farm-booking-form input::placeholder,
#booking .farm-booking-form textarea::placeholder {
    color: #89968e;
}

#booking .farm-form-submit {
    margin-top: 4px;
}

#booking .farm-form-submit input[type="submit"] {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 14px 22px;
    border: none;
    border-radius: 10px;
    background: #e7a83e;
    color: #173c2b;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease,
                transform .2s ease;
}

#booking .farm-form-submit input[type="submit"]:hover {
    background: #f2bb5a;
    transform: translateY(-1px);
}

#booking .wpcf7-not-valid-tip {
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
}

#booking .farm-booking-form p {
    margin: 0;
    padding: 0;
}

#booking .farm-booking-form p br {
    display: none;
}

/* ==========================================
   FOOTER
========================================== */

.site-footer {
    padding: 34px 0;
    background: #0a3020;
    color: #dce8e1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    font-weight: 800;
    color: #fff;
}

.footer-contact {
    display: flex;
    gap: 22px;
    font-size: .9rem;
}

.footer-contact a {
    color: #dce8e1;
}

.footer-copy {
    font-size: .82rem;
    color: #91aa9c;
}

/* ==========================================
   INNER PAGE HERO
========================================== */

.page-hero {
    padding: 150px 0 80px;
    background:
        linear-gradient(
            90deg,
            rgba(10, 51, 31, .80),
            rgba(10, 51, 31, .35)
        ),
        url('https://dragonfruit.farm/images/NAS01128.JPG')
        center / cover;
    color: #fff;
}

.page-hero .kicker {
    color: #d7efdf;
}

.page-hero h1 {
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -.04em;
}

.page-hero p {
    max-width: 650px;
    color: rgba(255, 255, 255, .85);
}

.inner-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(19, 61, 38, .05);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 700;
}

/* ==========================================
   FULLSCREEN GALLERY VIEWER
========================================== */

.gallery-grid [data-lightbox] {
    cursor: zoom-in;
}

body.farm-lightbox-open {
    overflow: hidden;
}

.farm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(6, 12, 10, .94);
    padding: 64px 70px 35px;
}

.farm-lightbox.is-open {
    display: flex;
}

.farm-lightbox-figure {
    margin: 0;
    max-width: min(1150px, 100%);
    width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.farm-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 165px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 12px 55px rgba(0, 0, 0, .4);
}

.farm-lightbox-caption {
    margin-top: 14px;
    color: #fff;
    text-align: center;
    font-size: 15px;
}

.farm-lightbox-count {
    color: #cbd5d1;
    font-size: 12px;
    margin-top: 5px;
}

.farm-lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: white;
    cursor: pointer;
    width: 46px;
    height: 46px;
    font-size: 26px;
    line-height: 1;
    transition: background .2s;
}

.farm-lightbox button:hover,
.farm-lightbox button:focus-visible {
    background: rgba(255, 255, 255, .3);
    outline: 2px solid white;
    outline-offset: 2px;
}

.farm-lightbox-close {
    right: 22px;
    top: 18px;
    font-size: 34px !important;
}

.farm-lightbox-prev {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.farm-lightbox-next {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

/* ==========================================
   TABLET RESPONSIVE
========================================== */

@media (max-width: 991px) {

    .site-nav {
        display: none;
    }

    .hero {
        min-height: 680px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat {
        padding: 20px 16px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 330px 220px 220px;
    }

    .gallery-item:first-child {
        grid-column: 1 / 3;
        grid-row: auto;
    }

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

    .location-grid,
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .map-card,
    .map-card iframe {
        min-height: 390px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 800px) {

    .gallery-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: 220px;
    }

    .gallery-page-grid .gallery-item,
    .gallery-page-grid .gallery-item:first-child {
        height: 100%;
        grid-column: auto;
        grid-row: auto;
    }
}

/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 767px) {

    .site-header {
        padding: 16px 0;
    }

    .hero {
        min-height: 760px;
        padding: 110px 0 190px;
        background-position: 55% center;
    }

    .hero-video {
        object-position: center;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero h1 {
        font-size: 3.15rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        position: absolute;
        bottom: 0;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        padding: 13px 20px;
    }

    .stat:last-child {
        border-bottom: 0;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
    }

    .stat strong {
        font-size: 1.12rem;
    }

    .section {
        padding: 68px 0;
    }

    .section-head {
        display: block;
    }

    .section-head .text-link {
        display: inline-block;
        margin-top: 16px;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .gallery-item,
    .gallery-item:first-child {
        height: 260px;
        grid-column: auto;
        grid-row: auto;
    }

    .amenity-grid {
        grid-template-columns: 1fr;
    }

    .location-card,
    .booking-card {
        padding: 23px;
    }

    .footer-contact {
        flex-direction: column;
        gap: 6px;
    }

    .page-hero {
        padding: 120px 0 65px;
    }

    /* Booking form mobile */

    #booking .farm-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #booking .farm-form-group {
        margin-bottom: 16px;
    }

    #booking .farm-booking-form input,
    #booking .farm-booking-form select,
    #booking .farm-booking-form textarea {
        font-size: 16px;
    }

    #booking .farm-form-submit input[type="submit"] {
        width: 100%;
    }
}

/* ==========================================
   SMALL SCREEN GALLERY
========================================== */

@media (max-width: 600px) {

    .farm-lightbox {
        padding: 70px 45px 45px;
    }

    .farm-lightbox button {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .farm-lightbox-prev {
        left: 5px;
    }

    .farm-lightbox-next {
        right: 5px;
    }

    .farm-lightbox-close {
        right: 12px;
        top: 14px;
    }

    .farm-lightbox-image {
        max-height: calc(100dvh - 180px);
    }
}

@media (max-width: 520px) {

    .gallery-page-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: 260px;
    }
}

/* ==========================================
   REDUCED MOTION ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    .hero-video {
        display: none;
    }
}
