/* Thailand Guide Property Search & Listing Detail (/property/ & /property/listing/{slug}/)
   Reuses design tokens from style.css and .lead-bento / .lf-deck controls from live-flights.css. */

/* ── Hero Enhancements ──────────────────────────────────────────────────────── */
.prop-hero-subtitle {
    display: inline-block;
    margin: 0.65rem auto 0;
    padding: 0.4rem 1.15rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.prop-hero-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.45rem;
}

.prop-hero-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-family: var(--font-label);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(253, 157, 26, 0.92);
    color: #1d1b19;
}

.prop-hero-status--sold {
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
}

.prop-hero-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.45rem auto 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-section--condensed.hero-section--prop .hero-visual-clip {
    height: auto;
    min-height: 340px;
    padding: 6.75rem 1.5rem 3.75rem;
}

.hero-section--condensed.hero-section--prop .hero-content {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 60rem;
    padding: 0;
}

.hero-section--condensed.hero-section--prop-detail .hero-title {
    font-size: clamp(1.85rem, 3.1vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: 0.03em;
    text-wrap: balance;
}

.hero-section--condensed.hero-section--prop-search .hero-title {
    font-size: clamp(2.1rem, 3.8vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: 0.035em;
    text-wrap: balance;
}

@media (max-width: 768px) {
    .hero-section--condensed.hero-section--prop .hero-visual-clip {
        height: auto;
        min-height: 240px;
        padding: 6.25rem 1rem 3.5rem;
    }

    .hero-section--condensed.hero-section--prop .hero-content {
        position: static;
        top: auto;
        transform: none;
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .hero-section--condensed.hero-section--prop-detail .hero-title {
        font-size: clamp(1.25rem, 5.2vw, 1.7rem);
        line-height: 1.18;
        letter-spacing: 0.015em;
    }

    .hero-section--condensed.hero-section--prop-search .hero-title {
        font-size: clamp(1.45rem, 6vw, 2rem);
        line-height: 1.15;
        letter-spacing: 0.015em;
    }

    .prop-hero-badges {
        margin-bottom: 0.5rem;
    }

    .prop-hero-location {
        margin-top: 0.5rem;
        font-size: 0.9rem;
    }

    .prop-hero-subtitle {
        font-size: 0.84rem;
        padding: 0.35rem 0.95rem;
    }
}

/* ── Search Lead Bento Deck ─────────────────────────────────────────────────── */
.prop-deck {
    gap: 1rem;
}

.prop-deck__mobile-toggle {
    display: none;
}

@media (max-width: 768px) {
    .prop-deck--mobile-collapsible {
        padding: 0.65rem 1rem;
        gap: 0.75rem;
    }

    .prop-deck--mobile-collapsible.is-expanded {
        padding: 0.85rem 1rem 1.05rem;
    }

    .prop-deck--mobile-collapsible .prop-deck__mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 36px;
        padding: 0.1rem 0.15rem;
        background: transparent;
        border: none;
        color: #ffffff;
        font-family: var(--font-heading);
        font-size: 0.92rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        cursor: pointer;
    }

    .prop-deck__mobile-toggle-label {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .prop-deck__mobile-toggle-label .prop-ico {
        color: var(--tertiary, #fd9d1a);
    }

    .prop-deck__mobile-toggle-chev {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 9999px;
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.9);
        transition: transform 0.2s ease, background 0.15s ease;
    }

    .prop-deck--mobile-collapsible.is-expanded .prop-deck__mobile-toggle-chev {
        transform: rotate(180deg);
        background: rgba(253, 157, 26, 0.22);
        color: var(--tertiary, #fd9d1a);
    }

    .prop-deck--mobile-collapsible:not(.is-expanded) .prop-deck__head,
    .prop-deck--mobile-collapsible:not(.is-expanded) .prop-controls {
        display: none;
    }
}

.prop-deck__head {
    display: flex;
    justify-content: center;
    align-items: center;
}

.prop-controls {
    width: 100%;
    display: block;
}

.prop-controls__row {
    display: grid;
    grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 0.9rem 1rem;
    align-items: end;
}

.prop-field {
    min-width: 0;
}

.prop-select {
    cursor: pointer;
    padding-right: 2rem;
}

.prop-search-btn.lf-go.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
    padding: 0.55rem 1.35rem;
    border-radius: 9999px;
}

@media (max-width: 1060px) {
    .prop-controls__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .prop-field--submit {
        grid-column: 1 / -1;
    }
    .prop-search-btn.lf-go.btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .prop-controls__row {
        grid-template-columns: 1fr;
    }
}

/* ── Lower Tier & Results Toolbar ───────────────────────────────────────────── */
.prop-results-root.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.prop-results-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem 1.25rem;
    margin: 0.25rem 0 1.25rem;
}

.prop-results-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.prop-results-count {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.prop-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.prop-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 109, 119, 0.25);
    background: rgba(0, 109, 119, 0.08);
    color: var(--primary, #006d77);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.prop-chip:hover {
    background: rgba(0, 109, 119, 0.15);
    border-color: rgba(0, 109, 119, 0.45);
}

.prop-chip__x {
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
}

.prop-clear-all {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--secondary, #8838c8);
    text-decoration: underline;
    padding: 0.2rem 0.35rem;
}

.prop-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

.prop-sort-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.prop-sort-select {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 9999px;
    padding: 0.45rem 0.95rem;
    min-height: 40px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}

/* ── Property Cards Grid ────────────────────────────────────────────────────── */
.prop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

@media (max-width: 1024px) {
    .prop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .prop-grid {
        grid-template-columns: 1fr;
    }
    .prop-sort-wrap {
        margin-left: 0;
        width: 100%;
    }
    .prop-sort-select {
        flex: 1;
    }
}

.prop-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.prop-card:hover {
    transform: translateY(-3px);
    border-color: rgba(136, 56, 200, 0.35);
    box-shadow: 0 20px 36px -14px rgba(15, 23, 42, 0.18);
}

.prop-card:focus-visible {
    outline: 3px solid var(--tertiary, #fd9d1a);
    outline-offset: 2px;
}

.prop-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
    overflow: hidden;
}

.prop-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 24, 32, 0.86) 0%, rgba(10, 24, 32, 0.32) 38%, transparent 65%);
    pointer-events: none;
}

.prop-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.prop-card:hover .prop-card__media img {
    transform: scale(1.04);
}

.prop-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #006d77 0%, #123c69 100%);
}

.prop-card__badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    padding: 0.24rem 0.68rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    color: #fff;
    font-family: var(--font-label);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.prop-card__badge--status {
    left: auto;
    right: 0.7rem;
    background: rgba(253, 157, 26, 0.96);
    color: #18181b;
}

.prop-card__media-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
}

.prop-card__pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.06rem;
    min-width: 0;
}

.prop-card__price-thb {
    font-family: var(--font-heading);
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.prop-card__price-gbp {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.prop-card__photos {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.24rem 0.58rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
}

.prop-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 0.95rem 1.05rem;
    gap: 0.5rem;
    background: #ffffff;
}

.prop-card__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.32;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.18s ease;
}

.prop-card:hover .prop-card__title {
    color: var(--primary, #006d77);
}

.prop-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 0.55rem;
}

.prop-card__loc {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.prop-ico--pin {
    color: var(--secondary, #8838c8);
    flex-shrink: 0;
}

.prop-card__tenure {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.55rem;
    border-radius: 9999px;
    background: rgba(0, 109, 119, 0.1);
    color: var(--primary, #006d77);
    font-family: var(--font-label);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.prop-card__specs {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: linear-gradient(135deg, #006d77 0%, #09525a 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
    font-size: 0.77rem;
    font-weight: 700;
    color: #ffffff;
}

.prop-card__specs li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.24rem;
    padding: 0.62rem 0.35rem;
    white-space: nowrap;
}

.prop-card__specs li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.prop-card__specs .prop-ico {
    width: 16px;
    height: 16px;
    color: #99f6e4;
    flex-shrink: 0;
}

/* ── Empty State, Pagination, Rate Note, Guides Spacing ─────────────────────── */
.prop-empty {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 2.25rem 1.5rem;
    text-align: center;
}

.prop-empty__title {
    margin: 0 0 0.45rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.prop-empty__desc {
    margin: 0 auto 1.15rem;
    max-width: 44ch;
    color: #475569;
    font-size: 0.94rem;
}

.prop-reset-btn.btn {
    background: var(--tertiary, #fd9d1a);
    color: #1d1b19;
    border-radius: 9999px;
    padding: 0.6rem 1.35rem;
    font-weight: 800;
}

.prop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.prop-page-status {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.prop-rate-note {
    margin: 1.25rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
    text-align: right;
}

.prop-guides-section {
    margin-top: 3rem;
}

.prop-guides-bridge {
    margin-top: 2rem;
}

.prop-guides-bridge__card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.12);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.prop-guides-bridge__card:hover {
    border-color: rgba(136, 56, 200, 0.35);
    transform: translateY(-2px);
}

.prop-guides-bridge__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.prop-guides-bridge__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #0f172a;
}

.prop-guides-bridge__desc {
    font-size: 0.86rem;
    color: #475569;
}

/* ── Listing Detail Shell & Photo Bento Gallery ─────────────────────────────── */
/* Uses .bento-lower-tier native padding & --ac-pad-* tokens from style.css so .article-h2-wrap stays flush edge-to-edge. */

.prop-gallery {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.6rem;
}

.prop-gallery--three {
    grid-template-columns: 1.65fr 1fr;
    grid-template-rows: 205px 205px;
}

.prop-gallery--three .prop-gallery__tile--0 {
    grid-row: 1 / 3;
}

.prop-gallery--two {
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: 380px;
}

.prop-gallery--one {
    grid-template-columns: 1fr;
    grid-template-rows: 420px;
}

.prop-gallery__tile {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #e2e8f0;
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
}

.prop-gallery__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.prop-gallery__tile:hover img {
    transform: scale(1.03);
}

.prop-gallery__tile:focus-visible {
    outline: 3px solid var(--tertiary, #fd9d1a);
    outline-offset: 2px;
}

.prop-gallery__count {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 820px) {
    .prop-gallery--three {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 240px 135px;
    }
    .prop-gallery--three .prop-gallery__tile--0 {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .prop-gallery--two {
        grid-template-columns: 1fr;
        grid-template-rows: 240px 160px;
    }
    .prop-gallery--one {
        grid-template-rows: 250px;
    }
}

/* ── Detail 2-Column Layout inside Property Details Tab Card ────────────────── */
.prop-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    gap: 0;
    align-items: stretch;
}

.prop-detail-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

@media (min-width: 961px) {
    .prop-detail-main {
        border-right: 1px solid rgba(15, 23, 42, 0.07);
    }
}

@media (max-width: 960px) {
    .prop-detail-layout {
        grid-template-columns: 1fr;
    }
}

.prop-tab-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.45rem 0.75rem;
    margin-bottom: 0;
}

.prop-tab-head .loc-index-province-heading {
    margin: 0;
    border-radius: 4px 4px 0 0;
    box-shadow: none;
}

.prop-details-section .prop-tab-head {
    align-items: stretch;
}

.prop-details-section .prop-tab-head .loc-index-province-heading {
    background-color: #18181b;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.prop-details-section .prop-tab-head .prop-tab-head__ref {
    background-color: #b91c1c;
    color: #ffffff;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .prop-details-section .prop-tab-head {
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.4rem;
    }
    .prop-details-section .prop-tab-head .loc-index-province-heading {
        padding: 0.42rem 0.65rem;
        font-size: 0.85rem;
    }
}

.prop-details-card {
    padding: 0;
    overflow: clip;
    border-radius: 0 0 8px 8px;
    border-color: rgba(24, 24, 27, 0.3);
    box-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.12);
}

@media (max-width: 768px) {
    .prop-details-card {
        padding: 0;
    }
}

.prop-specs-strip {
    margin: 0;
    padding: 1.15rem 1.35rem;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 0.75rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.prop-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.42rem;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    background: #faf6f1;
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
}

.prop-spec-item .prop-ico {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 10px;
    background: rgba(0, 109, 119, 0.1);
    color: var(--primary, #006d77);
    box-sizing: border-box;
    flex-shrink: 0;
}

.prop-spec-item__val {
    line-height: 1.25;
}

.prop-spec-item small {
    font-weight: 500;
    color: #475569;
    font-size: 0.82rem;
}

.prop-facts-grid {
    margin: 0;
    padding: 1.15rem 1.35rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    background: #f8f3ee;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.prop-fact {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px -4px rgba(15, 23, 42, 0.08);
}

.prop-fact:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

@media (max-width: 540px) {
    .prop-specs-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.95rem 1rem;
    }
    .prop-facts-grid {
        padding: 0.95rem 1rem;
    }
}

@media (max-width: 480px) {
    .prop-facts-grid {
        grid-template-columns: 1fr;
    }
}

.prop-fact dt {
    font-family: var(--font-label);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--primary, #006d77);
    margin-bottom: 0.25rem;
}

.prop-fact dd {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
}

.prop-fact__note {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: #475569;
    margin-top: 0.15rem;
}

.prop-about {
    padding: 1.35rem;
}

.prop-about__h4 {
    display: table;
    margin: 0 0 0.85rem;
    padding: 0.25rem 0.75rem;
    background-color: #1d5b96;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 4px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .prop-about__h4 {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

.prop-about__subtitle {
    margin: 0 0 0.9rem;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}

.prop-desc-p {
    margin: 0 0 0.95rem;
    font-size: 0.97rem;
    line-height: 1.68;
    color: #1e293b;
}

.prop-desc-p:last-child {
    margin-bottom: 0;
}

.prop-desc-h4 {
    display: table;
    margin: 1.35rem 0 0.8rem;
    padding: 0.25rem 0.75rem;
    background-color: #c2590a;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 4px;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .prop-desc-h4 {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

.prop-highlights {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #1e293b;
}

/* ── Approximate Area Map Facade ────────────────────────────────────────────── */
.prop-weather-wrap {
    margin-top: 1.5rem;
}

.prop-weather-wrap .tg-weather {
    margin: 0;
}

.prop-map-section {
    margin-top: 1.75rem;
}

.prop-map-section .prop-tab-head .loc-index-province-heading {
    background-color: #123c69;
    color: #ffffff;
}

.prop-map-card {
    padding: 1.15rem 1.35rem;
    border-color: rgba(18, 60, 105, 0.35);
}

@media (max-width: 768px) {
    .prop-map-card {
        padding: 0.85rem 1rem;
    }
}

.prop-map-card__info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
}

.prop-map-card__loc {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
}

.prop-map-card__note {
    font-size: 0.8rem;
    color: #64748b;
}

.prop-map-canvas {
    margin-top: 0.9rem;
    width: 100%;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(18, 60, 105, 0.16);
    background: #e8f1f8;
    position: relative;
}

@media (max-width: 600px) {
    .prop-map-canvas {
        height: 280px;
    }
}

/* ── Right Sticky Sidebar (Price + Enquiry + Guide inside unified card) ─────── */
.prop-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.25rem;
    min-width: 0;
    background: transparent;
}

@media (min-width: 961px) {
    .prop-detail-sidebar {
        align-self: start;
        position: sticky;
        top: 5.5rem;
    }
}

@media (max-width: 960px) {
    .prop-detail-sidebar {
        display: contents;
    }
    .prop-price-card {
        order: 1;
        margin: 1rem 1rem 0;
    }
    .prop-detail-main {
        order: 2;
    }
    .prop-enquiry-card {
        order: 3;
        margin: 0.25rem 1rem 1rem;
    }
    .prop-guide-card {
        order: 4;
        margin: 0 1rem 1.15rem;
    }
}

.prop-price-card {
    background: #18181b;
    color: #fff;
    border-radius: 16px;
    padding: 1.35rem;
    box-shadow: 0 18px 36px -14px rgba(15, 23, 42, 0.35);
}

.prop-price-card__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.prop-price-card__thb {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.prop-price-card__ref {
    font-family: var(--font-label);
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.prop-price-card__gbp {
    margin: 0.3rem 0 1.1rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.prop-price-cc-wrap {
    display: block;
    width: 100%;
    margin-bottom: 1.05rem;
}

.prop-price-cc-wrap .prop-price-card__top {
    align-items: flex-start;
}

.prop-price-cc-wrap .prop-price-card__ref {
    margin-top: 0.45rem;
}

.prop-price-cc-btn.tg-cc-trigger {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 10px;
    box-shadow: none !important;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    transform: none;
    filter: none;
}

.prop-price-cc-btn.tg-cc-trigger:hover,
.prop-price-cc-btn.tg-cc-trigger[aria-expanded="true"] {
    transform: none;
    filter: none;
    box-shadow: none !important;
}

.prop-price-cc-btn:focus-visible {
    outline: 2px solid var(--tertiary, #fd9d1a);
    outline-offset: 4px;
}

.prop-price-cc-btn:hover .prop-price-card__thb,
.prop-price-cc-btn[aria-expanded="true"] .prop-price-card__thb {
    color: var(--tertiary, #fd9d1a);
}

.prop-price-cc-sub {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.prop-price-cc-btn .prop-price-card__gbp {
    margin: 0;
}

.prop-price-cc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.62rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2e9e5b 0%, #1f7a44 100%);
    color: #ffffff;
    font-family: var(--font-label);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.25;
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.45);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.prop-price-cc-btn:hover .prop-price-cc-pill,
.prop-price-cc-btn[aria-expanded="true"] .prop-price-cc-pill {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.prop-price-cc-flyout.tg-cc-flyout {
    left: auto;
    right: 0;
    top: calc(100% + 0.65rem);
    width: min(360px, calc(100vw - 2rem));
    color: var(--on-surface, #1d1b19);
    text-align: left;
}

.prop-price-cc-flyout.tg-cc-flyout::before {
    left: 44px;
    right: auto;
}

@media (max-width: 520px) {
    .prop-price-card__top {
        flex-wrap: wrap;
        gap: 0.4rem 0.75rem;
    }
    .prop-price-card__thb {
        font-size: 1.55rem;
    }
    .prop-price-cc-flyout.tg-cc-flyout {
        left: -1.35rem;
        right: -1.35rem;
        width: auto;
        max-width: none;
    }
    .prop-price-cc-flyout.tg-cc-flyout::before {
        left: 48px;
    }
    .prop-price-cc-flyout .tg-cc-flyout__inner {
        padding: 1.15rem;
        gap: 1rem;
    }
}

.prop-price-cta.btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: var(--tertiary, #fd9d1a);
    border: 1px solid var(--tertiary, #fd9d1a);
    color: #1d1b19;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
}

.prop-price-cta.btn:hover {
    background: #fff;
    border-color: #fff;
    color: #1d1b19;
}

.prop-sold-pill {
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fecaca;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}

/* Enquiry Card */
.prop-enquiry-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 12px 28px -14px rgba(15, 23, 42, 0.12);
}

.prop-enquiry-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.prop-enquiry-card__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.prop-ref-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: rgba(0, 109, 119, 0.1);
    color: var(--primary, #006d77);
    font-family: var(--font-label);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.prop-enquiry-card__sub {
    margin: 0 0 1rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #475569;
}

.prop-enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.prop-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.prop-form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
}

.prop-optional {
    font-weight: 400;
    color: #64748b;
}

.prop-form-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    border: 1.5px solid rgba(15, 23, 42, 0.16);
    background: #fcfaf7;
    color: #0f172a;
    font-family: var(--font-body);
    font-size: 0.92rem;
}

.prop-form-input:focus-visible {
    outline: 2px solid var(--primary, #006d77);
    border-color: var(--primary, #006d77);
    background: #fff;
}

.prop-form-textarea {
    min-height: 102px;
    resize: vertical;
}

.prop-enquiry-submit.btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    border-radius: 9999px;
    background: var(--primary, #006d77);
    border: 1px solid var(--primary, #006d77);
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
}

.prop-enquiry-submit.btn:hover:not(:disabled) {
    background: #00545c;
    border-color: #00545c;
}

.prop-enquiry-submit.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.prop-enquiry-alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
}

.prop-enquiry-alert--success {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #14532d;
}

.prop-enquiry-alert--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

/* Contextual Buying Guide Card */
.prop-guide-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 16px;
    padding: 1.05rem 1.15rem;
    box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.12);
}

.prop-guide-card__primary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.prop-guide-card__ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(136, 56, 200, 0.1);
    color: var(--secondary, #8838c8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prop-guide-card__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.prop-guide-card__title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
}

.prop-guide-card__desc {
    font-size: 0.83rem;
    line-height: 1.45;
    color: #475569;
}

.prop-guide-card__chev {
    color: var(--secondary, #8838c8);
    padding-top: 0.15rem;
}

.prop-guide-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.prop-guide-pill {
    padding: 0.28rem 0.65rem;
    border-radius: 9999px;
    background: #f8f3ee;
    color: #1e293b;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.prop-guide-pill:hover {
    background: rgba(136, 56, 200, 0.12);
    color: var(--secondary, #8838c8);
}

/* ── Similar Properties & Footer Nav ────────────────────────────────────────── */
.prop-similar-section {
    margin-top: 2.5rem;
}

.prop-similar-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.45rem 0.75rem;
    margin-bottom: 0;
}

.prop-similar-head .loc-index-province-heading {
    margin: 0;
    border-radius: 4px 4px 0 0;
    box-shadow: none;
}

.prop-back-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary, #006d77);
    text-decoration: none;
    padding-bottom: 0.35rem;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .prop-similar-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    .prop-similar-head .prop-back-link {
        order: -1;
        align-self: flex-end;
        padding-bottom: 0;
    }
}

.prop-similar-card {
    padding: 1.25rem;
}

@media (max-width: 768px) {
    .prop-similar-card {
        padding: 0.75rem;
    }
}

.prop-back-link:hover {
    text-decoration: underline;
}

.prop-detail-footer-nav {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
}

/* ── Photo Gallery Lightbox Modal ───────────────────────────────────────────── */
html.prop-lightbox-open,
html.prop-lightbox-open body {
    overflow: hidden;
}

.prop-lightbox {
    padding: 0;
    border: 0;
    background: transparent;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: contain;
}

.prop-lightbox::backdrop {
    background: rgba(10, 12, 16, 0.94);
    backdrop-filter: blur(8px);
}

.prop-lightbox__shell {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: max(0.75rem, env(safe-area-inset-top)) 1rem max(0.75rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
    gap: 0.65rem;
    overflow: hidden;
}

.prop-lightbox__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.prop-lightbox__meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.prop-lightbox__counter {
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.prop-lightbox__title {
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prop-lightbox__close {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
}

.prop-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.prop-lightbox__img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    pointer-events: none;
}

.prop-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.prop-lightbox__nav--prev {
    left: 0.5rem;
}

.prop-lightbox__nav--next {
    right: 0.5rem;
}

.prop-lightbox__thumbs {
    display: flex;
    gap: 0.45rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0;
    justify-content: flex-start;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.prop-lightbox__thumb {
    width: 68px;
    height: 48px;
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #1e293b;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.prop-lightbox__thumb.is-active {
    border-color: var(--tertiary, #fd9d1a);
    opacity: 1;
}

.prop-lightbox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile landscape: full-bleed image, hide thumbnails, floating counter + close */
@media (orientation: landscape) and (max-height: 540px) {
    .prop-lightbox__shell {
        position: relative;
        grid-template-rows: minmax(0, 1fr);
        padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
        gap: 0;
    }

    .prop-lightbox__top {
        position: absolute;
        top: max(0.5rem, env(safe-area-inset-top));
        left: max(0.75rem, env(safe-area-inset-left));
        right: max(0.75rem, env(safe-area-inset-right));
        z-index: 6;
        pointer-events: none;
    }

    .prop-lightbox__title {
        display: none;
    }

    .prop-lightbox__counter {
        background: rgba(10, 12, 16, 0.65);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        pointer-events: auto;
    }

    .prop-lightbox__close {
        width: 40px;
        height: 40px;
        background: rgba(10, 12, 16, 0.68);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        pointer-events: auto;
    }

    .prop-lightbox__stage {
        height: 100%;
        touch-action: none;
    }

    .prop-lightbox__img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        object-fit: contain;
    }

    .prop-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 1.65rem;
        background: rgba(10, 12, 16, 0.58);
    }

    .prop-lightbox__nav--prev {
        left: max(0.5rem, env(safe-area-inset-left));
    }

    .prop-lightbox__nav--next {
        right: max(0.5rem, env(safe-area-inset-right));
    }

    .prop-lightbox__thumbs {
        display: none;
    }
}
