:root {
    --bg: #efe9df;
    --paper: #fffdf9;
    --ink: #221d16;
    --muted: #695e51;
    --accent: #b8832f;
    --accent-strong: #8e6021;
    --accent-2: #1f4f4b;
    --line: #ddcfbc;
    --danger: #8d2a2a;
    --success: #1b7149;
    --nav: #19150f;
}

* {
    box-sizing: border-box;
}

[x-cloak] {
    display: none !important;
}

body {
    margin: 0;
    font-family: 'Cormorant Garamond', 'Noto Sans Thai', serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 211, 129, 0.28), rgba(255, 211, 129, 0) 34%),
        radial-gradient(circle at 100% 10%, rgba(31, 79, 75, 0.18), rgba(31, 79, 75, 0) 38%),
        linear-gradient(170deg, #f4eee4 0%, #efe7da 54%, #ede4d6 100%);
    min-height: 100vh;
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1140px, 92vw);
    margin: 0 auto;
}

.topbar {
    border-bottom: 1px solid rgba(221, 207, 188, 0.45);
    background: linear-gradient(120deg, rgba(25, 21, 15, 0.95), rgba(38, 30, 19, 0.9));
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 160;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #f8ebd5;
}

.nav-links,
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-links a,
.nav-auth a,
.nav-auth button {
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    color: #f1e2ca;
    white-space: nowrap;
}

.lang-switch {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(248, 235, 213, 0.45);
    border-radius: 999px;
}

.btn-primary,
.btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    padding: 0.68rem 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
}

.btn-primary,
.btn-mini {
    background: linear-gradient(145deg, var(--accent), #d8a04a);
    color: #fff;
    box-shadow: 0 8px 20px rgba(163, 110, 30, 0.25);
}

.btn-mini.outline {
    background: transparent;
    color: #f3e6d0;
    border: 1px solid rgba(248, 235, 213, 0.5);
}

.btn-primary:hover,
.btn-mini:hover {
    transform: translateY(-2px);
    opacity: 1;
    box-shadow: 0 14px 24px rgba(163, 110, 30, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 0.68rem 1rem;
    color: #fff6e8;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
}

.page-content {
    padding: 2.2rem 0 3rem;
}

.home2-hero {
    position: relative;
    margin-bottom: 2.2rem;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(209, 180, 132, 0.45);
    box-shadow: 0 26px 36px rgba(38, 26, 12, 0.18);
    background: linear-gradient(140deg, #1f1913 0%, #2d2419 40%, #123733 100%);
}

.home2-hero::after {
    content: '';
    position: absolute;
    inset: -35% -20%;
    background:
        radial-gradient(circle at 20% 40%, rgba(225, 166, 72, 0.26), transparent 34%),
        radial-gradient(circle at 80% 10%, rgba(80, 166, 154, 0.24), transparent 36%);
    animation: bannerPulse 8s ease-in-out infinite;
    pointer-events: none;
}

.home2-hero-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.65;
    pointer-events: none;
}

.home2-hero-layer-left {
    width: 270px;
    height: 270px;
    left: -90px;
    top: 30px;
    background: radial-gradient(circle, rgba(231, 185, 102, 0.56), rgba(231, 185, 102, 0));
    animation: drift 7s ease-in-out infinite;
}

.home2-hero-layer-right {
    width: 320px;
    height: 320px;
    right: -120px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(87, 171, 155, 0.46), rgba(87, 171, 155, 0));
    animation: drift 8.2s ease-in-out infinite reverse;
}

.home2-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.2rem;
    padding: 1.7rem;
}

.home2-hero-copy {
    color: #f5e8d2;
}

.home2-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    border: 1px solid rgba(245, 224, 190, 0.56);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
}

.home2-hero-copy h1 {
    margin: 0.9rem 0 0.7rem;
    line-height: 0.95;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff2de;
}

.home2-lead {
    margin: 0;
    max-width: 560px;
    color: #e7d4b5;
    font-size: 1.08rem;
    line-height: 1.45;
}

.home2-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.home2-metrics {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 0.55rem;
}

.home2-metric-card {
    border-radius: 14px;
    border: 1px solid rgba(242, 225, 196, 0.34);
    background: rgba(255, 255, 255, 0.07);
    padding: 0.6rem 0.7rem;
}

.home2-metric-value {
    margin: 0;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    font-size: 1.36rem;
    color: #f4cf97;
    font-weight: 700;
}

.home2-metric-label {
    margin: 0.1rem 0 0;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    font-size: 0.78rem;
    color: #ecdebf;
}

.home2-dots {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.home2-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: rgba(250, 234, 205, 0.4);
}

.home2-dot.is-active {
    background: #f2c47d;
}

.home2-search-shell {
    border-radius: 18px;
    border: 1px solid rgba(243, 223, 189, 0.36);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.home2-tab-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.home2-tab-btn {
    border: 1px solid rgba(248, 230, 200, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #f6e6cb;
    border-radius: 12px;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    padding: 0.52rem 0.7rem;
    cursor: pointer;
}

.home2-tab-btn.is-active {
    background: linear-gradient(135deg, rgba(184, 131, 47, 0.9), rgba(216, 160, 74, 0.9));
    border-color: transparent;
    color: #fff;
}

.home2-search-form label {
    color: #f7e8cc;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
}

.home2-search-form input,
.home2-search-form select {
    background: rgba(255, 255, 255, 0.92);
}

.home2-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.home2-search-btn {
    margin-top: 0.2rem;
}

.home2-mini-cta {
    margin-top: 0.8rem;
    border-top: 1px solid rgba(248, 230, 200, 0.2);
    padding-top: 0.65rem;
}

.home2-mini-cta p {
    margin: 0;
    color: #ebdcc0;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    font-size: 0.8rem;
}

.home2-section-eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-2);
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    font-size: 0.72rem;
}

.home2-inline-link {
    color: var(--accent-2);
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    font-weight: 600;
}

.home2-property-grid {
    margin-top: 1rem;
}

.home2-property-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    min-height: 290px;
}

.home2-property-card .property-thumb {
    margin: 0;
    height: 100%;
    min-height: 290px;
    border: 0;
}

.home2-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.82rem;
    background: linear-gradient(180deg, rgba(20, 17, 13, 0) 0%, rgba(19, 16, 12, 0.92) 75%);
    color: #f6ead4;
}

.home2-card-overlay h3 {
    margin: 0.2rem 0;
    font-size: 1.28rem;
}

.home2-card-overlay p {
    margin: 0;
}

.home2-card-foot {
    margin-top: 0.46rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.home2-card-foot .price {
    color: #ffda9d;
    margin: 0;
}

.home2-card-foot .card-link {
    color: #e2f4ef;
}

.home2-collection-wrap {
    margin-top: 2rem;
}

.home2-collection-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.95rem;
}

.home2-collection-card {
    min-height: 210px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(214, 193, 159, 0.65);
    box-shadow: 0 14px 24px rgba(42, 27, 10, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.95rem;
    color: #fff5e2;
    background-image:
        linear-gradient(180deg, rgba(26, 20, 13, 0.08), rgba(19, 14, 9, 0.78)),
        var(--bg);
    background-size: cover;
    background-position: center;
}

.home2-collection-card p {
    margin: 0;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f1d49f;
}

.home2-collection-card h3 {
    margin: 0.32rem 0;
    font-size: 1.45rem;
}

.home2-collection-card a {
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    font-weight: 600;
    color: #d8f5ee;
}

.home2-split-section {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.home2-process-panel,
.home2-testimonial-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    background: linear-gradient(160deg, #fffaf3, #fffdf9);
    box-shadow: 0 12px 20px rgba(44, 29, 10, 0.08);
}

.home2-process-panel h2,
.home2-testimonial-panel h2 {
    margin: 0.3rem 0 0.5rem;
}

.home2-steps {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.62rem;
}

.home2-steps li {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
}

.home2-steps li span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #f3d7a8, #f7ebd1);
    color: #704a16;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    font-weight: 700;
}

.home2-testimonial-panel blockquote {
    margin: 0.4rem 0 0;
    font-size: 1.34rem;
    line-height: 1.35;
    color: #2a2318;
}

.home2-reviewer {
    margin: 0.85rem 0 0;
    display: grid;
    gap: 0.08rem;
}

.home2-reviewer strong {
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
}

.home2-reviewer span {
    color: var(--muted);
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    font-size: 0.86rem;
}

.home2-review-controls {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.45rem;
}

.home2-review-controls button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 0.46rem 0.72rem;
    cursor: pointer;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
}

.home2-cta-banner {
    margin-top: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(205, 173, 121, 0.45);
    background:
        radial-gradient(circle at 85% 30%, rgba(252, 221, 163, 0.2), transparent 36%),
        linear-gradient(130deg, #2d2217 0%, #4b3620 45%, #16433f 100%);
    color: #f5e8d0;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.home2-cta-banner h2 {
    margin: 0.35rem 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.home2-cta-banner p {
    margin: 0;
    color: #e8d9ba;
}

.luxury-banner {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(209, 180, 132, 0.45);
    box-shadow: 0 18px 30px rgba(43, 31, 16, 0.16);
    background:
        radial-gradient(circle at 15% 20%, rgba(236, 185, 93, 0.35), rgba(236, 185, 93, 0) 40%),
        radial-gradient(circle at 85% 10%, rgba(71, 146, 137, 0.28), rgba(71, 146, 137, 0) 36%),
        linear-gradient(132deg, #2b1f12, #3e2d1b 48%, #1d2f2d 100%);
}

.luxury-banner::after {
    content: '';
    position: absolute;
    inset: -20% -10%;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.08) 40%, transparent 60%);
    transform: translateX(-80%);
    animation: bannerSheen 7s linear infinite;
    pointer-events: none;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.2rem;
    padding: 1.4rem;
}

.banner-content {
    position: relative;
    z-index: 1;
    color: #f9efdf;
}

.floating-badge {
    display: inline-flex;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 225, 188, 0.55);
    background: rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    animation: floatY 3.6s ease-in-out infinite;
}

.banner-title {
    margin: 0.8rem 0 0.5rem;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 0.95;
}

.banner-subtitle {
    margin: 0;
    max-width: 560px;
    color: #e4d6be;
    font-size: 1.12rem;
}

.banner-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.banner-metrics {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.metric-card {
    border: 1px solid rgba(242, 228, 201, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.56rem 0.68rem;
}

.metric-value {
    margin: 0;
    font-size: 1.4rem;
    color: #f9dfad;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    font-weight: 700;
}

.metric-label {
    margin: 0;
    font-size: 0.8rem;
    color: #ead8b7;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
}

.banner-surface {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 225, 188, 0.32);
    border-radius: 18px;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.banner-slide-stack {
    min-height: 130px;
}

.banner-slide {
    color: #f7ecda;
}

.banner-slide-kicker {
    margin: 0;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f2cb8b;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
}

.banner-slide h3 {
    margin: 0.3rem 0;
    font-size: 1.45rem;
}

.banner-slide p {
    margin: 0;
    color: #eedfc4;
}

.banner-controls {
    display: flex;
    gap: 0.45rem;
    margin: 0.8rem 0 1rem;
}

.dot-btn {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: rgba(255, 233, 192, 0.35);
}

.dot-btn.is-active {
    background: #f2c57c;
}

.hero-search-panel {
    border-top: 1px solid rgba(245, 225, 188, 0.2);
    padding-top: 0.75rem;
}

.hero-search-panel label {
    color: #f6e7cb;
    font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif;
    font-size: 0.85rem;
}

.hero-search-panel input,
.hero-search-panel select {
    background: rgba(255, 255, 255, 0.9);
}

.featured-section {
    margin-top: 0.4rem;
}

.eyebrow {
    margin: 0;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.hero h1 {
    margin: 0.5rem 0 0.4rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.hero-card,
.property-card,
.sidebar-card,
.stat-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(37, 24, 8, 0.08);
}

.property-card {
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 28px rgba(49, 35, 17, 0.14);
    align-items: stretch;
}

.search-form,
.form-grid,
.filter-grid,
.listing-form {
    display: grid;
    gap: 0.6rem;
}

.searchable-select {
    display: grid;
    gap: 0.4rem;
    width: 100%;
}

.searchable-select-input {
    border: 1px dashed var(--line);
    background: #f9f2e7;
}

.searchable-select select {
    width: 100%;
}

.searchable-select .searchable-select-native {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.62rem 0.72rem;
    background: #fffdfa;
}

.section-title-row {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title-row h2 {
    margin: 0;
    font-size: 2rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.property-card .tag {
    margin: 0;
    color: var(--accent-2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.price {
    color: var(--accent-strong);
    font-size: 1.22rem;
    font-weight: 700;
}

.card-link {
    color: var(--accent-2);
    font-weight: 600;
}

.property-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.7rem;
    border: 1px solid var(--line);
}

.property-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 308px;
    gap: 1.05rem;
    align-items: start;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.4rem;
}

.property-gallery {
    margin-bottom: 1rem;
    padding: 12px;
    border: 1px solid rgba(236, 99, 38, 0.2);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0% 0%, rgba(236, 99, 38, 0.14), rgba(236, 99, 38, 0) 44%),
        linear-gradient(160deg, #fffdf9, #fff8ef);
    display: grid;
    gap: 0.6rem;
}

.property-gallery-stage {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(236, 99, 38, 0.16);
    background: #171717;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    touch-action: pan-y;
}

.property-gallery-track {
    display: flex;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.property-gallery-slide {
    min-width: 100%;
    margin: 0;
    aspect-ratio: 16 / 9;
    position: relative;
}

.property-gallery-slide::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 32%;
    background: linear-gradient(0deg, rgba(16, 17, 22, 0.45), rgba(16, 17, 22, 0));
    pointer-events: none;
}

.property-hero-image {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    object-fit: cover;
    border: 0;
    box-shadow: none;
    display: block;
    transform: scale(1.01);
}

.property-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(16, 17, 22, 0.44);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
    z-index: 2;
}

.property-gallery-nav span {
    font-size: 28px;
    line-height: 1;
    margin-top: -1px;
}

.property-gallery-nav:hover {
    transform: translateY(-50%) scale(1.04);
    background: rgba(16, 17, 22, 0.62);
    border-color: rgba(255, 255, 255, 0.62);
}

.property-gallery-nav.is-prev {
    left: 10px;
}

.property-gallery-nav.is-next {
    right: 10px;
}

.property-gallery-counter {
    position: absolute;
    right: 10px;
    bottom: 10px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.02em;
    background: rgba(16, 17, 22, 0.42);
    backdrop-filter: blur(6px);
    z-index: 2;
}

.property-gallery-grid {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    margin-top: 0.2rem;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.property-gallery-thumb-btn {
    flex: 0 0 100px;
    border: 1px solid rgba(236, 99, 38, 0.2);
    border-radius: 10px;
    padding: 2px;
    background: #fff;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.property-gallery-thumb-btn.is-active {
    border-color: rgba(236, 99, 38, 0.62);
    box-shadow: 0 10px 20px rgba(236, 99, 38, 0.22);
}

.property-gallery-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 0;
    display: block;
}

.property-gallery-thumb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14);
    border-color: rgba(236, 99, 38, 0.45);
}

.property-gallery-thumb-btn:focus-visible,
.property-gallery-nav:focus-visible,
.property-gallery:focus-visible {
    outline: 2px solid rgba(236, 99, 38, 0.78);
    outline-offset: 2px;
}

.property-map {
    margin-top: 1rem;
    min-height: 280px;
    border-radius: 14px;
    border: 1px solid var(--line);
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.alert {
    margin-bottom: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
}

.alert.danger {
    color: var(--danger);
    border-color: #ebc0c0;
    background: #fff1f1;
}

.alert.success {
    color: var(--success);
    border-color: #bce1cc;
    background: #ecfff4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.pagination {
    display: flex;
    gap: 0.4rem;
    margin-top: 1rem;
}

.pagination a {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
}

.pagination a.active {
    background: var(--accent-strong);
    color: #fff;
    border-color: transparent;
}

.center-screen {
    text-align: center;
    margin: 7vh auto;
}

@keyframes bannerSheen {
    0% {
        transform: translateX(-80%);
    }
    100% {
        transform: translateX(90%);
    }
}

@keyframes floatY {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(8px, -10px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes bannerPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.03);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

@media (max-width: 900px) {
    .hero,
    .banner-grid,
    .home2-hero-grid,
    .home2-split-section,
    .property-detail {
        grid-template-columns: 1fr;
    }

    .home2-collection-grid {
        grid-template-columns: 1fr;
    }

    .home2-hero {
        border-radius: 22px;
    }

    .home2-hero-copy h1 {
        font-size: clamp(2rem, 11vw, 3.1rem);
    }

    .home2-cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .home2-price-grid {
        grid-template-columns: 1fr;
    }

    .banner-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .banner-surface {
        padding: 0.9rem;
    }

    .nav-wrap {
        flex-wrap: wrap;
    }

    .nav-links {
        width: 100%;
        order: 3;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.4rem;
    }
}

/* Tostate-inspired design system overrides */
:root {
    --ts-charcoal: #32363f;
    --ts-orange: #e7c873;
    --ts-orange-active: #d6b45a;
    --ts-on-accent: #1a1b20;
    --ts-navy: #181a20;
    --ts-gold: #f1da95;
    --ts-blue: #405ff2;
    --ts-sky: #007aff;
    --ts-white: #ffffff;
    --ts-gray-100: #efefef;
    --ts-gray-200: #e8e8e9;
    --ts-gray-250: #eaeaeb;
    --ts-gray-500: #777777;
    --ts-gray-700: #404040;
    --ts-black-soft: #333333;
    --ts-black: #000000;
    --scroll-progress: 0;
    --bg-shift: 0px;
}

body {
    position: relative;
    font-family: 'Jost', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: var(--ts-charcoal);
    background: #f6f2ea;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 8% 6%, rgba(14, 74, 171, 0.1), rgba(14, 74, 171, 0) 42%),
        radial-gradient(circle at 88% 12%, rgba(20, 169, 111, 0.12), rgba(20, 169, 111, 0) 38%),
        linear-gradient(170deg, rgba(242, 248, 255, 0.95) 0%, rgba(233, 242, 255, 0.95) 52%, rgba(242, 249, 255, 0.96) 100%);
    background-size: cover, cover, cover;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position:
        center,
        center calc(36% - (var(--bg-shift) * 0.16)),
        center calc(74% - (var(--bg-shift) * 0.08));
    filter: saturate(1.02) contrast(1);
    transform: scale(1.03);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 85% 0%, rgba(231, 200, 115, 0.24), rgba(231, 200, 115, 0) 38%),
        linear-gradient(180deg, rgba(249, 246, 239, 0.9) 0%, rgba(249, 246, 239, 0.95) 35%, rgba(249, 246, 239, 0.98) 100%);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 260;
    pointer-events: none;
}

.scroll-progress::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(var(--scroll-progress));
    background: linear-gradient(90deg, #d8b15c, #f1da95 52%, #cda03d);
    box-shadow: 0 0 14px rgba(206, 162, 64, 0.45);
    transition: transform 70ms linear;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #cfa44a rgba(42, 34, 24, 0.15);
}

*::-webkit-scrollbar {
    width: 11px;
}

*::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(44, 35, 24, 0.08), rgba(44, 35, 24, 0.18));
}

*::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid rgba(249, 246, 239, 0.9);
    background: linear-gradient(180deg, #f1da95, #d0a64b);
    box-shadow: inset 0 0 0 1px rgba(113, 84, 29, 0.25);
    transition: background 220ms ease, box-shadow 220ms ease;
}

body.is-scrolling *::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f7e5b1, #c99532);
    box-shadow: 0 0 14px rgba(207, 164, 74, 0.35);
}

h1,
h2,
h3,
h4,
h5,
.brand,
.section-title-row h2 {
    font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ts-charcoal);
}

h1 {
    font-size: 92px;
    line-height: 102px;
    font-weight: 600;
}

h2 {
    font-size: 52px;
    line-height: 62px;
    font-weight: 600;
}

h3 {
    font-size: 32px;
    line-height: 42px;
    font-weight: 600;
}

.container {
    width: min(1200px, calc(100% - 80px));
}

.topbar {
    border-bottom: 1px solid var(--ts-gray-200);
    background: var(--ts-white);
    box-shadow: none;
}

.nav-wrap {
    min-height: 70px;
    padding: 10px 0;
}

.brand {
    color: var(--ts-orange);
    font-size: 24px;
    line-height: 34px;
    letter-spacing: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.nav-mobile-controls {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-links,
.nav-auth {
    gap: 10px;
}

.nav-links a,
.nav-auth a,
.nav-auth button {
    font-family: 'Jost', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ts-charcoal);
    font-size: 16px;
    line-height: 26px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-auth a:hover {
    background: #f5f5f5;
    color: var(--ts-orange);
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ts-gray-200);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #faf5ec);
    padding: 0;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.nav-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--ts-charcoal);
    border-radius: 999px;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, top 280ms ease;
}

.nav-toggle span:nth-child(1) {
    top: 14px;
}

.nav-toggle span:nth-child(2) {
    top: 21px;
}

.nav-toggle span:nth-child(3) {
    top: 28px;
}

.nav-toggle.is-active {
    border-color: #e4c98f;
    box-shadow: 0 10px 20px rgba(162, 120, 44, 0.18);
}

.nav-toggle.is-active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

.lang-switch {
    border: 1px solid var(--ts-gray-200);
    color: var(--ts-charcoal);
    background: var(--ts-white);
    padding: 6px 12px;
}

.lang-popup {
    position: relative;
}

.lang-popup-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--ts-gray-200);
    border-radius: 10px;
    background: var(--ts-white);
    color: var(--ts-charcoal);
    font-family: 'Jost', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 22px;
    cursor: pointer;
    transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.lang-popup-trigger:hover,
.lang-popup-trigger.is-open {
    border-color: #dfbf84;
    box-shadow: 0 8px 18px rgba(187, 149, 55, 0.16);
    background: linear-gradient(180deg, #fff, #fff8ec);
}

.lang-popup-label {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.lang-popup-caret {
    font-size: 11px;
    transition: transform 220ms ease;
}

.lang-popup-trigger.is-open .lang-popup-caret {
    transform: rotate(180deg);
}

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(44, 36, 26, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    flex: 0 0 auto;
}

.flag-th {
    background: linear-gradient(
        to bottom,
        #c7212f 0%,
        #c7212f 20%,
        #ffffff 20%,
        #ffffff 35%,
        #1f44b8 35%,
        #1f44b8 65%,
        #ffffff 65%,
        #ffffff 80%,
        #c7212f 80%,
        #c7212f 100%
    );
}

.flag-en {
    background:
        linear-gradient(90deg, #0a3161 0%, #0a3161 42%, rgba(10, 49, 97, 0) 42%),
        repeating-linear-gradient(
            to bottom,
            #b31942 0%,
            #b31942 13%,
            #ffffff 13%,
            #ffffff 26%
        );
}

.lang-popup-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 182px;
    padding: 8px;
    border: 1px solid #ead7af;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffefb, #fff8ec);
    box-shadow: 0 20px 32px rgba(28, 21, 12, 0.22);
    display: grid;
    gap: 4px;
    z-index: 220;
}

.lang-popup-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ts-charcoal);
    transition: background-color 180ms ease, color 180ms ease;
}

.lang-popup-item:hover {
    background: #f8f1e2;
    color: var(--ts-orange);
}

.lang-popup-item.is-active {
    background: linear-gradient(145deg, var(--ts-orange), #f3dd9f);
    color: var(--ts-on-accent);
}

.lang-popup-item.is-active .flag-icon {
    border-color: rgba(255, 255, 255, 0.52);
}

.user-popup {
    position: relative;
}

.user-popup-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 46px;
    padding: 0.48rem 0.7rem 0.48rem 0.48rem;
    border: 1px solid rgba(17, 66, 163, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
    color: #10315e;
    box-shadow: 0 10px 22px rgba(16, 49, 94, 0.08);
    cursor: pointer;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.user-popup-notice-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8157, #e3342f);
    color: #fff;
    box-shadow: 0 10px 18px rgba(227, 52, 47, 0.28);
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.user-popup-trigger:hover,
.user-popup-trigger.is-open {
    border-color: rgba(23, 163, 108, 0.32);
    box-shadow: 0 16px 28px rgba(16, 49, 94, 0.12);
    transform: translateY(-1px);
}

.user-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-block;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f3b91, #17a36c);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.user-avatar::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.user-avatar-head,
.user-avatar-body {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
}

.user-avatar-head {
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.user-avatar-body {
    bottom: 7px;
    width: 20px;
    height: 11px;
    border-radius: 12px 12px 7px 7px;
}

.user-avatar-dot {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #27c07d;
    box-shadow: 0 0 0 2px #fff;
}

.user-popup-text {
    display: grid;
    text-align: left;
}

.user-popup-text strong,
.user-popup-summary strong {
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #10315e;
}

.user-popup-text small,
.user-popup-summary span {
    color: #5d7395;
    font-size: 0.79rem;
}

.user-popup-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 260px;
    padding: 0.7rem;
    border: 1px solid rgba(17, 66, 163, 0.12);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f6faff);
    box-shadow: 0 24px 42px rgba(16, 49, 94, 0.16);
    display: grid;
    gap: 0.3rem;
    z-index: 230;
}

.user-popup-summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0.45rem 0.8rem;
    border-bottom: 1px solid rgba(17, 66, 163, 0.08);
    margin-bottom: 0.2rem;
}

.user-avatar-large {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
}

.user-avatar-large .user-avatar-head {
    top: 8px;
    width: 14px;
    height: 14px;
}

.user-avatar-large .user-avatar-body {
    bottom: 8px;
    width: 24px;
    height: 13px;
}

.user-avatar-large .user-avatar-dot {
    width: 11px;
    height: 11px;
}

.user-popup-item,
.user-popup-form {
    margin: 0;
}

.user-popup-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 46px;
    padding: 0.75rem 0.8rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #10315e;
    text-align: left;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.user-popup-item:hover,
.user-popup-item.is-active {
    background: rgba(15, 59, 145, 0.08);
    color: #0f3b91;
}

.user-popup-item.is-logout:hover {
    background: rgba(177, 54, 54, 0.08);
    color: #8d2a2a;
}

.user-popup-item-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(15, 59, 145, 0.08);
    color: #0f3b91;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.user-popup-item-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.nav-links {
    gap: 0.45rem;
}

.nav-links a {
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
    background: rgba(15, 59, 145, 0.06);
    color: #0f3b91;
    transform: translateY(-1px);
}

.nav-links a.is-active,
.nav-auth a.is-active,
.nav-auth .btn-mini.is-active {
    border-radius: 16px;
}

.nav-links a.is-active {
    position: relative;
}

.nav-links a.is-active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 8px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.nav-icon-link {
    width: 44px;
    min-width: 44px;
    justify-content: center;
    padding: 0.72rem;
}

.nav-icon-link svg {
    width: 20px;
    height: 20px;
    display: block;
}

.nav-icon-link.is-active::after {
    left: 10px;
    right: 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.user-popup-item.is-logout .user-popup-item-icon {
    background: rgba(177, 54, 54, 0.1);
    color: #8d2a2a;
}

.btn-primary,
.btn-mini,
.btn-secondary {
    border-radius: 100px;
    font-family: 'Jost', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 27px;
    font-weight: 500;
    min-height: 43px;
    padding: 13px 25px;
}

.btn-primary,
.btn-mini {
    background: linear-gradient(145deg, var(--ts-orange), #f2dc9f);
    color: var(--ts-on-accent);
    box-shadow: none;
}

.btn-primary:hover,
.btn-mini:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.btn-primary:active,
.btn-mini:active {
    background: var(--ts-orange-active);
}

.btn-mini.outline,
.btn-secondary {
    background: transparent;
    border: 1px solid var(--ts-gray-200);
    color: var(--ts-charcoal);
}

.page-content {
    padding: 40px 0 48px;
}

.searchable-select-input,
input,
select,
textarea {
    min-height: 44px;
    border: 1px solid var(--ts-gray-200);
    border-radius: 8px;
    padding: 12px 16px;
    background: var(--ts-white);
    color: var(--ts-charcoal);
    font-family: 'Jost', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 26px;
}

input:focus,
select:focus,
textarea:focus,
.searchable-select-input:focus {
    outline: none;
    border-color: var(--ts-orange);
    box-shadow: 0 0 0 3px rgba(231, 200, 115, 0.22);
}

label {
    font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    line-height: 26px;
    font-weight: 600;
    color: var(--ts-charcoal);
    margin-bottom: 8px;
}

.ts-hero {
    position: relative;
    min-height: 640px;
    border-radius: 20px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(24, 26, 32, 0.88) 0%, rgba(24, 26, 32, 0.62) 46%, rgba(24, 26, 32, 0.25) 100%),
        url('https://picsum.photos/seed/tostate-hero/1800/1100') center/cover no-repeat;
}

.ts-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 80%, rgba(231, 200, 115, 0.2), rgba(231, 200, 115, 0));
    animation: tsGlow 8s ease-in-out infinite;
    pointer-events: none;
}

.ts-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
    min-height: 640px;
    padding: 40px;
}

.ts-hero-copy {
    color: var(--ts-white);
}

.ts-kicker,
.ts-section-label {
    margin: 0;
    font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    line-height: 26px;
    letter-spacing: 0;
    color: var(--ts-gold);
    text-transform: uppercase;
}

.ts-hero-copy h1 {
    margin: 10px 0 14px;
    color: var(--ts-white);
}

.ts-hero-subtitle {
    margin: 0;
    max-width: 650px;
    font-size: 16px;
    line-height: 26px;
    color: #f2f2f2;
}

.ts-dot-row {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.ts-dot {
    width: 10px;
    height: 10px;
    border-radius: 100px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.ts-dot.is-active {
    background: var(--ts-orange);
}

.ts-search-panel {
    background: var(--ts-white);
    border-radius: 10px;
    border: 1px solid var(--ts-gray-200);
    box-shadow: rgba(0, 0, 0, 0.176) 0 6px 12px 0;
    padding: 24px;
}

.ts-search-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.ts-search-tab {
    min-height: 44px;
    border-radius: 100px;
    border: 1px solid var(--ts-gray-200);
    background: var(--ts-white);
    color: var(--ts-charcoal);
    font-family: 'Jost', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 26px;
    cursor: pointer;
}

.ts-search-tab.is-active {
    background: var(--ts-orange);
    color: var(--ts-on-accent);
    border-color: var(--ts-orange);
}

.ts-search-form {
    display: grid;
    gap: 12px;
}

.ts-field {
    display: grid;
}

.ts-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ts-search-btn {
    width: 100%;
}

.section-title-row {
    margin-top: 40px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.ts-link-accent {
    color: var(--ts-orange);
    font-family: 'Jost', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ts-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ts-property-card {
    border-radius: 20px;
    padding: 12px;
    border: 1px solid var(--ts-gray-200);
    background: var(--ts-white);
    box-shadow: rgba(0, 0, 0, 0.176) 0 6px 12px 0;
}

.ts-card-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    perspective: 900px;
}

.property-thumb {
    width: 100%;
    border-radius: 20px;
    border: 0;
    transform-origin: center;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 320ms ease;
    transform:
        scale(var(--card-scale, 1))
        rotateZ(var(--card-rotate-z, 0deg))
        rotateX(var(--card-tilt-x, 0deg))
        rotateY(var(--card-tilt-y, 0deg));
    will-change: transform;
}

.ts-card-clickable:hover .ts-card-image-wrap,
.ts-card-clickable:focus-visible .ts-card-image-wrap {
    --card-scale: 1.085;
    --card-rotate-z: -0.9deg;
}

.ts-card-clickable:hover .property-thumb,
.ts-card-clickable:focus-visible .property-thumb {
    filter: saturate(1.07) contrast(1.04);
}

.ts-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    border-radius: 100px;
    padding: 6px 12px;
    font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    line-height: 26px;
}

.ts-badge-popular {
    background: var(--ts-orange);
    color: var(--ts-on-accent);
}

.ts-badge-featured {
    background: var(--ts-white);
    color: var(--ts-charcoal);
    border: 1px solid var(--ts-orange);
}

.ts-card-body {
    padding: 12px 8px 4px;
}

.ts-card-body h3 {
    margin: 6px 0;
    font-size: 32px;
    line-height: 42px;
}

.ts-card-subtitle {
    color: var(--ts-gray-500);
    margin: 0;
}

.ts-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.price {
    color: var(--ts-orange);
    font-family: 'Jost', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    margin: 0;
}

.card-link {
    color: var(--ts-orange);
    font-family: 'Jost', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ts-card-clickable {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 20px;
}

.ts-card-clickable .ts-property-card {
    height: 100%;
}

.ts-card-clickable:focus-visible {
    outline: none;
}

.ts-card-clickable:focus-visible .ts-property-card {
    border-color: var(--ts-orange);
    box-shadow: 0 0 0 3px rgba(231, 200, 115, 0.24), rgba(0, 0, 0, 0.176) 0 6px 12px 0;
}

.ts-card-stack {
    display: grid;
    gap: 8px;
}

.ts-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.ts-card-actions form {
    margin: 0;
}

.ts-card-actions .btn-mini,
.ts-card-actions a.btn-mini {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 15px;
    line-height: 22px;
}

.ts-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.ts-card-cta::after {
    content: '>';
    opacity: 0.8;
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.ts-card-clickable:hover .ts-card-cta::after,
.ts-card-clickable:focus-visible .ts-card-cta::after {
    transform: translateX(3px);
}

.ts-process-wrap {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ts-process-card,
.ts-testimonial-card {
    background: var(--ts-white);
    border: 1px solid var(--ts-gray-200);
    border-radius: 10px;
    padding: 24px;
    box-shadow: rgba(0, 0, 0, 0.176) 0 6px 12px 0;
}

.ts-process-card h2,
.ts-testimonial-card h2 {
    margin: 8px 0 14px;
    font-size: 32px;
    line-height: 42px;
}

.ts-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.ts-steps li {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 12px;
    color: var(--ts-charcoal);
}

.ts-steps li span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 200, 115, 0.25);
    color: #7c6223;
    font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    line-height: 26px;
}

.ts-testimonial-card blockquote {
    margin: 8px 0;
    font-size: 24px;
    line-height: 34px;
    color: var(--ts-charcoal);
    font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ts-reviewer {
    margin: 0;
    color: var(--ts-gray-500);
    font-size: 16px;
}

.ts-review-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.ts-review-actions button {
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid var(--ts-gray-200);
    background: var(--ts-white);
    color: var(--ts-charcoal);
    font-family: 'Jost', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 26px;
    cursor: pointer;
    padding: 8px 16px;
}

.ts-review-actions button:hover {
    color: var(--ts-orange);
    border-color: var(--ts-orange);
}

.ts-cta-strip {
    margin-top: 48px;
    background: linear-gradient(90deg, var(--ts-navy), #202430);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ts-cta-strip h2 {
    margin: 8px 0;
    color: var(--ts-white);
    font-size: 52px;
    line-height: 62px;
}

.ts-cta-strip p {
    margin: 0;
    color: #d6d6d6;
}

@keyframes tsGlow {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

@media (max-width: 999px) {
    .container {
        width: min(1200px, calc(100% - 40px));
    }

    h1 {
        font-size: 64px;
        line-height: 74px;
    }

    h2 {
        font-size: 38px;
        line-height: 48px;
    }

    .ts-hero-content,
    .ts-process-wrap {
        grid-template-columns: 1fr;
    }

    .ts-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ts-cta-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .ts-cta-strip h2 {
        font-size: 38px;
        line-height: 48px;
    }
}

@media (max-width: 900px) {
    .nav-mobile-controls {
        display: inline-flex;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: 0;
    }

    .nav-menu {
        position: fixed;
        top: 74px;
        left: 12px;
        right: 12px;
        z-index: 130;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
        border: 1px solid #eadcbe;
        border-radius: 16px;
        background:
            radial-gradient(circle at 0% 0%, rgba(236, 99, 38, 0.1), rgba(236, 99, 38, 0) 40%),
            linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 243, 0.98));
        box-shadow: 0 22px 34px rgba(22, 16, 9, 0.24);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-14px) scale(0.98);
        transform-origin: top center;
        max-height: calc(100dvh - 94px);
        overflow: auto;
        transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
    }

    .nav-menu.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-links,
    .nav-auth {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .nav-links {
        padding-bottom: 8px;
        border-bottom: 1px dashed #eadfca;
    }

    .nav-auth {
        padding-top: 2px;
    }

    .nav-links a,
    .nav-auth a,
    .nav-auth button {
        width: 100%;
        min-height: 44px;
        justify-content: flex-start;
        border-radius: 10px;
    }

    .nav-icon-link {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        gap: 0.7rem;
    }

    .nav-icon-link .sr-only {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .nav-auth .lang-popup {
        display: none;
    }

    .nav-auth .user-popup {
        width: 100%;
    }

    .lang-popup {
        width: 100%;
    }

    .lang-popup-mobile {
        display: block;
        width: auto;
    }

    .lang-popup-mobile .lang-popup-trigger {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 10px;
        justify-content: center;
    }

    .lang-popup-mobile .lang-popup-label {
        font-size: 13px;
    }

    .lang-popup-mobile .lang-popup-menu {
        position: absolute;
        right: 0;
        min-width: 160px;
        margin-top: 8px;
        box-shadow: 0 16px 26px rgba(26, 19, 11, 0.2);
    }

    .lang-popup-trigger {
        width: 100%;
        justify-content: flex-start;
    }

    .lang-popup-menu {
        position: static;
        min-width: 0;
        margin-top: 6px;
        box-shadow: none;
    }

    .user-popup-trigger {
        width: 100%;
        justify-content: flex-start;
    }

    .user-popup-menu {
        position: static;
        min-width: 0;
        margin-top: 6px;
        box-shadow: none;
    }

    .nav-menu .inline-form,
    .nav-menu .inline-form button {
        width: 100%;
    }

    body.is-nav-open .topbar {
        box-shadow: 0 12px 20px rgba(20, 16, 10, 0.2);
    }
}

@media (max-width: 599px) {
    .container {
        width: min(1200px, calc(100% - 24px));
    }

    .nav-mobile-controls {
        display: inline-flex;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: 0;
    }

    .nav-menu {
        position: fixed;
        top: 74px;
        left: 12px;
        right: 12px;
        z-index: 130;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
        border: 1px solid #eadcbe;
        border-radius: 16px;
        background:
            radial-gradient(circle at 0% 0%, rgba(236, 99, 38, 0.1), rgba(236, 99, 38, 0) 40%),
            linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 243, 0.98));
        box-shadow: 0 22px 34px rgba(22, 16, 9, 0.24);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-14px) scale(0.98);
        transform-origin: top center;
        max-height: calc(100dvh - 94px);
        overflow: auto;
        transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
    }

    .nav-menu.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-links,
    .nav-auth {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .nav-links {
        padding-bottom: 8px;
        border-bottom: 1px dashed #eadfca;
    }

    .nav-auth {
        padding-top: 2px;
    }

    .nav-links a,
    .nav-auth a,
    .nav-auth button {
        width: 100%;
        min-height: 44px;
        justify-content: flex-start;
        border-radius: 10px;
    }

    .nav-icon-link {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        gap: 0.7rem;
    }

    .nav-icon-link .sr-only {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .nav-auth .lang-popup {
        display: none;
    }

    .nav-auth .user-popup {
        width: 100%;
    }

    .lang-popup {
        width: 100%;
    }

    .lang-popup-mobile {
        display: block;
        width: auto;
    }

    .lang-popup-mobile .lang-popup-trigger {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 10px;
        justify-content: center;
    }

    .lang-popup-mobile .lang-popup-label {
        font-size: 13px;
    }

    .lang-popup-mobile .lang-popup-menu {
        position: absolute;
        right: 0;
        min-width: 160px;
        margin-top: 8px;
        box-shadow: 0 16px 26px rgba(26, 19, 11, 0.2);
    }

    .lang-popup-trigger {
        width: 100%;
        justify-content: flex-start;
    }

    .lang-popup-menu {
        position: static;
        min-width: 0;
        margin-top: 6px;
        box-shadow: none;
    }

    .user-popup-trigger {
        width: 100%;
        justify-content: flex-start;
    }

    .user-popup-menu {
        position: static;
        min-width: 0;
        margin-top: 6px;
        box-shadow: none;
    }

    .nav-menu .inline-form,
    .nav-menu .inline-form button {
        width: 100%;
    }

    .nav-menu .nav-links > *,
    .nav-menu .nav-auth > * {
        opacity: 0;
        transform: translateY(8px);
        transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
    }

    .nav-menu.is-open .nav-links > *,
    .nav-menu.is-open .nav-auth > * {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu .nav-links > *:nth-child(1) { transition-delay: 30ms; }
    .nav-menu .nav-links > *:nth-child(2) { transition-delay: 50ms; }
    .nav-menu .nav-links > *:nth-child(3) { transition-delay: 70ms; }
    .nav-menu .nav-links > *:nth-child(4) { transition-delay: 90ms; }
    .nav-menu .nav-links > *:nth-child(5) { transition-delay: 110ms; }
    .nav-menu .nav-links > *:nth-child(6) { transition-delay: 130ms; }
    .nav-menu .nav-links > *:nth-child(7) { transition-delay: 150ms; }
    .nav-menu .nav-links > *:nth-child(8) { transition-delay: 170ms; }
    .nav-menu .nav-auth > *:nth-child(1) { transition-delay: 190ms; }
    .nav-menu .nav-auth > *:nth-child(2) { transition-delay: 210ms; }
    .nav-menu .nav-auth > *:nth-child(3) { transition-delay: 230ms; }
    .nav-menu .nav-auth > *:nth-child(4) { transition-delay: 250ms; }

    body.is-nav-open .topbar {
        box-shadow: 0 12px 20px rgba(20, 16, 10, 0.2);
    }

    h1 {
        font-size: 48px;
        line-height: 58px;
    }

    h2 {
        font-size: 32px;
        line-height: 42px;
    }

    .ts-hero {
        min-height: 0;
    }

    .ts-hero-content {
        min-height: 0;
        padding: 20px 16px;
    }

    .ts-field-grid {
        grid-template-columns: 1fr;
    }

    .ts-card-grid {
        grid-template-columns: 1fr;
    }

    .ts-search-panel,
    .ts-process-card,
    .ts-testimonial-card,
    .ts-cta-strip {
        padding: 16px;
    }
}

.ts-page-header {
    margin-bottom: 20px;
}

.ts-page-header h1 {
    margin: 0;
}

.ts-page-desc {
    margin: 6px 0 0;
    color: var(--ts-gray-500);
}

.ts-panel {
    background: var(--ts-white);
    border: 1px solid var(--ts-gray-200);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.176) 0 6px 12px 0;
}

.ts-filter-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.ts-inline-btn {
    align-self: end;
}

.ts-results-bar {
    margin-bottom: 14px;
}

.result-count {
    margin: 0;
    color: var(--ts-gray-500);
}

.ts-compare-toolbar {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ts-compare-table-wrap {
    padding: 12px;
}

.ts-compare-link {
    color: var(--ts-charcoal);
    font-weight: 500;
}

.ts-compare-link:hover {
    color: var(--ts-orange);
}

.ts-compare-note {
    margin: 0 0 12px;
    color: var(--ts-gray-500);
}

.ts-compare-summary {
    margin: 0 0 12px;
    padding: 14px;
    display: grid;
    gap: 8px;
}

.ts-compare-summary h3 {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
}

.ts-compare-summary p {
    margin: 0;
    color: var(--ts-gray-500);
}

.ts-compare-winners {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ts-compare-winners span {
    border-radius: 999px;
    border: 1px solid #d2a94f;
    background: linear-gradient(145deg, #fff8e8, #ffefcc);
    color: #70501b;
    padding: 5px 12px;
    font-size: 13px;
    line-height: 20px;
}

.ts-compare-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.ts-compare-card {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.ts-compare-media {
    display: block;
    border-radius: 14px;
    overflow: hidden;
}

.ts-compare-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.ts-compare-head {
    display: grid;
    gap: 2px;
}

.ts-compare-rank {
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ts-compare-rank span {
    color: var(--ts-gray-500);
    font-size: 13px;
    line-height: 20px;
}

.ts-compare-rank strong {
    font-size: 14px;
    line-height: 20px;
    color: #7a5515;
}

.ts-compare-scorebar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #efe7d8;
    overflow: hidden;
}

.ts-compare-scorebar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f5cb6f, #d2a046);
}

.ts-compare-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ts-compare-badges span {
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid #e2c175;
    background: linear-gradient(145deg, #fff4d7, #ffedc1);
    color: #73551d;
    font-size: 12px;
    line-height: 18px;
    font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ts-compare-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ts-compare-metric {
    border: 1px solid var(--ts-gray-200);
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    display: grid;
    gap: 2px;
}

.ts-compare-metric.is-highlight {
    border-color: #d2a94f;
    background: linear-gradient(150deg, #fff8e8, #ffefcc);
}

.ts-compare-metric p {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: var(--ts-gray-500);
}

.ts-compare-metric strong {
    font-size: 16px;
    line-height: 24px;
    color: var(--ts-charcoal);
}

.ts-compare-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ts-compare-actions form {
    margin: 0;
}

.ts-compare-actions .btn-mini,
.ts-compare-actions a.btn-mini {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 15px;
    line-height: 22px;
}

.ts-empty-state {
    margin-top: 18px;
    padding: 20px;
    text-align: center;
}

.ts-empty-state h3 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 34px;
}

.ts-empty-state p {
    margin: 0;
    color: var(--ts-gray-500);
}

.ts-detail-main,
.ts-detail-side {
    padding: 22px;
    border: 1px solid rgba(236, 99, 38, 0.12);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09);
}

.ts-detail-main h1 {
    margin: 0;
    font-size: clamp(30px, 4.4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.ts-detail-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.ts-detail-top-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.ts-detail-price-card {
    min-width: 210px;
    border-radius: 14px;
    border: 1px solid #f0d9ba;
    background: linear-gradient(160deg, #fff7ee, #fff2e3);
    padding: 10px 14px;
    text-align: right;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.ts-detail-price-card span {
    display: block;
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ts-gray-500);
}

.ts-detail-price-card .price {
    margin: 2px 0 0;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.1;
}

.ts-detail-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid var(--ts-gray-200);
    border-radius: 999px;
    background: #fff;
    color: var(--ts-gray-500);
    margin: 0;
    font-size: 14px;
    line-height: 22px;
}

.ts-detail-description {
    margin: 0;
    color: var(--ts-charcoal);
    line-height: 28px;
}

.ts-detail-description-block {
    margin-top: 10px;
    border: 1px solid rgba(236, 99, 38, 0.14);
    border-radius: 14px;
    padding: 14px 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(236, 99, 38, 0.07), rgba(236, 99, 38, 0) 44%),
        linear-gradient(165deg, #fff, #fffaf5);
}

.ts-detail-actions {
    display: grid;
    gap: 8px;
    margin: 6px 0 12px;
}

.ts-detail-actions form {
    margin: 0;
}

.ts-detail-actions .btn-mini,
.ts-detail-actions a.btn-mini {
    width: 100%;
    justify-content: center;
}

.ts-detail-side {
    width: 100%;
    max-width: 308px;
    justify-self: end;
    position: sticky;
    top: 96px;
    background: linear-gradient(180deg, #fff, #fffaf3);
}

.ts-detail-side-summary {
    border: 1px solid #f0d9b6;
    border-radius: 14px;
    padding: 12px;
    background:
        radial-gradient(circle at 100% 0%, rgba(236, 99, 38, 0.13), rgba(236, 99, 38, 0) 46%),
        linear-gradient(165deg, #fff, #fff7eb);
    margin-bottom: 12px;
}

.ts-detail-summary-kicker {
    margin: 0;
    color: var(--ts-gray-500);
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ts-detail-summary-price {
    margin: 3px 0 10px;
    color: var(--ts-orange);
    font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(24px, 3.2vw, 30px);
    line-height: 1.1;
    font-weight: 700;
}

.ts-detail-summary-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ts-detail-summary-grid li {
    border: 1px solid rgba(236, 99, 38, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.76);
    padding: 8px 10px;
    display: grid;
    gap: 2px;
}

.ts-detail-summary-grid li span {
    color: var(--ts-gray-500);
    font-size: 12px;
    line-height: 18px;
}

.ts-detail-summary-grid li strong {
    color: var(--ts-charcoal);
    font-size: 14px;
    line-height: 20px;
}

.ts-detail-primary-cta {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
}

.ts-detail-side-title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 34px;
    padding-top: 6px;
    border-top: 1px dashed #efd9b5;
}

.ts-detail-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ts-detail-quick-links a {
    border: 1px solid var(--ts-gray-200);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 20px;
    color: var(--ts-charcoal);
    background: #fff;
}

.ts-detail-quick-links a:hover {
    border-color: var(--ts-orange);
    color: var(--ts-orange);
}

.ts-detail-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.ts-detail-specs li {
    border: 1px solid rgba(236, 99, 38, 0.16);
    border-radius: 12px;
    padding: 11px 12px;
    display: grid;
    gap: 3px;
    background: linear-gradient(180deg, #fff, #fff9ef);
}

.ts-detail-specs li strong {
    font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    line-height: 20px;
}

.ts-detail-map-wrap {
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(236, 99, 38, 0.16);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.property-map {
    margin-top: 0;
}

.ts-detail-auth-note {
    margin: 10px 0;
    color: var(--ts-gray-500);
}

.ts-detail-appointment-form {
    gap: 8px;
}

.ts-appointment-form {
    margin-top: 8px;
}

.ts-auth-wrap {
    max-width: 660px;
    margin: 0 auto;
}

.ts-auth-card {
    padding: 24px;
}

.ts-auth-card .btn-primary {
    background: linear-gradient(135deg, #0f3b91, #1a57c6);
    color: #fff;
    box-shadow: 0 12px 24px rgba(17, 66, 163, 0.22);
    border: none;
    margin-top: 0.5rem;
}

.ts-auth-card h1 {
    margin: 4px 0 8px;
}

.ts-profile-card {
    display: grid;
    gap: 12px;
}

.ts-profile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.ts-profile-panel {
    padding: 14px;
    border: 1px solid #ebdfc3;
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(231, 200, 115, 0.16), rgba(231, 200, 115, 0) 42%),
        linear-gradient(160deg, #fffdf7, #fff9ee);
}

.ts-profile-meta {
    margin: -2px 0 0;
    color: var(--ts-gray-500);
    font-size: 14px;
    line-height: 22px;
}

.ts-password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ts-password-input-wrap input {
    width: 100%;
    padding-right: 88px;
}

.ts-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid #e8d9ba;
    border-radius: 999px;
    background: #fffdfa;
    color: var(--ts-charcoal);
    cursor: pointer;
    font-size: 12px;
    line-height: 18px;
}

.ts-password-toggle:hover {
    border-color: #d8b97c;
    color: var(--ts-orange);
}

.ts-password-eye {
    position: relative;
    width: 16px;
    height: 10px;
    border: 1.6px solid currentColor;
    border-radius: 999px;
    display: inline-block;
}

.ts-password-eye::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: currentColor;
}

.ts-password-strength {
    margin-top: -4px;
    margin-bottom: 2px;
    display: grid;
    gap: 6px;
}

.ts-password-strength-text {
    margin: 0;
    color: var(--ts-gray-500);
    font-size: 13px;
    line-height: 20px;
}

.ts-password-strength-text strong {
    color: var(--ts-charcoal);
}

.ts-password-strength-bar {
    height: 8px;
    border: 1px solid #e6d7b8;
    border-radius: 999px;
    background: #f3ecdc;
    overflow: hidden;
}

.ts-password-strength-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width 220ms ease, background-color 220ms ease;
    background: #ccc;
}

.ts-password-strength-bar span.is-none {
    background: #d3d3d3;
}

.ts-password-strength-bar span.is-weak {
    background: #d95e3a;
}

.ts-password-strength-bar span.is-fair {
    background: #e39a3c;
}

.ts-password-strength-bar span.is-good {
    background: #b99f2f;
}

.ts-password-strength-bar span.is-strong {
    background: #2f8f5f;
}

.ts-auth-form {
    gap: 10px;
}

.ts-demo-access {
    margin: 14px 0 18px;
    padding: 14px;
    border: 1px solid #ebdfc3;
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(231, 200, 115, 0.22), rgba(231, 200, 115, 0) 40%),
        linear-gradient(150deg, #fffdf8, #fff9ed);
}

.ts-demo-title {
    margin: 0;
    color: var(--ts-charcoal);
    font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
}

.ts-demo-desc {
    margin: 2px 0 0;
    color: var(--ts-gray-500);
    font-size: 14px;
    line-height: 22px;
}

.ts-demo-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ts-demo-btn {
    min-height: 64px;
    border-radius: 12px;
    border: 1px solid #ead9b4;
    background: #fff;
    color: var(--ts-charcoal);
    text-align: left;
    padding: 10px 12px;
    cursor: pointer;
    display: grid;
    gap: 1px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ts-demo-btn:hover {
    transform: translateY(-2px);
    border-color: #d6b45a;
    box-shadow: 0 8px 14px rgba(161, 128, 42, 0.2);
}

.ts-demo-btn.is-active {
    border-color: #d6b45a;
    background: linear-gradient(145deg, #fff7e2, #fff1cb);
    box-shadow: 0 10px 16px rgba(161, 128, 42, 0.22);
}

.ts-demo-role {
    font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
}

.ts-demo-mail {
    font-size: 13px;
    line-height: 20px;
    color: var(--ts-gray-500);
}

.ts-demo-hint {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 20px;
    color: var(--ts-charcoal);
}

.ts-create-shell {
    display: grid;
    gap: 18px;
}

.ts-create-hero {
    padding: 20px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(231, 200, 115, 0.26), rgba(231, 200, 115, 0) 38%),
        linear-gradient(150deg, #fffdf8, #fff9ef);
}

.ts-create-hero h1 {
    margin: 6px 0 0;
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    line-height: 1.12;
}

.ts-create-hero-points {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ts-create-hero-points span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 20px;
    border: 1px solid #e8d7b2;
    background: #fff;
    color: #7c6223;
}

.ts-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 16px;
    align-items: start;
}

.ts-create-form {
    padding: 20px;
    display: grid;
    gap: 16px;
}

.ts-create-group {
    display: grid;
    gap: 10px;
}

.ts-create-group h2 {
    margin: 0;
    font-size: 28px;
    line-height: 36px;
}

.ts-create-fields,
.ts-create-grid-2,
.ts-create-grid-3 {
    display: grid;
    gap: 12px;
}

.ts-create-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.ts-create-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ts-create-field {
    display: grid;
    gap: 6px;
}

.ts-create-field label {
    margin-bottom: 0;
}

.ts-create-field input,
.ts-create-field select,
.ts-create-field textarea {
    background: #fffefb;
}

.ts-create-map {
    min-height: 330px;
    border: 1px solid #e8ddc6;
    border-radius: 14px;
    overflow: hidden;
    background: #f7f2e5;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.ts-create-map .leaflet-control-zoom a {
    color: var(--ts-charcoal);
}

.ts-create-map-hint {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 20px;
    color: var(--ts-gray-500);
}

.ts-create-actions {
    padding-top: 4px;
}

.ts-create-actions .btn-primary {
    min-width: 220px;
}

.ts-create-side {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 92px;
}

.ts-create-note {
    padding: 16px;
}

.ts-create-checklist {
    margin: 8px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
    color: var(--ts-charcoal);
}

.ts-create-tip {
    margin: 8px 0 0;
    color: var(--ts-gray-500);
}

.ts-section-title {
    margin: 26px 0 10px;
    font-size: 32px;
    line-height: 42px;
}

.ts-dashboard-stats .stat-card {
    padding: 16px;
}

.stat-card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 34px;
}

.stat-card p {
    margin: 8px 0 0;
    font-size: 32px;
    line-height: 42px;
    color: var(--ts-orange);
    font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.table-wrap.ts-panel {
    padding: 10px;
}

.table-wrap table {
    border-collapse: separate;
    border-spacing: 0;
}

.table-wrap th {
    background: #fafafa;
    color: var(--ts-charcoal);
    font-family: 'DM Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    line-height: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table-wrap td {
    color: var(--ts-charcoal);
}

@media (max-width: 999px) {
    .property-detail {
        grid-template-columns: 1fr;
    }

    .ts-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .ts-create-layout {
        grid-template-columns: 1fr;
    }

    .ts-create-side {
        position: static;
    }

    .ts-create-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .ts-detail-main h1 {
        font-size: 38px;
        line-height: 48px;
    }

    .ts-detail-top {
        flex-direction: column;
        align-items: stretch;
    }

    .ts-detail-price-card {
        min-width: 0;
        text-align: left;
    }

    .ts-detail-side {
        max-width: none;
        justify-self: stretch;
        position: static;
    }

    .ts-detail-summary-grid {
        grid-template-columns: 1fr;
    }

    .ts-detail-specs {
        grid-template-columns: 1fr;
    }

    .property-gallery-thumb-btn {
        flex-basis: 86px;
    }
}

@media (max-width: 599px) {
    .ts-filter-form {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .ts-auth-card,
    .ts-detail-main,
    .ts-detail-side {
        padding: 16px;
    }

    .ts-demo-grid {
        grid-template-columns: 1fr;
    }

    .ts-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ts-card-actions form,
    .ts-card-actions a.btn-mini {
        width: 100%;
    }

    .property-gallery {
        padding: 8px;
    }

    .property-gallery-nav {
        width: 34px;
        height: 34px;
    }

    .property-gallery-thumb-btn {
        flex-basis: 72px;
    }

    .property-gallery-counter {
        font-size: 11px;
        padding: 4px 8px;
    }


@media (prefers-reduced-motion: reduce) {
    .property-gallery-track {
        transition: none;
    }

    .property-gallery-thumb-btn,
    .property-gallery-nav {
        transition: none;
    }
}
    .ts-card-actions .btn-mini,
    .ts-card-actions a.btn-mini {
        width: 100%;
        justify-content: center;
    }

    .ts-compare-metrics {
        grid-template-columns: 1fr;
    }

    .ts-compare-winners span {
        width: 100%;
    }

    .ts-compare-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ts-compare-actions form,
    .ts-compare-actions a.btn-mini,
    .ts-compare-actions .btn-mini {
        width: 100%;
        justify-content: center;
    }

    .ts-create-form,
    .ts-create-note,
    .ts-create-hero {
        padding: 16px;
    }

    .ts-create-grid-2,
    .ts-create-grid-3 {
        grid-template-columns: 1fr;
    }

    .ts-create-map {
        min-height: 280px;
    }

    .ts-create-group h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .ts-create-actions .btn-primary {
        width: 100%;
        min-width: 0;
    }

    .ts-page-header h1 {
        font-size: 48px;
        line-height: 58px;
    }
}

/* Global motion layer */
:root {
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-fast: 220ms;
    --motion-base: 580ms;
}

body.motion-enabled .topbar {
    opacity: 0;
    transform: translateY(-10px);
    transition: transform var(--motion-base) var(--motion-ease), opacity 460ms ease;
}

body.motion-enter .topbar {
    opacity: 1;
    transform: translateY(0);
}

body.motion-enabled .page-content {
    opacity: 0;
    transform: translateY(14px);
    transition: transform 700ms var(--motion-ease) 70ms, opacity 600ms ease 70ms;
}

body.motion-enter .page-content {
    opacity: 1;
    transform: translateY(0);
}

.motion-reveal {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(2px);
    transition:
        transform var(--motion-base) var(--motion-ease),
        opacity 460ms ease,
        filter 460ms ease;
    transition-delay: var(--motion-delay, 0ms);
}

.motion-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.table-wrap tbody tr.motion-reveal {
    transform: translateY(12px);
}

.property-card,
.ts-property-card,
.ts-panel,
.home2-property-card,
.home2-collection-card,
.ts-process-card,
.ts-testimonial-card,
.ts-cta-strip,
.btn-primary,
.btn-mini,
.btn-secondary,
.nav-links a,
.nav-auth a,
.nav-auth button,
.ts-review-actions button,
.ts-search-tab {
    transition:
        transform var(--motion-fast) ease,
        box-shadow 320ms ease,
        background-color var(--motion-fast) ease,
        color var(--motion-fast) ease,
        border-color var(--motion-fast) ease,
        opacity var(--motion-fast) ease;
}

.ts-panel:hover,
.home2-collection-card:hover,
.ts-process-card:hover,
.ts-testimonial-card:hover,
.table-wrap.ts-panel:hover {
    transform: translateY(-3px);
    box-shadow: rgba(0, 0, 0, 0.2) 0 14px 24px 0;
}

.btn-primary,
.btn-mini {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-mini::after {
    content: '';
    position: absolute;
    top: -140%;
    left: -30%;
    width: 22%;
    height: 280%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-220%) rotate(14deg);
    transition: transform 760ms var(--motion-ease);
    pointer-events: none;
}

.btn-primary:hover::after,
.btn-mini:hover::after {
    transform: translateX(520%) rotate(14deg);
}

.ts-hero,
.home2-hero,
.luxury-banner {
    transform:
        perspective(1200px)
        rotateX(var(--hero-tilt-x, 0deg))
        rotateY(var(--hero-tilt-y, 0deg));
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 260ms ease-out, box-shadow 320ms ease;
}

.ts-dot.is-active,
.home2-dot.is-active,
.dot-btn.is-active {
    animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 200, 115, 0.45);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(231, 200, 115, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 200, 115, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    body.motion-enabled .topbar,
    body.motion-enabled .page-content,
    .motion-reveal,
    .motion-reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .property-thumb {
        transform: none !important;
        filter: none !important;
    }

    body::before {
        background-position: center, center 36%, center 74% !important;
    }

    .scroll-progress::before {
        transition: none !important;
    }
}

/* Luxury usability polish */
.topbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
    backdrop-filter: blur(10px);
}

.topbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(231, 200, 115, 0), rgba(231, 200, 115, 0.75), rgba(231, 200, 115, 0));
}

.nav-links a,
.nav-auth a,
.nav-auth button {
    position: relative;
}

.nav-links a.is-active,
.nav-auth a.is-active,
.nav-auth .btn-mini.is-active {
    background: linear-gradient(145deg, var(--ts-orange), #f3dd9f);
    color: var(--ts-on-accent);
    box-shadow: 0 8px 18px rgba(187, 149, 55, 0.28);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #cc9f3e;
    outline-offset: 2px;
}

.ts-search-panel,
.ts-panel,
.ts-property-card,
.ts-process-card,
.ts-testimonial-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 1)),
        var(--ts-white);
    border-color: #ebe0c6;
}

.table-wrap tbody tr:hover {
    background: #fff8e9;
}

.btn-primary:disabled,
.btn-mini:disabled,
.btn-secondary:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.nav-backdrop {
    display: none;
    border: 0;
    background: rgba(17, 17, 17, 0.38);
    backdrop-filter: blur(2px);
}

:root {
    --bg: #eef5ff;
    --paper: #ffffff;
    --ink: #10315e;
    --muted: #617799;
    --accent: #1142a3;
    --accent-strong: #0b2d72;
    --accent-2: #17a36c;
    --line: #d6e3f8;
    --nav: #ffffff;
}

body {
    font-family: 'Prompt', 'Noto Sans Thai', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(49, 112, 221, 0.14), rgba(49, 112, 221, 0) 34%),
        radial-gradient(circle at 100% 10%, rgba(23, 163, 108, 0.16), rgba(23, 163, 108, 0) 28%),
        linear-gradient(180deg, #f7fbff 0%, #eef4ff 45%, #f9fcff 100%);
}

.container {
    width: min(1240px, 94vw);
}

.topbar {
    border-bottom: 1px solid rgba(12, 53, 128, 0.08);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 34px rgba(13, 55, 130, 0.08);
}

.topbar::after {
    background: linear-gradient(90deg, rgba(23, 163, 108, 0), rgba(23, 163, 108, 0.38), rgba(17, 66, 163, 0));
}

.nav-wrap {
    gap: 1.25rem;
}

.brand,
.nav-links a,
.nav-auth a,
.nav-auth button,
.btn-primary,
.btn-mini,
.btn-secondary {
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #10315e;
    letter-spacing: 0;
    font-size: 1.12rem;
}

.brand-mark {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #0f3b91, #17a36c);
    box-shadow: 0 8px 16px rgba(17, 66, 163, 0.24);
}

.brand-wordmark {
    display: grid;
    line-height: 1.05;
}

.brand-wordmark strong {
    font-size: 1rem;
    font-weight: 800;
    color: #0d3264;
}

.brand-wordmark small {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3e5f8f;
}

.nav-links a,
.nav-auth a,
.nav-auth button {
    color: #29466f;
    white-space: nowrap;
}

.nav-auth a.btn-mini,
.nav-auth a.btn-primary {
    color: #fff;
}

.nav-links a.is-active,
.nav-auth a.is-active,
.nav-auth .btn-mini.is-active {
    background: linear-gradient(135deg, #0f3b91, #1a57c6);
    color: #fff;
    box-shadow: 0 10px 20px rgba(17, 66, 163, 0.24);
}

.btn-primary,
.btn-mini {
    background: linear-gradient(135deg, #0f3b91, #1a57c6);
    color: #fff;
    box-shadow: 0 12px 24px rgba(17, 66, 163, 0.18);
    border-radius: 16px;
}

.btn-mini.outline {
    color: #0f3b91;
    border: 1px solid rgba(15, 59, 145, 0.18);
    background: rgba(15, 59, 145, 0.05);
}

.btn-secondary {
    color: #10315e;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(17, 66, 163, 0.16);
}

.page-content {
    padding: 1.5rem 0 3rem;
}

.site-footer {
    background: linear-gradient(180deg, #0e317a 0%, #0a2456 100%);
    color: #e8f0ff;
}

.footer-tagline,
.footer-col p,
.footer-col li,
.footer-col a,
.footer-bottom p {
    color: rgba(232, 240, 255, 0.86);
}

.market-home {
    display: grid;
    gap: 1.2rem;
}

.market-home-replica {
    gap: 1rem;
}

.replica-hero {
    position: relative;
    display: block;
    min-height: clamp(200px, 32vw, 430px);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(17, 66, 163, 0.14);
    box-shadow: 0 24px 46px rgba(17, 66, 163, 0.16);
    background: #ffffff;
}

.replica-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(9, 31, 76, 0.08) 0%, rgba(9, 31, 76, 0.18) 100%);
}

.replica-hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.replica-hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 420ms ease, transform 800ms ease;
}

.replica-hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.replica-hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.replica-hero-hitarea {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.replica-hero-hitarea.is-active {
    pointer-events: auto;
}

.replica-hero-hitarea.is-disabled {
    pointer-events: none;
}

.replica-hero-dots {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.replica-hero-nav {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.replica-hero-arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 47, 104, 0.42);
    cursor: pointer;
}

.replica-hero-arrow svg {
    width: 16px;
    height: 16px;
}

.replica-hero-arrow:hover {
    background: rgba(12, 40, 90, 0.62);
}

.replica-hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.replica-hero-dot.is-active {
    width: 24px;
    background: #fff;
}

.replica-hero-main,
.replica-hero-side {
    position: relative;
    z-index: 1;
}

.replica-hero-main {
    color: #fff;
}

.replica-brand {
    margin: 0;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.replica-hero-main h1 {
    margin: 0.9rem 0 0.35rem;
    max-width: 760px;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    line-height: 1.02;
}

.replica-hero-main h1 span {
    display: inline-block;
    padding: 0.1rem 0.6rem;
    border-radius: 14px;
    background: linear-gradient(90deg, #16a56f, #21c387);
}

.replica-subtitle {
    margin: 0;
    display: inline-flex;
    padding: 0.35rem 0.92rem;
    border-radius: 999px;
    font-size: 1.05rem;
    background: rgba(1, 39, 104, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.replica-prize-box {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #0d2f74, #123f9a);
    border: 1px solid rgba(255, 215, 128, 0.38);
    box-shadow: 0 16px 30px rgba(8, 29, 75, 0.35);
}

.replica-prize-box strong {
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: clamp(3rem, 6vw, 4.7rem);
    line-height: 0.9;
    color: #ffcf64;
}

.replica-prize-box p {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffe9be;
}

.replica-prize-box small {
    color: #d7e6ff;
    font-weight: 600;
}

.replica-hero-side {
    display: grid;
    align-content: start;
    gap: 0.72rem;
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(6, 30, 84, 0.92), rgba(10, 66, 125, 0.88));
    color: #f2f7ff;
}

.replica-hero-side h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
}

.replica-hero-side p {
    margin: 0;
    color: rgba(236, 244, 255, 0.88);
}

.replica-qr {
    width: 170px;
    height: 170px;
    border-radius: 18px;
    background:
        linear-gradient(90deg, #121212 0 14%, transparent 14% 18%, #121212 18% 32%, transparent 32% 36%, #121212 36% 50%, transparent 50% 54%, #121212 54% 68%, transparent 68% 72%, #121212 72% 86%, transparent 86%),
        linear-gradient(#121212 0 14%, transparent 14% 18%, #121212 18% 32%, transparent 32% 36%, #121212 36% 50%, transparent 50% 54%, #121212 54% 68%, transparent 68% 72%, #121212 72% 86%, transparent 86%),
        radial-gradient(circle at 18% 18%, #121212 0 17%, transparent 17.5%),
        radial-gradient(circle at 82% 18%, #121212 0 17%, transparent 17.5%),
        radial-gradient(circle at 18% 82%, #121212 0 17%, transparent 17.5%);
    background-color: #fff;
    background-size: 100% 100%, 100% 100%, 42% 42%, 42% 42%, 42% 42%;
    background-repeat: no-repeat;
}

.replica-line-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #18a36e, #22c487);
    color: #fff;
    font-weight: 700;
}

.replica-proof {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.replica-proof-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #20bc83;
    box-shadow: 0 0 0 4px rgba(32, 188, 131, 0.28);
}

.replica-proof p {
    margin: 0;
    font-size: 0.92rem;
}

.replica-benefits {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.72rem;
    border-radius: 20px;
    border: 1px solid rgba(17, 66, 163, 0.08);
    background: #fff;
    box-shadow: 0 16px 30px rgba(17, 66, 163, 0.08);
}

.replica-benefit-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.62rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #f5f9ff);
    border: 1px solid rgba(17, 66, 163, 0.08);
}

.replica-benefit-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f3b91;
    background: rgba(15, 59, 145, 0.1);
}

.replica-benefit-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.replica-benefit-card h2 {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.25;
}

.replica-benefit-card p {
    margin: 0.18rem 0 0;
    font-size: 0.78rem;
    line-height: 1.3;
    color: var(--muted);
}

.market-shell,
.market-benefits,
.market-stats,
.market-section,
.market-panel,
.market-bottom-banner {
    border: 1px solid rgba(17, 66, 163, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 50px rgba(18, 52, 109, 0.08);
}

.market-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.9fr);
    gap: 1rem;
    overflow: hidden;
    border-radius: 34px;
    padding: 1.5rem;
    background:
        linear-gradient(120deg, rgba(9, 57, 141, 0.98) 0%, rgba(22, 77, 181, 0.96) 48%, rgba(18, 162, 111, 0.88) 100%),
        linear-gradient(180deg, #0e3b93, #0e3b93);
}

.market-hero::before,
.market-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.market-hero::before {
    width: 380px;
    height: 380px;
    left: -120px;
    top: -160px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.market-hero::after {
    width: 480px;
    height: 480px;
    right: -150px;
    bottom: -220px;
    background: radial-gradient(circle, rgba(247, 201, 86, 0.32), rgba(247, 201, 86, 0));
}

.market-hero-copy,
.market-hero-side {
    position: relative;
    z-index: 1;
}

.market-hero-copy {
    min-width: 0;
    color: #fff;
    padding: 0.4rem 0.2rem 0.3rem;
}

.market-brand-chip,
.market-hero-kicker,
.market-hero-side-kicker,
.market-section-kicker,
.market-property-chip,
.market-property-badge,
.market-link,
.market-action-btn,
.market-demand-card small {
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
}

.market-brand-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.38rem 0.75rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #edf5ff;
    font-size: 0.8rem;
}

.market-hero-kicker {
    margin: 1rem 0 0;
    color: rgba(236, 245, 255, 0.84);
    font-size: 0.96rem;
}

.market-hero h1 {
    margin: 0.55rem 0 0;
    max-width: 760px;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: clamp(2.7rem, 6vw, 4.9rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.market-hero h1 span {
    display: inline-block;
    margin: 0 0.2rem;
    padding: 0 0.4rem 0.08rem;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(20, 164, 108, 0.94), rgba(32, 190, 132, 0.94));
    box-shadow: 0 14px 28px rgba(11, 45, 114, 0.18);
}

.market-hero-desc {
    margin: 1rem 0 0;
    max-width: 620px;
    color: rgba(238, 244, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.65;
}

.market-hero-reward {
    margin-top: 1.35rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.1rem;
    border-radius: 26px;
    background: linear-gradient(135deg, #163b8f, #0f2f72 60%, #143471);
    border: 1px solid rgba(255, 214, 122, 0.32);
    box-shadow: 0 18px 36px rgba(10, 34, 83, 0.24);
}

.market-hero-reward div {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
}

.market-hero-reward strong {
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 0.88;
    color: #ffd46f;
}

.market-hero-reward span {
    margin-bottom: 0.35rem;
    color: #fff8e0;
    font-weight: 700;
}

.market-hero-reward p {
    margin: 0;
    color: rgba(237, 244, 255, 0.84);
}

.market-hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.35rem;
}

.market-hero-secondary {
    color: #0f3b91;
}

.market-hero-side {
    align-self: stretch;
    display: grid;
    gap: 0.85rem;
    align-content: start;
    border-radius: 28px;
    padding: 1.2rem;
    background: linear-gradient(180deg, rgba(10, 36, 95, 0.92), rgba(11, 83, 104, 0.92));
    color: #eef6ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.market-hero-side-kicker {
    margin: 0;
    color: #9dd6bf;
    font-size: 0.9rem;
}

.market-hero-side h2 {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: 2rem;
    line-height: 1.08;
}

.market-hero-side-desc,
.market-qr-caption,
.market-social-proof p {
    margin: 0;
    color: rgba(236, 245, 255, 0.82);
    line-height: 1.55;
}

.market-qr-card,
.market-mini-qr {
    display: inline-grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
}

.market-qr-card {
    width: min(100%, 210px);
    padding: 0.8rem;
}

.market-qr-code,
.market-mini-qr {
    background:
        linear-gradient(90deg, #121212 0 14%, transparent 14% 18%, #121212 18% 32%, transparent 32% 36%, #121212 36% 50%, transparent 50% 54%, #121212 54% 68%, transparent 68% 72%, #121212 72% 86%, transparent 86%),
        linear-gradient(#121212 0 14%, transparent 14% 18%, #121212 18% 32%, transparent 32% 36%, #121212 36% 50%, transparent 50% 54%, #121212 54% 68%, transparent 68% 72%, #121212 72% 86%, transparent 86%),
        radial-gradient(circle at 18% 18%, #121212 0 17%, transparent 17.5%),
        radial-gradient(circle at 82% 18%, #121212 0 17%, transparent 17.5%),
        radial-gradient(circle at 18% 82%, #121212 0 17%, transparent 17.5%);
    background-color: #fff;
    background-size: 100% 100%, 100% 100%, 42% 42%, 42% 42%, 42% 42%;
    background-repeat: no-repeat;
}

.market-qr-code {
    width: 150px;
    height: 150px;
}

.market-hero-side-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #17a36c, #23be82);
    color: #fff;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-weight: 700;
}

.market-social-proof {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.market-avatar-stack {
    display: flex;
    align-items: center;
}

.market-avatar-stack span {
    width: 40px;
    height: 40px;
    margin-left: -0.4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid rgba(10, 36, 95, 0.82);
    background: linear-gradient(135deg, #ffd46f, #fff0bf);
    color: #12356d;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
}

.market-avatar-stack span:first-child {
    margin-left: 0;
}

.market-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 0.8rem;
    border-radius: 24px;
}

.market-benefit-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid rgba(17, 66, 163, 0.08);
}

.market-benefit-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(17, 66, 163, 0.12), rgba(23, 163, 108, 0.18));
    color: #0f3b91;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-weight: 800;
}

.market-benefit-card h2,
.market-property-body h3,
.market-demand-card h3,
.market-submit-card h3,
.market-story-body strong,
.market-bottom-banner h2,
.market-panel h2,
.market-section-head h2 {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
}

.market-benefit-card h2 {
    font-size: 1rem;
}

.market-benefit-card p,
.market-panel p,
.market-demand-card p,
.market-submit-card p,
.market-story-body p,
.market-bottom-banner p {
    margin: 0.22rem 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #0e317a, #1142a3 65%, #17a36c);
}

.market-stat-card {
    display: grid;
    gap: 0.2rem;
    padding: 0.65rem 0.85rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.market-stat-card:first-child {
    border-left: 0;
}

.market-stat-card strong {
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: 1.65rem;
}

.market-stat-card span {
    color: rgba(235, 243, 255, 0.8);
}

.market-section,
.market-panel,
.market-bottom-banner {
    border-radius: 30px;
    padding: 1.4rem;
}

.market-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.market-section-kicker {
    margin: 0 0 0.28rem;
    color: #1d5bd1;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.market-section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    color: #10294b;
}

.market-link {
    color: #1d5bd1;
    font-size: 0.92rem;
    font-weight: 700;
}

.market-property-grid,
.market-story-grid {
    display: grid;
    gap: 1rem;
}

.market-property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-property-card {
    display: grid;
    gap: 0.75rem;
}

.market-property-link {
    display: grid;
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(17, 66, 163, 0.08);
    background: #fff;
}

.market-property-media {
    position: relative;
    min-height: 252px;
}

.market-property-media .property-thumb {
    width: 100%;
    height: 252px;
    object-fit: cover;
}

.market-property-badge,
.market-property-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.market-property-badge {
    left: 1rem;
    top: 1rem;
    background: rgba(17, 66, 163, 0.92);
    color: #fff;
}

.market-property-chip {
    right: 1rem;
    top: 1rem;
    background: rgba(255, 255, 255, 0.94);
    color: #0f3b91;
}

.market-property-body {
    padding: 1rem;
}

.market-property-meta {
    margin: 0;
    color: #1d5bd1;
    font-size: 0.84rem;
    font-weight: 700;
}

.market-property-body h3 {
    margin-top: 0.38rem;
    font-size: 1.3rem;
    color: #10294b;
}

.market-property-location {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.market-property-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.market-property-facts span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #f2f7ff;
    color: #234875;
    font-size: 0.84rem;
}

.market-property-price-row {
    margin-top: 0.95rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.market-property-price-row small {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--muted);
}

.market-property-price-row strong {
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: 1.62rem;
    color: #f09c22;
}

/* ══════════════════════════════════════════════════
   Admin Layout — clean sidebar + topbar
   ══════════════════════════════════════════════════ */
.admin-body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1e293b;
    background: #f1f5f9;
    min-height: 100vh;
}

/* ── Top bar ── */
.admin-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.25rem;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s;
}

.admin-sidebar-toggle:hover {
    background: #f1f5f9;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #0f172a;
}

.admin-brand-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f3b91, #1d5bd1);
    color: #fff;
}

.admin-brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.admin-brand-text small {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.admin-topbar-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.admin-topbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.admin-topbar-user-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
}

/* ── Sidebar ── */
.admin-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 250px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    z-index: 190;
    transition: transform 0.25s ease;
}

.admin-sidebar-nav {
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-sidebar-label {
    margin: 0.75rem 0 0.4rem;
    padding: 0 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.admin-sidebar-label:first-child {
    margin-top: 0;
}

.admin-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.admin-sidebar-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.admin-sidebar-item.is-active {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

.admin-sidebar-item.is-active .admin-sidebar-icon {
    color: #4338ca;
}

.admin-sidebar-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #94a3b8;
    transition: color 0.15s;
}

.admin-sidebar-item:hover .admin-sidebar-icon {
    color: #475569;
}

.admin-sidebar-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.6rem 0;
}

.admin-sidebar-form {
    margin: 0;
}

.admin-sidebar-logout {
    color: #dc2626;
}

.admin-sidebar-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.admin-sidebar-logout .admin-sidebar-icon {
    color: #dc2626;
}

.admin-sidebar-backdrop {
    display: none;
}

/* ── Main content ── */
.admin-main {
    margin-left: 250px;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    padding: 2rem 2.5rem;
}

/* ── Admin page elements ── */
.admin-page {
    max-width: 960px;
}

.admin-page.admin-page-wide {
    max-width: none;
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.admin-page-header h1 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.admin-page-desc {
    margin: 0.3rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.admin-back-link:hover {
    background: #e2e8f0;
}

/* ── Stat cards ── */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.admin-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.admin-stat-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.admin-stat-icon.is-blue {
    background: #eff6ff;
    color: #2563eb;
}

.admin-stat-icon.is-green {
    background: #f0fdf4;
    color: #16a34a;
}

.admin-stat-icon.is-amber {
    background: #fffbeb;
    color: #d97706;
}

.admin-stat-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

/* ── Quick actions ── */
.admin-quick-actions {
    display: flex;
    gap: 0.75rem;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.admin-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* ── Table ── */
.admin-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f8fafc;
}

.admin-table th {
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-table-empty {
    text-align: center;
    padding: 2.5rem 1rem !important;
    color: #94a3b8;
    font-size: 0.9rem;
}

.admin-id-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', monospace;
}

.admin-moderate-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-select {
    padding: 0.35rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: inherit;
    color: #334155;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}

.admin-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.admin-submit-btn {
    padding: 0.35rem 0.8rem;
    border: none;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.admin-submit-btn:hover {
    background: #1e293b;
}

.admin-submit-btn.danger {
    background: #b91c1c;
}

.admin-submit-btn.danger:hover {
    background: #991b1b;
}

.admin-banner-manager {
    margin-top: 1rem;
    padding: 1rem;
}

.admin-banner-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-banner-modal {
    position: fixed;
    inset: 0;
    z-index: 260;
}

.admin-banner-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 34, 0.5);
}

.admin-banner-modal-dialog {
    position: relative;
    width: min(860px, calc(100vw - 2rem));
    margin: 3.2rem auto;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dbe5f4;
    box-shadow: 0 26px 58px rgba(2, 12, 38, 0.32);
    padding: 1rem;
}

.admin-banner-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.admin-banner-modal-head h2 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.admin-banner-modal-x {
    width: 30px;
    height: 30px;
    border: 1px solid #d4def1;
    border-radius: 8px;
    background: #f8fbff;
    color: #28426e;
    cursor: pointer;
}

.admin-banner-modal-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.admin-banner-head h2 {
    margin: 0;
    font-size: 1.08rem;
    color: #0f172a;
}

.admin-banner-head p {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.88rem;
}

.admin-banner-form {
    margin-top: 0.9rem;
    margin-bottom: 1rem;
}

.admin-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.admin-banner-grid label,
.admin-check-row {
    display: grid;
    gap: 0.25rem;
    font-size: 0.82rem;
    color: #334155;
    font-weight: 600;
}

.admin-check-row {
    margin: 0.7rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.admin-input {
    min-height: 38px;
    border: 1px solid #dbe5f4;
    border-radius: 10px;
    padding: 0.5rem 0.68rem;
    background: #fff;
    font-family: inherit;
    font-size: 0.86rem;
    color: #0f172a;
}

.admin-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.admin-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.admin-banner-thumb {
    width: 130px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dbe5f4;
}

.admin-banner-thumb.is-mobile {
    margin-top: 0.32rem;
}

.admin-hint {
    color: #6b7280;
    font-size: 0.74rem;
}

.admin-banner-drag {
    margin-right: 0.5rem;
    min-width: 26px;
    height: 26px;
    border: 1px solid #c9d7ef;
    border-radius: 8px;
    background: #f5f9ff;
    color: #35507d;
    cursor: grab;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
}

.admin-banner-drag:active {
    cursor: grabbing;
}

.admin-table tr[data-banner-row].is-dragging {
    opacity: 0.55;
    background: #edf4ff;
}

.admin-banner-edit-row {
    background: #f8fbff;
}

.admin-banner-link {
    display: inline-block;
    margin-top: 0.22rem;
    font-size: 0.78rem;
    color: #1d4ed8;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.admin-status-chip.is-on {
    background: #dcfce7;
    color: #166534;
}

.admin-status-chip.is-off {
    background: #f1f5f9;
    color: #475569;
}

.admin-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-sidebar-toggle {
        display: flex;
    }

    .admin-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 180;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(2px);
        border: none;
        cursor: default;
    }

    .admin-main {
        margin-left: 0;
        padding: 1.5rem 1.25rem;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-topbar-user-name {
        display: none;
    }

    .admin-topbar-link span {
        display: none;
    }
}

@media (max-width: 600px) {
    .admin-page-header {
        flex-direction: column;
    }

    .admin-table-card {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 580px;
    }

    .admin-banner-grid {
        grid-template-columns: 1fr;
    }
}

.market-card-link {
    color: #17a36c;
    font-weight: 700;
}

.market-card-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.market-card-actions form {
    margin: 0;
}

.market-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(17, 66, 163, 0.12);
    background: rgba(15, 59, 145, 0.05);
    color: #10315e;
    font-weight: 700;
    cursor: pointer;
}

.market-grid-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.market-step-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: market-step;
    display: grid;
    gap: 0.8rem;
}

.market-step-list li {
    counter-increment: market-step;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 0.9rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #f9fbff, #f3f8ff);
}

.market-step-list li::before {
    content: counter(market-step);
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f3b91, #1b57c4);
    color: #fff;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.market-persona-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
}

.market-persona-item {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.65rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f4f8ff);
    text-align: center;
}

.market-persona-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 35%, #0f3b91 0 18%, transparent 18.5%),
        radial-gradient(circle at 50% 78%, #0f3b91 0 28%, transparent 28.5%),
        linear-gradient(#0f3b91, #0f3b91);
    background-size: 100% 100%, 100% 100%, 0 0;
    background-color: rgba(15, 59, 145, 0.08);
}

.market-persona-item p {
    margin: 0;
    color: #234875;
}

.market-demand-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.market-demand-card,
.market-submit-card {
    border-radius: 22px;
    border: 1px solid rgba(17, 66, 163, 0.1);
}

.market-demand-card {
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.market-demand-pin {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 50%;
    background: #0f3b91;
    box-shadow: 0 0 0 6px rgba(15, 59, 145, 0.08);
}

.market-demand-card h3 {
    margin-top: 0.85rem;
    font-size: 1.12rem;
}

.market-demand-card small {
    display: inline-block;
    margin-top: 0.8rem;
    color: #1d5bd1;
    font-size: 0.82rem;
    font-weight: 700;
}

.market-submit-card {
    padding: 1.15rem;
    background: linear-gradient(180deg, #0f3b91, #0d2f73);
    color: #eef6ff;
}

.market-submit-card h3,
.market-submit-card p {
    color: inherit;
}

.market-submit-card .btn-primary {
    margin-top: 1rem;
    width: 100%;
    background: linear-gradient(135deg, #ffffff, #f1f7ff);
    color: #0f3b91;
}

.market-story-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-story-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(17, 66, 163, 0.08);
    background: #fff;
}

.market-story-photo {
    position: relative;
    min-height: 185px;
    background-size: cover;
    background-position: var(--story-focus, center top);
}

.market-story-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 28, 64, 0.06), rgba(8, 24, 58, 0));
}

.replica-story-placard {
    position: absolute;
    left: 50%;
    bottom: 0.7rem;
    transform: translateX(-50%);
    width: 80%;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #dbe6fa;
    text-align: center;
    padding: 0.34rem 0.44rem 0.38rem;
    box-shadow: 0 8px 14px rgba(8, 36, 92, 0.12);
}

.replica-story-placard small {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    color: #0f3b91;
}

.replica-story-placard strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.1;
    color: #0c2f61;
}

.replica-story-placard p {
    margin: 0.1rem 0 0;
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 700;
    color: #0f3b91;
}

.market-story-body {
    padding: 1rem;
}

.market-story-body strong {
    display: block;
    font-size: 1.32rem;
    color: #10315e;
}

.market-story-body span {
    display: inline-block;
    margin-top: 0.8rem;
    color: #17a36c;
    font-weight: 700;
}

.market-bottom-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #0f3b91, #0f3b91 58%, #17a36c);
    color: #eef6ff;
}

.market-bottom-banner h2,
.market-bottom-banner p,
.market-bottom-banner .market-section-kicker {
    color: inherit;
}

.market-bottom-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.market-mini-qr {
    width: 82px;
    height: 82px;
    padding: 0;
}

@media (max-width: 1100px) {
    .replica-hero {
        grid-template-columns: 1fr;
    }

    .replica-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-hero,
    .market-grid-split,
    .market-demand-grid {
        grid-template-columns: 1fr;
    }

    .market-benefits,
    .market-property-grid,
    .market-story-grid,
    .market-persona-grid,
    .market-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-demand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .page-content {
        padding-top: 1rem;
    }

    .replica-hero,
    .replica-benefits {
        border-radius: 0;
    }

    .replica-benefits {
        grid-template-columns: 1fr;
    }

    .replica-hero-side h2 {
        font-size: 1.55rem;
    }

    .replica-prize-box p {
        font-size: 1.2rem;
    }

    .market-hero,
    .market-section,
    .market-panel,
    .market-bottom-banner,
    .market-benefits,
    .market-stats {
        border-radius: 24px;
    }

    .market-benefits,
    .market-property-grid,
    .market-story-grid,
    .market-persona-grid,
    .market-stats,
    .market-demand-grid {
        grid-template-columns: 1fr;
    }

    .market-section-head,
    .market-bottom-banner,
    .market-bottom-actions,
    .market-social-proof {
        align-items: flex-start;
        flex-direction: column;
    }

    .market-hero {
        padding: 1.1rem;
    }

    .market-hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.6rem);
    }

    .market-property-media,
    .market-property-media .property-thumb {
        height: 220px;
        min-height: 220px;
    }
}

.scroll-controls {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 160;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 280ms ease, transform 280ms ease;
}

.scroll-controls.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 100px;
    width: 46px;
    height: 46px;
    background: linear-gradient(145deg, var(--ts-orange), #f2dc9f);
    color: var(--ts-on-accent);
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(126, 95, 22, 0.24);
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.scroll-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(126, 95, 22, 0.32);
}

.scroll-control-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

@media (max-width: 599px) {
    body.is-nav-open {
        overflow: hidden;
    }

    .nav-wrap {
        position: relative;
        z-index: 140;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 120;
    }

    .scroll-controls {
        right: 14px;
        bottom: 14px;
    }
}

/* ── Footer ── */
.site-footer {
    background: linear-gradient(180deg, #0e317a 0%, #0a2456 100%);
    min-height: 224px;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

.footer-wrap {
    max-width: 1100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.62rem;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    color: #fff;
    margin: 0 0 0.4rem;
    min-height: 226px;
}

.footer-brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    font-size: 0.88rem;
    background: linear-gradient(135deg, #1a57c6, #16a56f);
}

.footer-brand-text {
    display: grid;
    line-height: 1.05;
}

.footer-brand-text strong {
    font-size: 1.18rem;
    font-weight: 800;
}

.footer-brand-text small {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(232, 240, 255, 0.78);
}

@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .brand-wordmark small {
        display: none;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .brand {
        gap: 0.4rem;
    }

    .brand-wordmark strong {
        font-size: 0.86rem;
    }

    .footer-brand-text small {
        display: none;
    }
}

.footer-tagline {
    margin: 0;
    line-height: 1.6;
    color: rgba(232, 240, 255, 0.84);
}

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.8rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: rgba(232, 240, 255, 0.84);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-col p {
    margin: 0 0 0.3rem;
    color: rgba(232, 240, 255, 0.82);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(232, 240, 255, 0.72);
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Home lower section replica */
.replica-flow-wrap,
.replica-demand-section,
.replica-story-section,
.replica-bottom-banner,
.replica-trust-strip {
    border: 1px solid rgba(16, 59, 145, 0.12);
    background: #fff;
    box-shadow: 0 18px 32px rgba(13, 55, 130, 0.1);
}

.replica-flow-wrap {
    border-radius: 18px;
    padding: 0.72rem;
}

.replica-flow-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.62rem;
}

.replica-flow-col {
    border: 1px solid #e0e8f8;
    border-radius: 14px;
    padding: 0.86rem 0.9rem;
    background: #fff;
}

.replica-flow-col h2 {
    margin: 0 0 0.72rem;
    text-align: center;
    font-size: clamp(1.34rem, 2.25vw, 1.9rem);
    font-weight: 800;
    color: #0d3264;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
}

.replica-step-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.replica-step-list li {
    position: relative;
    min-height: 112px;
    border-radius: 12px;
    border: 1px solid #e4edfb;
    background: #fff;
    padding: 0.56rem;
    display: grid;
    align-content: start;
    gap: 0.52rem;
}

.replica-step-list li:not(:last-child)::after {
    content: '\2192';
    position: absolute;
    right: -0.55rem;
    top: 1.8rem;
    color: #194997;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    z-index: 2;
}

.replica-step-top {
    display: flex;
    align-items: center;
    gap: 0.56rem;
}

.replica-step-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(180deg, #13469e, #0f357e);
    font-weight: 800;
    font-size: 1rem;
}

.replica-step-icon {
    width: 42px;
    height: 42px;
    color: #11408f;
    display: inline-grid;
    place-items: center;
}

.replica-step-icon svg {
    width: 100%;
    height: 100%;
}

.replica-step-text {
    color: #183f73;
    line-height: 1.25;
    font-size: 0.84rem;
    display: grid;
    gap: 0.08rem;
}

.replica-step-text strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0e3577;
}

.replica-step-text small {
    font-size: 0.88rem;
    color: #1f3f70;
}

.replica-persona-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
}

.replica-persona-chip {
    border-left: 1px solid #e5edf9;
    padding: 0.2rem 0.4rem 0.3rem;
    text-align: center;
}

.replica-persona-chip:first-child {
    border-left: 0;
}

.replica-persona-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.34rem;
    color: #123f8f;
    display: grid;
    place-items: center;
}

.replica-persona-icon svg {
    width: 100%;
    height: 100%;
}

.replica-persona-chip p {
    margin: 0;
    color: #183f73;
    line-height: 1.2;
}

.replica-persona-chip p strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #112f61;
}

.replica-persona-chip p small {
    display: block;
    font-size: 0.78rem;
}

.replica-demand-section .market-section-head {
    margin-bottom: 0.75rem;
}

.replica-demand-section .market-section-head h2,
.replica-story-section .market-section-head h2 {
    font-size: clamp(1.24rem, 2.2vw, 1.62rem);
    color: #102f62;
}

.market-demand-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.market-demand-card {
    background: linear-gradient(180deg, #fffdf8, #fff7e8);
    border-color: #efdfbb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.replica-submit-card {
    background: linear-gradient(180deg, #103b93, #0b2b6b);
}

.replica-story-shell {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 0.5rem;
    align-items: center;
}

.replica-story-viewport {
    overflow: hidden;
    min-width: 0;
}

.replica-story-shell .market-story-grid {
    display: flex;
    gap: 0.75rem;
    transition: transform 360ms ease;
    will-change: transform;
}

.replica-story-nav {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #cfddf7;
    background: linear-gradient(180deg, #ffffff, #eef4ff);
    color: #0f3b91;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.replica-story-nav:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.replica-story-nav:not(:disabled):hover {
    border-color: #b7caef;
    transform: translateY(-1px);
}

.market-story-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-story-card {
    border-radius: 14px;
    border: 1px solid #dfe9fa;
    box-shadow: 0 8px 14px rgba(14, 52, 124, 0.07);
    background: #fff;
}

.market-story-photo {
    min-height: 224px;
}

.market-story-body {
    padding: 0.72rem 0.78rem 0.74rem;
}

.market-story-body p {
    margin: 0;
}

.replica-story-quote {
    font-size: 0.88rem;
    line-height: 1.34;
    color: #102f5f;
}

.replica-story-amount {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    color: #0f315f;
}

.replica-story-amount strong {
    font-size: 1.62rem;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #0c2f63;
}

.replica-story-status {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    color: #129561;
    font-size: 0.9rem;
    font-weight: 700;
}

.replica-story-status-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
}

.replica-story-status-icon svg {
    width: 100%;
    height: 100%;
}

.replica-bottom-banner {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr 0.95fr;
    gap: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #0d3180;
    color: #fff;
    padding: 0;
}

.replica-bottom-copy,
.replica-bottom-join,
.replica-bottom-line {
    padding: 0.95rem 1rem;
}

.replica-bottom-copy {
    background: #0d3180;
}

.replica-bottom-copy h2 {
    margin: 0;
    font-size: 1.68rem;
    line-height: 1.2;
}

.replica-bottom-copy p {
    margin: 0.3rem 0 0;
    color: #f6c449;
    font-weight: 700;
}

.replica-bottom-join {
    display: grid;
    align-content: center;
    gap: 0.15rem;
    text-align: center;
    background: linear-gradient(180deg, #1aae73, #138a58);
    color: #fff;
}

.replica-bottom-join strong {
    font-size: 1.08rem;
}

.replica-bottom-join span {
    color: rgba(236, 251, 244, 0.94);
    font-size: 0.84rem;
}

.replica-bottom-line {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: center;
    background: #123d96;
}

.replica-bottom-line p {
    margin: 0;
    color: #e5f0ff;
    line-height: 1.35;
}

.replica-trust-strip {
    border-radius: 16px;
    padding: 0.55rem 0.75rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.replica-trust-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: center;
    padding: 0.3rem 0.2rem;
}

.replica-trust-icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #e7f0ff);
    color: #0f3b91;
    border: 1px solid #d2e0fb;
}

.replica-trust-icon svg {
    width: 15px;
    height: 15px;
}

.replica-trust-item p {
    margin: 0;
    font-size: 0.79rem;
    color: #1b4277;
}

/* Compact footer replica */
.site-footer {
    margin-top: 0.8rem;
    padding: 0.68rem 0;
    background: linear-gradient(90deg, #08265f, #0d3f97 62%, #0f8f5f);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-wrap {
    max-width: none;
}

.footer-topline {
    display: grid;
    grid-template-columns: 1.5fr 2fr auto;
    align-items: center;
    gap: 1rem;
}

.footer-topline p {
    margin: 0;
    color: rgba(232, 240, 255, 0.86);
    font-size: 0.82rem;
}

.footer-inline-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-inline-links a {
    color: rgba(232, 240, 255, 0.9);
    font-size: 0.82rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-social a {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

.footer-social a svg {
    width: 14px;
    height: 14px;
}

.footer-social a.is-facebook {
    background: #1d4ed8;
}

.footer-social a.is-youtube {
    background: #dc2626;
}

.footer-social a.is-tiktok {
    background: #0f172a;
}

.footer-social a.is-line {
    background: #16a34a;
}

@keyframes replicaRise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes joinPulse {
    0%,
    100% {
        box-shadow: inset 0 0 0 0 rgba(246, 196, 73, 0);
    }
    50% {
        box-shadow: inset 0 0 0 3px rgba(246, 196, 73, 0.28);
    }
}

body.motion-enter .replica-flow-wrap,
body.motion-enter .replica-demand-section,
body.motion-enter .replica-story-section,
body.motion-enter .replica-bottom-banner,
body.motion-enter .replica-trust-strip {
    animation: replicaRise 520ms ease both;
}

body.motion-enter .replica-demand-section {
    animation-delay: 90ms;
}

body.motion-enter .replica-story-section {
    animation-delay: 150ms;
}

body.motion-enter .replica-bottom-banner {
    animation-delay: 200ms;
}

.replica-bottom-join {
    animation: joinPulse 3.1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .replica-bottom-join {
        animation: none;
    }

    body.motion-enter .replica-flow-wrap,
    body.motion-enter .replica-demand-section,
    body.motion-enter .replica-story-section,
    body.motion-enter .replica-bottom-banner,
    body.motion-enter .replica-trust-strip {
        animation: none;
    }
}

@media (max-width: 980px) {
    .replica-flow-panel,
    .replica-step-list,
    .market-demand-grid,
    .replica-trust-strip,
    .replica-bottom-banner,
    .footer-topline {
        grid-template-columns: 1fr;
    }

    .replica-persona-row,
    .market-story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .replica-step-list li:not(:last-child)::after {
        content: '';
    }

    .replica-story-shell {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 0.4rem;
    }

    .footer-inline-links {
        justify-content: flex-start;
    }

    .replica-bottom-join,
    .replica-bottom-line,
    .replica-bottom-copy {
        padding: 0.86rem 0.88rem;
    }
}

@media (max-width: 640px) {
    .replica-persona-row,
    .market-story-grid {
        grid-template-columns: 1fr;
    }

    .replica-flow-col h2 {
        font-size: 1.18rem;
    }

    .replica-step-text strong {
        font-size: 0.95rem;
    }

    .replica-step-text small {
        font-size: 0.8rem;
    }

    .replica-bottom-copy h2 {
        font-size: 1.08rem;
    }

    .replica-step-list li {
        min-height: 82px;
    }

    .replica-trust-item {
        justify-content: flex-start;
    }

    .footer-topline {
        gap: 0.6rem;
    }

    .footer-topline p,
    .footer-inline-links a {
        font-size: 0.78rem;
    }
}

@media (max-width: 460px) {
    .replica-flow-wrap,
    .replica-demand-section,
    .replica-story-section,
    .replica-trust-strip {
        border-radius: 14px;
    }

    .replica-flow-col {
        padding: 0.72rem;
    }

    .replica-story-shell {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 0.34rem;
    }

    .replica-story-nav {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .replica-bottom-copy p {
        font-size: 0.85rem;
    }
}

/* Final precision pass for screenshot matching */
.market-home-replica .market-section {
    border-radius: 14px;
    padding: 0.95rem;
}

.market-home-replica .market-section-head {
    margin-bottom: 0.68rem;
    position: relative;
    justify-content: center;
    align-items: center;
}

.market-home-replica .market-section-head > div {
    text-align: center;
}

.market-home-replica .market-section-head h2 {
    font-size: 1.46rem;
    color: #0f2f64;
    line-height: 1.18;
}

.market-home-replica .market-link {
    font-size: 0.8rem;
    font-weight: 700;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.market-home-replica .replica-benefits {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.56rem;
    border-radius: 14px;
}

.market-home-replica .replica-benefit-card {
    padding: 0.5rem;
    gap: 0.44rem;
    border-radius: 10px;
    border: 1px solid #dfe8f8;
}

.market-home-replica .replica-benefit-icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
}

.market-home-replica .replica-benefit-icon svg {
    width: 16px;
    height: 16px;
}

.market-home-replica .replica-benefit-card h2 {
    font-size: 0.8rem;
}

.market-home-replica .replica-benefit-card p {
    font-size: 0.71rem;
    margin-top: 0.12rem;
}

.market-home-replica .market-stats {
    border-radius: 14px;
    padding: 0.62rem 0.72rem;
}

.market-home-replica .market-stat-card {
    padding: 0.5rem 0.62rem;
}

.market-home-replica .market-stat-card strong {
    font-size: 1.24rem;
}

.market-home-replica .market-stat-card span {
    font-size: 0.78rem;
}

.market-home-replica .market-property-grid {
    gap: 0.72rem;
}

.market-home-replica .market-property-link {
    border-radius: 14px;
}

.market-home-replica .market-property-media,
.market-home-replica .market-property-media .property-thumb {
    min-height: 178px;
    height: 178px;
}

.market-home-replica .market-property-badge,
.market-home-replica .market-property-chip {
    min-height: 26px;
    padding: 0.2rem 0.48rem;
    font-size: 0.71rem;
}

.market-home-replica .market-property-body {
    padding: 0.7rem;
}

.market-home-replica .market-property-body h3 {
    font-size: 1.02rem;
    margin-top: 0.25rem;
}

.market-home-replica .market-property-location,
.market-home-replica .market-property-facts span {
    font-size: 0.74rem;
}

.market-home-replica .market-property-price-row {
    margin-top: 0.62rem;
}

.market-home-replica .market-property-price-row strong {
    font-size: 1.18rem;
}

.market-home-replica .market-card-actions {
    gap: 0.45rem;
}

.market-home-replica .market-action-btn {
    min-height: 34px;
    font-size: 0.74rem;
    border-radius: 10px;
}

.market-home-replica .replica-flow-wrap {
    padding: 0.58rem;
    border-radius: 14px;
}

.market-home-replica .replica-flow-col {
    padding: 0.66rem;
    border-radius: 10px;
}

.market-home-replica .replica-flow-col h2 {
    font-size: 1.07rem;
    margin-bottom: 0.48rem;
}

.market-home-replica .replica-step-list li {
    min-height: 80px;
}

.market-home-replica .replica-step-list li:not(:last-child) {
    position: relative;
}

.market-home-replica .replica-step-list li:not(:last-child)::after {
    content: '\2192';
    position: absolute;
    right: -0.38rem;
    top: 50%;
    transform: translateY(-50%);
    color: #1e58c8;
    font-size: 0.9rem;
    font-weight: 700;
}

.market-home-replica .replica-persona-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.market-home-replica .replica-persona-chip p {
    font-size: 0.68rem;
}

.market-home-replica .market-demand-grid {
    gap: 0.62rem;
}

.market-home-replica .market-demand-card {
    border-radius: 10px;
    padding: 0.7rem;
}

.market-home-replica .market-demand-card h3 {
    font-size: 0.92rem;
    margin-top: 0.6rem;
}

.market-home-replica .market-demand-card p {
    font-size: 0.79rem;
    line-height: 1.35;
}

.market-home-replica .market-demand-card small {
    font-size: 0.74rem;
    margin-top: 0.56rem;
}

.market-home-replica .replica-submit-card {
    border-radius: 10px;
    padding: 0.86rem;
}

.market-home-replica .replica-submit-card .btn-primary {
    min-height: 40px;
}

.market-home-replica .replica-story-shell {
    gap: 0.4rem;
}

.market-home-replica .market-story-photo {
    min-height: 226px;
}

.market-home-replica .market-story-body {
    padding: 0.62rem;
}

.market-home-replica .replica-story-quote {
    font-size: 0.78rem;
}

.market-home-replica .replica-story-amount {
    font-size: 0.78rem;
}

.market-home-replica .replica-story-amount strong {
    font-size: 1.26rem;
}

.market-home-replica .replica-story-status {
    font-size: 0.76rem;
}

.market-home-replica .replica-story-placard {
    width: 82%;
}

.market-home-replica .replica-bottom-banner {
    border-radius: 10px;
}

.market-home-replica .replica-bottom-copy,
.market-home-replica .replica-bottom-join,
.market-home-replica .replica-bottom-line {
    padding: 0.76rem 0.84rem;
}

.market-home-replica .replica-bottom-copy h2 {
    font-size: 1.2rem;
}

.market-home-replica .replica-bottom-copy p {
    font-size: 0.92rem;
}

.market-home-replica .replica-bottom-join strong {
    font-size: 0.95rem;
}

.market-home-replica .replica-bottom-join span,
.market-home-replica .replica-bottom-line p {
    font-size: 0.74rem;
}

.market-home-replica .replica-trust-strip {
    border-radius: 10px;
    padding: 0.46rem 0.56rem;
}

.market-home-replica .replica-trust-item {
    gap: 0.32rem;
}

.market-home-replica .replica-trust-item p {
    font-size: 0.7rem;
}

.site-footer {
    padding: 0.54rem 0;
}

.footer-topline {
    gap: 0.55rem;
}

.footer-topline p,
.footer-inline-links a {
    font-size: 0.74rem;
}

.footer-inline-links {
    gap: 0.72rem;
}

.footer-social a {
    width: 24px;
    height: 24px;
}

.footer-social a svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 1100px) {
    .market-home-replica .replica-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-home-replica .replica-step-list li::after {
        display: none;
    }
}

@media (max-width: 760px) {
    .market-home-replica .market-property-grid,
    .market-home-replica .market-story-grid,
    .market-home-replica .replica-benefits,
    .market-home-replica .replica-persona-row,
    .market-home-replica .market-demand-grid,
    .market-home-replica .market-stats,
    .market-home-replica .replica-step-list {
        grid-template-columns: 1fr;
    }

    .market-home-replica .replica-story-shell {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
    }

    .market-home-replica .replica-story-nav {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .market-home-replica .replica-bottom-banner,
    .footer-topline {
        grid-template-columns: 1fr;
    }

    .market-home-replica .market-section-head {
        justify-content: space-between;
        align-items: flex-end;
    }

    .market-home-replica .market-section-head > div {
        text-align: left;
    }

    .market-home-replica .market-link {
        position: static;
        transform: none;
    }

    .market-home-replica .replica-trust-item {
        justify-content: flex-start;
    }
}

/* Precision style: featured land cards */
.market-home-replica .market-property-grid {
    gap: 0.58rem;
    align-items: stretch;
}

.market-home-replica .replica-land-card {
    display: flex;
    border: 1px solid #dde6f5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.market-home-replica .replica-land-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 0;
}

.market-home-replica .replica-land-card .market-property-media,
.market-home-replica .replica-land-card .market-property-media .property-thumb {
    min-height: 176px;
    height: 176px;
}

.market-home-replica .replica-land-card .property-thumb {
    display: block;
}

.market-home-replica .replica-land-province {
    position: absolute;
    top: 0.46rem;
    left: 0.46rem;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.52rem;
    border-radius: 999px;
    background: #14a96f;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
}

.market-home-replica .replica-land-commission {
    position: absolute;
    left: 0;
    right: auto;
    bottom: 0;
    width: 100%;
    min-height: 64px;
    padding: 0.42rem 0.6rem 0.5rem;
    background: linear-gradient(90deg, rgba(8, 40, 106, 0.96) 0%, rgba(8, 40, 106, 0.86) 28%, rgba(8, 40, 106, 0.48) 46%, rgba(8, 40, 106, 0.16) 60%, rgba(8, 40, 106, 0) 74%);
    color: #fff;
}

.market-home-replica .replica-land-commission small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.92;
}

.market-home-replica .replica-land-commission strong {
    display: block;
    margin-top: 0.08rem;
    font-size: 2.2rem;
    line-height: 0.92;
    letter-spacing: -0.02em;
    color: #f7c956;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
}

.market-home-replica .replica-land-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.6rem 0.62rem;
}

.market-home-replica .replica-land-body h3 {
    margin: 0;
    font-size: 0.98rem;
    color: #122f60;
    line-height: 1.2;
}

.market-home-replica .replica-land-facts {
    margin-top: 0.42rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.44rem 0.62rem;
}

.market-home-replica .replica-land-facts span {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    color: #445f86;
    font-size: 0.71rem;
    white-space: nowrap;
}

.market-home-replica .replica-land-facts svg {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

.market-home-replica .replica-land-bottom {
    margin-top: auto;
    padding-top: 0.44rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.market-home-replica .replica-step-list li {
    min-height: 86px;
    padding: 0.52rem;
    gap: 0.42rem;
}

.market-home-replica .replica-step-top {
    gap: 0.44rem;
}

.market-home-replica .replica-step-text strong {
    font-size: 1rem;
}

.market-home-replica .replica-step-text small {
    font-size: 0.82rem;
}

.market-home-replica .replica-land-price {
    margin: 0;
    color: #e6951e;
    font-size: 2.08rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
}

.market-home-replica .replica-land-price span {
    color: #b37a2d;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.12rem;
}

.market-home-replica .replica-land-cta {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.08rem 0.86rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #18ad74, #149360);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
}

.market-home-replica .replica-hero {
    width: 100vw;
    max-width: 100vw;
    min-height: clamp(190px, 29vw, 390px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

@media (max-width: 760px) {
    .market-home-replica .replica-hero {
        min-height: clamp(180px, 48vw, 300px);
    }

    .market-home-replica .replica-land-card .market-property-media,
    .market-home-replica .replica-land-card .market-property-media .property-thumb {
        min-height: 192px;
        height: 192px;
    }

}

@media (max-width: 430px) {
    .market-home-replica .market-section {
        padding: 0.72rem;
    }

    .market-home-replica .market-section-head h2 {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .market-home-replica .replica-step-list li {
        min-height: 78px;
        padding: 0.46rem;
    }

    .market-home-replica .replica-step-number {
        width: 28px;
        height: 28px;
        font-size: 0.88rem;
    }

    .market-home-replica .replica-step-icon {
        width: 34px;
        height: 34px;
    }

    .market-home-replica .replica-land-price {
        font-size: 1.72rem;
    }

    .market-home-replica .replica-land-cta {
        min-height: 30px;
        padding: 0.08rem 0.7rem;
        font-size: 0.68rem;
    }
}

/* Footer visual replica */
.td-footer {
    margin-top: 0.9rem;
    color: #0e2d62;
}

.td-footer-shell {
    display: grid;
    gap: 0.48rem;
}

.td-footer-cta {
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.55fr 0.82fr 0.82fr;
    box-shadow: 0 10px 24px rgba(8, 33, 86, 0.16);
}

.td-footer-cta-copy,
.td-footer-cta-action,
.td-footer-line {
    padding: 0.86rem 0.92rem;
}

.td-footer-cta-copy {
    background: linear-gradient(130deg, #052766, #0f3d99);
    color: #fff;
}

.td-footer-cta-copy h2 {
    margin: 0;
    font-size: clamp(1.02rem, 2vw, 1.5rem);
    line-height: 1.2;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
}

.td-footer-cta-copy p {
    margin: 0.25rem 0 0;
    color: #f5c755;
    font-weight: 700;
    font-size: 0.96rem;
}

.td-footer-cta-action {
    background: linear-gradient(180deg, #1bb576, #0f915d);
    color: #fff;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 0.08rem;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.td-footer-cta-action:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.td-footer-cta-action strong {
    font-size: 1.02rem;
    line-height: 1.15;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
}

.td-footer-cta-action span {
    font-size: 0.8rem;
    color: rgba(235, 255, 247, 0.94);
}

.td-footer-line {
    background: linear-gradient(125deg, #133d99, #0f2f78);
    color: #eaf2ff;
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 0.65rem;
}

.td-footer-line-qr {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.24);
}

.td-footer-line-qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.td-footer-line-copy {
    display: grid;
    line-height: 1.15;
}

.td-footer-line-copy strong {
    font-size: 0.88rem;
    color: #fff;
}

.td-footer-line-copy small {
    font-size: 0.74rem;
    color: #d2e5ff;
}

.td-footer-trust {
    border-radius: 12px;
    border: 1px solid #dce7fb;
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.3rem;
    padding: 0.45rem 0.5rem;
}

.td-footer-trust-item {
    min-height: 48px;
    padding: 0.35rem 0.3rem;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 9px;
}

.td-footer-trust-item strong {
    color: #0f3c92;
    font-size: 0.74rem;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
}

.td-footer-trust-item span {
    color: #3f5f91;
    font-size: 0.7rem;
}

.td-footer-bottom {
    margin-top: 0.48rem;
    background: linear-gradient(90deg, #031c4c, #0b3386 64%, #0f8b5c);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.td-footer-bottom-row {
    min-height: 50px;
    display: grid;
    grid-template-columns: 1.4fr 2fr auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0;
}

.td-footer-bottom-row p {
    margin: 0;
    color: rgba(231, 241, 255, 0.86);
    font-size: 0.75rem;
}

.td-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.82rem;
}

.td-footer-links a {
    color: rgba(232, 241, 255, 0.9);
    font-size: 0.74rem;
}

.td-footer-social {
    display: flex;
    align-items: center;
    gap: 0.38rem;
}

.td-footer-social a {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.td-footer-social a svg {
    width: 12px;
    height: 12px;
}

.td-footer-social a.is-facebook {
    background: #2563eb;
}

.td-footer-social a.is-youtube {
    background: #dc2626;
}

.td-footer-social a.is-tiktok {
    background: #0f172a;
}

.td-footer-social a.is-line {
    background: #16a34a;
}

@media (max-width: 980px) {
    .td-footer-cta,
    .td-footer-trust,
    .td-footer-bottom-row {
        grid-template-columns: 1fr;
    }

    .td-footer-links {
        justify-content: flex-start;
    }

    .td-footer-social {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .td-footer-cta-copy h2 {
        font-size: 1rem;
    }

    .td-footer-cta-copy p {
        font-size: 0.84rem;
    }

    .td-footer-cta-action strong {
        font-size: 0.92rem;
    }
}

/* ── Notifications ── */
.ts-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ts-notification-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.ts-notification-item.is-unread {
    border-left: 3px solid var(--accent);
    background: rgba(184, 131, 47, 0.06);
}

.ts-notification-content h3 {
    font-size: 0.95rem;
    margin: 0 0 0.25rem;
}

.ts-notification-content p {
    margin: 0 0 0.3rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.ts-notification-content time {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ── Edit images grid ── */
.ts-edit-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.ts-edit-image-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.ts-edit-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-edit-image-delete {
    position: absolute;
    top: 4px;
    right: 4px;
}

.btn-mini.danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-mini.danger:hover {
    background: #a33;
}

/* ── Danger zone ── */
.ts-danger-zone {
    border: 1px solid var(--danger);
}

.ts-danger-zone .ts-section-label {
    color: var(--danger);
}

/* ── Dashboard quick links ── */
.ts-dashboard-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.ts-dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.2rem 1.3rem;
    border-radius: 28px;
    border: 1px solid rgba(17, 66, 163, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.98));
    box-shadow: 0 18px 42px rgba(16, 49, 94, 0.08);
}

.ts-dashboard-hero .ts-page-desc {
    margin-bottom: 0;
    max-width: 700px;
}

.ts-dashboard-hero-chip {
    min-width: 210px;
    display: grid;
    gap: 0.18rem;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f3b91, #17a36c);
    color: #fff;
    box-shadow: 0 14px 32px rgba(17, 66, 163, 0.2);
}

.ts-dashboard-hero-chip strong {
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: 1.08rem;
}

.ts-dashboard-hero-chip span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
}

.ts-dashboard-menu-head {
    margin: 1.2rem 0 0.9rem;
}

.ts-dashboard-menu-head .ts-page-desc {
    margin: 0.3rem 0 0;
    max-width: 760px;
}

.ts-dashboard-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.ts-dashboard-menu-card {
    position: relative;
    display: grid;
    gap: 0.95rem;
    min-height: 196px;
    padding: 1rem;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(17, 66, 163, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98));
    box-shadow: 0 18px 36px rgba(16, 49, 94, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ts-dashboard-menu-card::before {
    content: '';
    position: absolute;
    inset: auto -18% -35% auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.ts-dashboard-menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px rgba(16, 49, 94, 0.12);
}

.ts-dashboard-menu-card.is-blue {
    background: linear-gradient(135deg, #eef4ff, #dce9ff);
}

.ts-dashboard-menu-card.is-green {
    background: linear-gradient(135deg, #ecfbf5, #d8f6e9);
}

.ts-dashboard-menu-card.is-sky {
    background: linear-gradient(135deg, #eff8ff, #ddf0ff);
}

.ts-dashboard-menu-card.is-gold {
    background: linear-gradient(135deg, #fff9eb, #fff0c6);
}

.ts-dashboard-menu-card.is-ink {
    background: linear-gradient(135deg, #eef2f9, #dce5f4);
}

.ts-dashboard-menu-badge {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    color: #10315e;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(16, 49, 94, 0.06);
}

.ts-dashboard-menu-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.3rem;
}

.ts-dashboard-menu-copy p {
    margin: 0;
    color: #1d5bd1;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-weight: 700;
}

.ts-dashboard-menu-copy h3 {
    margin: 0;
    color: #10315e;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: 1.15rem;
    line-height: 1.3;
}

.ts-dashboard-menu-copy span {
    color: #5d7395;
    line-height: 1.55;
}

.ts-dashboard-menu-arrow {
    position: relative;
    z-index: 1;
    align-self: end;
    color: #10315e;
    font-family: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}

/* ── Actions cell ── */
.ts-actions-cell {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

/* ── File input ── */
.ts-file-input {
    padding: 0.6rem;
    border: 1px dashed var(--line);
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
}

/* ── Auth alt link ── */
.auth-alt {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.88rem;
}

.auth-alt a {
    color: var(--accent);
    text-decoration: none;
}

.auth-alt a:hover {
    text-decoration: underline;
}

/* ── Alert info ── */
.alert.info {
    background: rgba(31, 79, 75, 0.08);
    border-left: 3px solid var(--accent-2);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.ts-reset-demo a {
    display: inline-block;
    margin-top: 0.5rem;
}

/* ── Inquiry title spacing ── */
.ts-inquiry-title {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

/* ── Stats grid 4 cols ── */
.stats-grid.ts-dashboard-stats {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .ts-dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .ts-dashboard-hero-chip {
        min-width: 0;
        width: 100%;
    }

    .stats-grid.ts-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ts-dashboard-menu-grid {
        grid-template-columns: 1fr;
    }
}

/* Home slider + search shell (reference style) */
.hs-hero {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 2.1rem;
    padding-bottom: 18rem;
    overflow: hidden;
}

.hs-slides {
    position: relative;
    min-height: clamp(360px, 48vw, 520px);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 28px 54px rgba(16, 49, 94, 0.18);
}

.page-content > .market-home {
    margin-top: -1.5rem;
}

.hs-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 420ms ease, transform 850ms ease;
    pointer-events: none;
}

.hs-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hs-slide-controls {
    position: absolute;
    right: 1.1rem;
    top: 1.1rem;
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}

.hs-slide-control {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(10, 30, 70, 0.44);
    color: #fff;
    cursor: pointer;
}

.hs-slide-control svg {
    width: 18px;
    height: 18px;
}

.hs-slide-copy {
    max-width: 740px;
    padding: clamp(1rem, 4vw, 2.1rem);
    color: #fff;
}

.hs-slide-chip {
    display: inline-flex;
    margin: 0;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hs-slide-copy h1 {
    margin: 0.9rem 0 0.5rem;
    font-size: clamp(2.2rem, 5vw, 3.55rem);
    line-height: 1.03;
    max-width: 720px;
}

.hs-slide-copy p {
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.12rem);
    color: rgba(242, 246, 255, 0.94);
    max-width: 620px;
}

.hs-dots {
    position: absolute;
    left: 1.25rem;
    bottom: 18.5rem;
    z-index: 5;
    display: flex;
    gap: 0.45rem;
}

.hs-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hs-dot.is-active {
    background: #ffffff;
}

.hs-search-shell {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(1240px, 94vw);
    border-radius: 16px;
    border: 1px solid #dbe4f5;
    background: #f6f8fd;
    box-shadow: 0 18px 45px rgba(16, 49, 94, 0.14);
    padding: 1.45rem;
    z-index: 6;
}

.hs-search-form {
    display: grid;
    gap: 0.8rem;
}

.hs-search-tabs {
    display: flex;
    gap: 0.6rem;
}

.hs-tab {
    border: 1px solid #cbd9ef;
    background: #fff;
    color: #2f466a;
    border-radius: 12px;
    padding: 0.58rem 1.28rem;
    font-weight: 700;
    cursor: pointer;
}

.hs-tab.is-active {
    background: linear-gradient(135deg, #0f3b91, #1a57c6);
    color: #fff;
    border-color: transparent;
}

.hs-type-chips {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.hs-chip {
    border: 1px solid #d0d9e8;
    background: #fff;
    color: #4f6280;
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.hs-chip-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hs-chip-icon svg {
    width: 16px;
    height: 16px;
}

.hs-chip.is-active {
    border-color: #0f3b91;
    color: #0f3b91;
    background: #eaf1ff;
}

.hs-fields-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.hs-fields-grid input,
.hs-fields-grid select {
    height: 52px;
    border-radius: 12px;
    border: 1px solid #d6deea;
    background: #fff;
    padding: 0 0.95rem;
    color: #1f3556;
}

.hs-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hs-field-icon {
    position: absolute;
    left: 0.85rem;
    z-index: 2;
    width: 18px;
    height: 18px;
    color: #0f3b91;
}

.hs-field-icon svg {
    width: 18px;
    height: 18px;
}

.hs-field-wrap input,
.hs-field-wrap select,
.hs-field-wrap .searchable-select {
    width: 100%;
}

.hs-field-wrap input,
.hs-field-wrap select,
.hs-field-wrap .searchable-select-input {
    padding-left: 2.45rem;
}

.hs-search-submit {
    width: 100%;
    min-height: 54px;
    border-radius: 12px;
    font-size: 1.14rem;
}

@media (max-width: 980px) {
    .hs-hero {
        padding-bottom: 21rem;
    }

    .hs-dots {
        bottom: 21.4rem;
    }

    .hs-fields-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .hs-hero {
        padding-bottom: 31rem;
    }

    .hs-slides {
        min-height: 300px;
    }

    .hs-dots {
        bottom: 31.4rem;
    }

    .hs-search-shell {
        padding: 1rem;
    }

    .hs-fields-grid {
        grid-template-columns: 1fr;
    }
}
