:root {
    color-scheme: only light;
    --bg: #f9fafa;
    --tint: #e5ebed;
    --white: #ffffff;
    --card: var(--white);
    --gold: #ffb730;
    --ink: #2b3336;
    --muted: #868686;
    --accent: #6aa3a2;
    --line: #d9e0e3;
    --shadow: 0 8px 18px rgba(18, 26, 28, 0.08);
    --body-copy-font-size: 18px;
    --header-font-size: 25px;
    --font-weight-regular: 400;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: var(--body-copy-font-size);
}

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

p {
    color: var(--muted);
}

h4 {
    margin: 0;
    font-family: "Raleway", "Times New Roman", serif;
    font-size: 25px;
    font-weight: var(--font-weight-regular);
}

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

button {
    font: inherit;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.section {
    padding: 0;
}

.container {
    width: 100%;
    margin: auto;
}

.section--tint {
    background: var(--tint);
}

.section--plain {
    background: #fff;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    padding-top: 2vw;
    padding-bottom: 2vw;
    padding-left: 4vw;
    padding-right: 4vw;
    pointer-events: auto;
}

.logo {
    font-family: "Raleway", "Times New Roman", serif;
    font-size: 32px;
    font-weight: var(--font-weight-regular);
    color: #fff;
    line-height: 35px;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--accent);
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 9;
    overflow-y: auto;
}

.site-nav.is-open {
    right: 0;
}

.site-nav a {
    color: #fff;
    font-size: 20px;
    font-weight: var(--font-weight-regular);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav a:hover {
    opacity: 0.8;
    padding-left: 10px;
}

.hero {
    position: relative;
    min-height: 140px;
    height: auto;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("../images/warrnamboolSunset.jpg");
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    font-family: "Raleway", "Times New Roman", serif;
    display: none;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: var(--font-weight-regular);
    line-height: 60px;
    letter-spacing: -2px;
}

.hero-label {
    background-color: var(--accent);
    color: var(--white);
}

.hero-label h4::after {
    content: '';
    border: 1px solid var(--gold);
    width: 40px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
    margin-bottom: 25px;
}

.intro-card {
    background: var(--card);
    border-radius: 2px;
    text-align: center;
    margin-top: 0;
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 16px;
    padding-right: 16px;
}

.intro-card h2 {
    margin: 0;
    font-family: "Raleway", "Times New Roman", serif;
    font-size: 22px;
    font-weight: var(--font-weight-regular);
    color: var(--muted);
    margin-bottom: 20px;
}

.intro-card .intro-description p {
    color: var(--muted);
    line-height: 22px;
    display: inline;
}

.split-card {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--card);
    border-radius: 2px;
    overflow: hidden;
    max-height: none;
}

.split-card__box {
    width: 100%;
    height: auto;
    min-height: 168px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
}

.split-card__label {
    background: var(--accent);
    color: #f4fbfb;
    font-family: "Raleway", "Times New Roman", serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    text-align: center;
}

.split-card__body {
    padding: 30px 16px;
    display: grid;
    gap: 16px;
    align-content: center;
    text-align: center;
}

.split-card__body p {
    display: inline;
    margin: 0 0 20px;
    color: var(--muted);
}

.split-card__body p::after {
    content: ' ';
}

.split-card__image {
    min-height: auto;
    order: 2;
}

.split-card__image img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
    max-height: 200px;
}

.split-card__text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 16px;
}

.split-card--map {
    display: grid;
    grid-template-columns: 1fr;
    max-height: none;
}

.split-card--map .split-card__media {
    order: 2;
    min-height: 300px;
    border-right: none;
    border-bottom: 1px solid var(--line);
}

.split-card--map .split-card__media iframe {
    width: 100%;
    height: 300px;
    min-height: 300px;
}

.split-card--map .split-card__text {
    order: 1;
    width: 100%;
    flex: none;
}

.split-card--map .split-card__body {
    order: 3;
    border-top: none;
    padding: 6%;
}

.split-card__body--full {
    min-height: 265px;
}

.split-card__media iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

section#location,
section#gallery,
section#bookings,
section#booking-platforms {
    padding-top: 0;
    padding-bottom: 0;
}

section#gallery {
    padding-bottom: 50px;
}

.gallery-card {
    background: transparent;
    padding: 0;
}

.gallery-main {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    display: block;
}

.gallery-main img.slide-in-left {
    animation: slideInLeft 0.3s ease-out forwards;
}

.gallery-main img.slide-in-right {
    animation: slideInRight 0.3s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow--prev {
    left: 8px;
}

.gallery-arrow--next {
    right: 8px;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 6px;
    margin-top: 12px;
    padding-left: 15px;
    padding-right: 15px;
}

.thumb {
    border: 1px solid transparent;
    border-radius: 2px;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 42px;
    object-fit: cover;
}

.thumb.is-active {
    border-color: var(--accent);
}

.booking-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.booking-logos a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

.booking-logos a:last-child {
    padding-top: 60px;
    padding-bottom: 70px;
}

.booking-logos img {
    height: auto;
    max-width: 200px;
    width: auto;
    object-fit: contain;
}

.site-footer {
    padding: 26px 0 50px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow--prev {
    left: 8px;
}

.lightbox-arrow--next {
    right: 8px;
}

#lightbox-image {
    max-width: 95%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
}

#lightbox-image.slide-in-left {
    animation: slideInLeft 0.3s ease-out forwards;
}

#lightbox-image.slide-in-right {
    animation: slideInRight 0.3s ease-out forwards;
}


/* Desktop Styles - min-width: 768px */
@media (min-width: 768px) {
    /* Container */
    .container {
        width: 1020px;
        padding-left: 0;
        padding-right: 0;
    }

    /* Hamburger - Hide on desktop */
    .hamburger {
        display: none;
    }

    /* Header Navigation - Show on desktop */
    .site-nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        display: flex;
        flex-direction: row;
        gap: 32px;
        align-items: center;
        padding: 0;
        right: 0;
    }

    .site-nav a {
        font-size: 16px;
        padding: 0;
        width: auto;
        border-bottom: none;
    }

    .site-nav a:hover {
        padding-left: 0;
    }

    /* Hero Section */
    .hero {
        min-height: 645px;
    }

    .hero-content {
        display: block;
    }

    .hero-content h1 {
        font-size: 85px;
        line-height: 114px;
    }

    /* Hero Label */
    .hero-label h4::after {
        margin-top: 35px;
    }

    /* Intro Card */
    .intro-card {
        margin-top: -75px;
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .intro-card .intro-description p {
        display: block;
    }

    .intro-card h2 {
        font-size: var(--header-font-size);
        margin-bottom: 60px;
    }

    /* Split Cards - Desktop Layout */
    .split-card {
        display: flex;
        max-height: 265px;
    }

    .split-card__box {
        width: 365px;
        min-height: 275px;
        padding: 0;
    }

    .split-card__text {
        padding: 30px;
    }

    .split-card__body {
        padding: 24px 30px;
    }

    .split-card__body p {
        display: block;
        margin: 0;
    }

    .split-card__body p::after {
        content: none;
    }

    .split-card__image {
        min-height: auto;
        order: unset;
    }

    .split-card__image img {
        max-height: fit-content;
    }

    /* Villa Section - Reset order */
    #villa .split-card:first-child .split-card__box,
    #villa .split-card:first-child .split-card__image,
    #villa .split-card:nth-child(2) .split-card__image,
    #villa .split-card:nth-child(2) .split-card__text {
        order: unset;
    }

    /* Location Section - Desktop */
    .split-card--map {
        display: flex;
        flex-direction: row;
    }

    .split-card--map .split-card__media {
        flex: 1;
        order: unset;
        min-height: 265px;
        border-right: 1px solid var(--line);
        border-bottom: none;
    }

    .split-card--map .split-card__media iframe {
        height: 100%;
    }

    .split-card--map .split-card__text {
        flex: 0 0 365px;
        width: 365px;
        order: unset;
    }

    .split-card--map .split-card__body {
        order: unset;
        padding: 22px 30px 26px;
        border-top: 1px solid #edf1f3;
    }

    /* Section spacing */
    section#location,
    section#gallery,
    section#bookings,
    section#booking-platforms {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    /* Gallery adjustments */
    .gallery-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
        gap: 8px;
        margin-top: 16px;
    }

    .thumb img {
        height: 52px;
    }

    .gallery-arrow {
        width: 48px;
        height: 48px;
    }

    .gallery-arrow--prev {
        left: 16px;
    }

    .gallery-arrow--next {
        right: 16px;
    }

    /* Booking Logos - Desktop horizontal */
    .booking-logos {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 48px;
    }

    .booking-logos a {
        width: auto;
        padding: 0;
    }

    .booking-logos a:last-child {
        padding: 0;
    }

    .booking-logos img {
        height: auto;
        max-height: fit-content;
        max-width: 290px;
    }

    /* Lightbox - Desktop */
    .lightbox-close {
        top: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
    }

    .lightbox-arrow {
        width: 56px;
        height: 56px;
    }

    .lightbox-arrow--prev {
        left: 24px;
    }

    .lightbox-arrow--next {
        right: 24px;
    }

    #lightbox-image {
        max-width: 90%;
        max-height: 90%;
    }

    /* Footer */
    .site-footer {
        padding: 26px 0 50px;
    }
}
