:root {
    --ink: #24302a;
    --ink-soft: #56605a;
    --paper: #f6f2e9;
    --white: #fffdf8;
    --accent: #9a7445;
    --accent-dark: #705331;
    --line: #ddd5c7;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

a {
    color: inherit;
}

header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 22px max(24px, calc((100% - var(--max-width)) / 2));
}

header > p {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    letter-spacing: .02em;
}

header > p a {
    text-decoration: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .025em;
}

nav a {
    text-decoration: none;
}

nav a:hover {
    color: var(--accent-dark);
}

nav span {
    margin-left: auto;
    color: var(--accent-dark);
    font-weight: 700;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 24px 80px;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.15;
}

h1 {
    max-width: 800px;
    margin: 0 0 24px;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    letter-spacing: -.025em;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

p {
    max-width: 760px;
}

main > section {
    margin-top: 28px;
    padding: 42px;
    background: var(--white);
    border: 1px solid var(--line);
}

body > main > section:first-child {
    margin-top: 0;
    padding: 72px 48px;
    background:
        linear-gradient(135deg, rgba(154,116,69,.13), transparent 55%),
        var(--white);
    border-top: 5px solid var(--accent);
}

body > main > section:first-child p {
    max-width: 690px;
    font-size: 1.18rem;
    color: var(--ink-soft);
}

body > main > h1 {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

footer {
    border-top: 1px solid var(--line);
    padding: 30px 24px 50px;
    color: var(--ink-soft);
    text-align: center;
    font-size: .9rem;
}

footer p {
    margin: 0 auto;
}

@media (max-width: 760px) {
    header {
        padding: 18px 20px;
    }

    header > p {
        font-size: 1.35rem;
    }

    nav {
        gap: 9px 16px;
    }

    nav span {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }

    main {
        padding: 42px 18px 60px;
    }

    main > section,
    body > main > section:first-child {
        padding: 30px 24px;
    }

    h1 {
        font-size: 2.6rem;
    }
}

/* Brand and image presentation */

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.site-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.site-brand a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 48px;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-height: 520px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 18px 40px rgba(36, 48, 42, .16);
}

.team-image {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 28px auto 36px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 16px 36px rgba(36, 48, 42, .14);
}

.property-card {
    overflow: hidden;
}

.property-card img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    margin-bottom: 28px;
}

@media (max-width: 820px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-image {
        max-height: 460px;
    }
}

/* Responsive layout refinements */

.site-brand img {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
}

.hero-image {
    display: block;
    width: 100%;
    max-width: 460px;
    max-height: none;
    aspect-ratio: auto;
    height: auto;
    margin-left: auto;
}

.team-image {
    width: min(100%, 680px);
    max-width: 680px;
    height: auto;
    margin: 28px auto 36px;
}

/* Tablet */
@media (max-width: 980px) {
    header {
        padding-left: 28px;
        padding-right: 28px;
    }

    .hero-grid {
        grid-template-columns: 1fr 360px;
        gap: 34px;
    }

    .hero-image {
        max-width: 360px;
    }

    .team-image {
        max-width: 600px;
    }

    main {
        padding-top: 48px;
    }
}

/* Small tablet and phone */
@media (max-width: 760px) {
    .site-brand {
        font-size: 1.3rem;
        gap: 11px;
    }

    .site-brand img {
        width: 42px;
        height: 42px;
    }

    nav {
        gap: 8px 14px;
        font-size: .86rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-image {
        width: min(100%, 440px);
        max-width: 440px;
        margin: 0 auto;
    }

    .team-image {
        width: 100%;
        max-width: 560px;
    }

    body > main > section:first-child {
        padding: 34px 26px;
    }
}

/* Narrow phones */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    header {
        padding: 16px 18px;
    }

    .site-brand {
        font-size: 1.15rem;
    }

    nav {
        gap: 7px 12px;
        font-size: .82rem;
    }

    main {
        padding: 32px 14px 48px;
    }

    main > section,
    body > main > section:first-child {
        padding: 24px 20px;
    }

    h1 {
        font-size: clamp(2.15rem, 11vw, 2.8rem);
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-image,
    .team-image {
        width: 100%;
        height: auto;
    }
}


/* =========================================================
   Property detail pages
   ========================================================= */

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.property-detail main {
    padding-top: 42px;
}

.property-detail main > section {
    margin-top: 30px;
}

.property-detail .property-hero {
    padding: 54px 48px;
}

.property-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 52px;
    align-items: center;
}

.property-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(2.8rem, 5.6vw, 5rem);
}

.property-location {
    margin: 0 0 28px;
    max-width: 620px;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.asking-price {
    margin: 0 0 22px;
    color: var(--accent-dark) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.15rem) !important;
    font-weight: 500;
    line-height: 1.1;
}

.hero-summary {
    max-width: 650px;
}

.property-hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 590px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 20px 44px rgba(36, 48, 42, .18);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 30px 0 26px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
}

.metric {
    min-height: 145px;
    padding: 26px 24px;
    background: var(--white);
}

.metric strong {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 500;
    line-height: 1.05;
}

.metric span {
    display: block;
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.45;
}

.status-note {
    max-width: 900px;
    margin-top: 28px;
    padding: 18px 20px;
    background: rgba(154, 116, 69, .08);
    border-left: 3px solid var(--accent);
    color: var(--ink-soft);
    font-size: .92rem;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 54px;
    align-items: start;
}

.two-column p:first-child {
    margin-top: 0;
}

.feature-list {
    margin: 0;
    padding-left: 1.2rem;
}

.feature-list li {
    margin: 0 0 10px;
    padding-left: 5px;
}

.table-wrap {
    width: 100%;
    margin: 28px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
}

.rent-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: var(--white);
    font-size: .94rem;
}

.rent-table th,
.rent-table td {
    padding: 15px 17px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.rent-table thead th {
    background: rgba(154, 116, 69, .10);
    color: var(--ink);
    font-size: .82rem;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.rent-table tbody tr:last-child td {
    border-bottom: 1px solid var(--line);
}

.rent-table tfoot th {
    background: rgba(36, 48, 42, .045);
    border-bottom: 0;
    font-size: 1rem;
}

.financial-summary {
    margin: 28px 0;
    border-top: 1px solid var(--line);
}

.financial-summary > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.financial-summary span {
    color: var(--ink-soft);
}

.financial-summary strong {
    white-space: nowrap;
    font-weight: 700;
}

.financial-summary .financial-total {
    padding-top: 22px;
    padding-bottom: 22px;
}

.financial-summary .financial-total span,
.financial-summary .financial-total strong {
    color: var(--ink);
    font-weight: 700;
}

.financial-summary .financial-total strong {
    color: var(--accent-dark);
    font-size: 1.2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 30px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
}

.detail-grid > div {
    min-height: 180px;
    padding: 25px 24px;
    background: var(--white);
}

.detail-grid h3 {
    margin-top: 0;
    color: var(--accent-dark);
}

.detail-grid p {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: .92rem;
}

.contact-panel {
    background:
        linear-gradient(135deg, rgba(154,116,69,.12), transparent 60%),
        var(--white);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    align-items: center;
    margin-top: 28px;
}

.button {
    display: inline-block;
    padding: 12px 20px;
    background: var(--accent-dark);
    border: 1px solid var(--accent-dark);
    color: var(--white);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .025em;
    line-height: 1.3;
    text-decoration: none;
}

.button:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.text-link {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.property-disclaimer {
    max-width: 900px;
    margin: 32px auto 0;
    color: var(--ink-soft);
    font-size: .8rem;
    line-height: 1.55;
    text-align: center;
}


/* Property listing cards */

.listing-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin: 22px 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.listing-facts span {
    color: var(--ink-soft);
    font-size: .9rem;
}

.listing-facts strong {
    color: var(--ink);
}


/* Property detail responsive layout */

@media (max-width: 980px) {
    .property-hero-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 34px;
    }

    .metric-grid,
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column {
        gap: 34px;
    }
}

@media (max-width: 760px) {
    .property-detail main {
        padding-top: 28px;
    }

    .property-detail .property-hero {
        padding: 32px 24px;
    }

    .property-hero-grid,
    .two-column {
        grid-template-columns: 1fr;
    }

    .property-hero-grid {
        gap: 28px;
    }

    .property-hero-image {
        max-height: none;
    }

    .metric-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .metric {
        min-height: auto;
    }

    .financial-summary > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .financial-summary strong {
        white-space: normal;
    }

    .cta-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Property photography */

.property-wide-figure,
.panorama-figure {
    margin: 34px 0 0;
}

.property-wide-figure img,
.panorama-figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 16px 36px rgba(36, 48, 42, .14);
}

.property-wide-figure img {
    max-height: 620px;
}

.property-wide-figure figcaption,
.panorama-figure figcaption {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: .78rem;
    line-height: 1.45;
}

.location-visual-grid {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: 42px;
    align-items: center;
    margin-top: 24px;
}

.location-visual-grid .panorama-figure {
    margin: 0;
}

.panorama-figure img {
    aspect-ratio: 16 / 9;
}

@media (max-width: 820px) {
    .location-visual-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .property-wide-figure {
        margin-top: 28px;
    }
}


/* Property location map */

.property-map-block {
    margin-top: 42px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.property-map-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 22px;
}

.property-map-heading h3 {
    margin: 0 0 7px;
    font-size: 1.55rem;
}

.property-map-heading p {
    margin: 0;
}

.map-coordinates {
    flex: 0 0 auto;
    color: var(--ink-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .78rem;
}

.map-frame {
    overflow: hidden;
    border: 1px solid var(--line);
    background: #eee;
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 430px;
    border: 0;
}

.map-link-row {
    margin: 12px 0 0;
    font-size: .85rem;
}

@media (max-width: 760px) {
    .property-map-heading {
        display: block;
    }

    .map-coordinates {
        margin-top: 12px !important;
    }

    .map-frame iframe {
        height: 340px;
    }
}


/* Featured property on homepage */

.home-property-grid {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 42px;
    align-items: center;
    margin-top: 26px;
}

.home-property-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 16px 36px rgba(36, 48, 42, .14);
}

.home-property-location {
    margin-top: 0;
    color: var(--ink-soft);
}

.home-property-price {
    margin: 12px 0 20px;
    color: var(--accent-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.home-property-facts {
    display: grid;
    gap: 9px;
    margin: 0 0 24px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-property-facts span {
    color: var(--ink-soft);
    font-size: .91rem;
}

.home-property-facts strong {
    color: var(--ink);
}

@media (max-width: 760px) {
    .home-property-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-property-image {
        max-height: none;
    }
}
