@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

:root {
    --header-solid: #191e23;
    --page-bg: #f4f5f7;
    --surface: #ffffff;
    --text: #1d2329;
    --muted: #59636e;
    --line: #dbe0e6;
    --accent: #f4c400;
    --accent-strong: #d6ab00;
    --radius: 14px;
    --container: min(1160px, 92vw);
    --shadow-soft: 0 22px 50px rgba(21, 28, 34, 0.08);
    --shadow-hover: 0 28px 65px rgba(21, 28, 34, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    margin: 0 0 0.45em;
    line-height: 1.14;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

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

a {
    color: inherit;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-header {
    background: var(--header-solid);
    border-bottom: 1px solid #2a3036;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    border-bottom-color: #39414a;
}

.header-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 26px;
}

.custom-logo-link img {
    max-height: 44px;
    width: auto;
}

.site-title {
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.site-title-mark {
    color: #f2f4f5;
    font-size: 1.72rem;
    font-weight: 600;
    line-height: 1;
}

.site-title-accent {
    color: var(--accent);
    font-size: 1.92rem;
    font-weight: 700;
    line-height: 1;
}

.menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 18px;
    justify-content: center;
}

.menu a {
    color: #c1c9d1;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.78rem;
    font-weight: 600;
    position: relative;
    transition: color 180ms ease;
}

.menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.menu a:hover {
    color: #ffffff;
}

.menu a:hover::after {
    transform: scaleX(1);
}

.header-cta {
    text-decoration: none;
    color: #12161a;
    background: var(--accent);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.header-cta:hover {
    background: var(--accent-strong);
    box-shadow: 0 12px 24px rgba(244, 196, 0, 0.25);
    transform: translateY(-2px);
}

/* Carousel Hero Styles */
.property-hero-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 620px;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 620px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 620px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 700ms ease-in-out;
}

.carousel-slide.is-active {
    opacity: 1;
}

.slide-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

.slide-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--container);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 70px 0;
    pointer-events: none;
}

.slide-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
}

.slide-card .eyebrow {
    color: #7b8794;
    font-size: 0.72rem;
}

.slide-card h1 {
    color: var(--text);
    font-size: 2.2rem;
    margin-bottom: 0.4em;
}

.project-location {
    font-weight: 700;
    color: #2a323b;
    margin-bottom: 0.8em;
}

.project-excerpt {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.2em;
    max-width: none;
}

.project-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-strong);
    margin-bottom: 1.6em;
}

.carousel-nav {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--container);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    z-index: 20;
    pointer-events: auto;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.9);
    border: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 220ms ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.carousel-prev:active,
.carousel-next:active {
    transform: scale(0.95);
}

.carousel-indicators {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--container);
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    z-index: 20;
    flex-wrap: wrap;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 0;
    cursor: pointer;
    transition: all 220ms ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.15);
}

.indicator.is-active {
    background: #ffffff;
    transform: scale(1.4);
}

.property-hero {
    padding: 40px 0 18px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 24px;
    align-items: stretch;
    position: relative;
}

.hero-copy {
    padding: 12px 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #7b8794;
    font-size: 0.72rem;
    font-weight: 700;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    max-width: 14ch;
    text-wrap: balance;
}

.hero-location {
    font-weight: 700;
    color: #2a323b;
}

.hero-excerpt {
    color: var(--muted);
    max-width: 50ch;
}

.hero-price {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.button {
    border: 0;
    border-radius: 999px;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
    background: var(--text);
    color: #ffffff;
    font-weight: 700;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    background: #0f1318;
    box-shadow: 0 16px 32px rgba(29, 35, 41, 0.18);
    transform: translateY(-2px);
}

.hero-media {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    min-height: 520px;
    position: relative;
    box-shadow: var(--shadow-soft);
    transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
    transition: transform 220ms ease, box-shadow 220ms ease;
    will-change: transform;
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%, rgba(17, 21, 26, 0.16));
    pointer-events: none;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(var(--media-scale, 1));
    transition: transform 500ms ease;
}

.hero-media:hover {
    box-shadow: var(--shadow-hover);
}

.hero-media:hover img {
    --media-scale: 1.04;
}

.property-specs {
    margin-top: -38px;
    padding: 0 0 34px;
    position: relative;
    z-index: 25;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 18px 34px rgba(21, 28, 34, 0.1);
}

.specs-grid article {
    padding: 18px 14px;
    border-right: 1px solid var(--line);
    text-align: center;
    transition: background-color 180ms ease, transform 180ms ease;
}

.specs-grid article:last-child {
    border-right: 0;
}

.specs-grid strong {
    display: block;
    font-size: 1.5rem;
    transition: color 180ms ease, transform 180ms ease;
}

.specs-grid span {
    color: var(--muted);
    font-size: 0.86rem;
}

.specs-grid article:hover {
    background: #fafbfc;
    transform: translateY(-3px);
}

.specs-grid article:hover strong {
    color: var(--accent-strong);
    transform: scale(1.06);
}

.property-gallery,
.projects-listing,
.tour-section {
    padding: 18px 0 48px;
}

.section-head {
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 12px;
}

.gallery-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    min-height: 220px;
    position: relative;
    box-shadow: var(--shadow-soft);
    transform: translateY(0);
    transition: transform 260ms ease, box-shadow 260ms ease, opacity 260ms ease;
    cursor: pointer;
}

.gallery-item.is-large {
    min-height: 460px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 550ms ease, filter 300ms ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: auto 14px 14px 14px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.gallery-item:hover,
.gallery-item.is-active {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.gallery-item:hover img,
.gallery-item.is-active img {
    transform: scale(1.06);
}

.gallery-item.is-active::after {
    transform: scaleX(1);
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
    will-change: transform;
}

.project-card figure {
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 550ms ease;
}

.project-content {
    padding: 16px;
    transition: transform 220ms ease;
}

.project-logo {
    max-height: 34px;
    width: auto;
    margin-bottom: 10px;
}

.project-content h3 {
    font-size: 1.45rem;
}

.project-location {
    font-weight: 700;
    color: #2f3943;
    margin-bottom: 8px;
}

.project-content p {
    color: var(--muted);
}

.project-content a {
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: color 180ms ease;
}

.project-content a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.project-card:hover {
    transform: translateY(-8px) perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
    box-shadow: var(--shadow-hover);
    border-color: #cfd6de;
}

.project-card:hover figure img {
    transform: scale(1.07);
}

.project-card:hover .project-content {
    transform: translateY(-2px);
}

.project-card:hover .project-content a::after {
    transform: scaleX(1);
}

.tour-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 22px;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.tour-grid:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.tour-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tour-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.85rem;
}

.tour-form label:nth-child(5),
.tour-form button {
    grid-column: 1 / -1;
}

.tour-form input {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tour-form input:focus {
    outline: none;
    border-color: #c9a200;
    box-shadow: 0 0 0 4px rgba(244, 196, 0, 0.16);
    transform: translateY(-1px);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.footer-inner {
    min-height: 100px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.footer-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.footer-brand p,
.copyright {
    color: var(--muted);
    margin: 0;
}

.footer-links {
    text-align: right;
}

.footer-nav .menu {
    justify-content: flex-end;
}

.single-project,
.archive-projects,
.content-default,
.archive-listing,
.not-found {
    padding: 34px 0 52px;
}

.single-project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-details-box {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.project-meta-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.project-meta-list li span {
    color: var(--muted);
    margin-right: 6px;
}

.embed-box,
.video-box {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.virtual-tour-box {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.virtual-tour-head h2 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    margin-bottom: 0.35em;
}

.virtual-tour-head p {
    color: var(--muted);
}

.virtual-tour-embed {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0f1318;
}

.virtual-tour-embed iframe {
    display: block;
    width: 100%;
    min-height: 520px;
    border: 0;
}

.virtual-tour-cta {
    margin-top: 14px;
    margin-bottom: 0;
}

.motion-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.motion-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-delay-1 {
    transition-delay: 80ms;
}

.reveal-delay-2 {
    transition-delay: 160ms;
}

.reveal-delay-3 {
    transition-delay: 240ms;
}

.reveal-delay-4 {
    transition-delay: 320ms;
}

@keyframes float-soft {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-copy .button,
.header-cta {
    animation: float-soft 4.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .motion-reveal {
        opacity: 1;
        transform: none;
    }
}

.embed-box iframe,
.video-box iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}

@media (max-width: 1024px) {
    .hero-grid,
    .tour-grid,
    .single-project-grid {
        grid-template-columns: 1fr;
    }

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

    .gallery-item.is-large {
        grid-column: 1 / -1;
    }

    .property-hero-carousel {
        min-height: 540px;
    }

    .carousel-wrapper {
        min-height: 540px;
    }

    .carousel-slides {
        min-height: 540px;
    }

    .slide-content {
        padding: 52px 0;
    }

    .slide-card {
        padding: 30px;
        max-width: 450px;
    }

    .property-specs {
        margin-top: -30px;
    }
}

@media (max-width: 820px) {
    .header-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
        padding: 12px 0;
    }

    .menu {
        flex-wrap: wrap;
    }

    .header-cta {
        justify-self: center;
    }

    .project-cards,
    .specs-grid,
    .tour-form,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-media,
    .project-card {
        transform: none !important;
    }

    .specs-grid article {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .specs-grid article:last-child {
        border-bottom: 0;
    }

    .footer-links,
    .footer-nav .menu {
        text-align: left;
        justify-content: flex-start;
    }

    .property-hero-carousel {
        min-height: 460px;
    }

    .carousel-wrapper {
        min-height: 460px;
    }

    .carousel-slides {
        min-height: 460px;
    }

    .carousel-nav {
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: var(--container);
        justify-content: flex-end;
        gap: 8px;
    }

    .carousel-prev,
    .carousel-next {
        width: 42px;
        height: 42px;
    }

    .carousel-indicators {
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: var(--container);
        justify-content: flex-start;
    }

    .slide-content {
        padding: 34px 0;
    }

    .slide-card {
        padding: 24px;
        max-width: 400px;
    }

    .slide-card h1 {
        font-size: 1.8rem;
    }

    .slide-card .button {
        font-size: 0.85rem;
        padding: 10px 20px;
    }

    .property-specs {
        margin-top: -22px;
    }

    .virtual-tour-box {
        padding: 16px;
    }

    .virtual-tour-embed iframe {
        min-height: 380px;
    }
}
