: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;
}

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:
        linear-gradient(160deg, rgba(26, 20, 12, 0.35) 0%, rgba(26, 20, 12, 0.12) 50%, rgba(26, 20, 12, 0.28) 100%),
        url('https://picsum.photos/seed/real-estate-tower/2200/1500'),
        url('https://picsum.photos/seed/real-estate-villa/2100/1400');
    background-size: auto, cover, 132% auto;
    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(0.84) contrast(1.04);
    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: 56px;
    line-height: 66px;
    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: 0;
    border-radius: 12px;
    background: transparent;
    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: box-shadow 220ms ease, background-color 220ms ease, color 220ms ease;
}

.lang-popup-trigger:hover,
.lang-popup-trigger.is-open {
    box-shadow: inset 0 0 0 1px rgba(214, 192, 154, 0.44);
    background: linear-gradient(180deg, #ffffff, #fdf7ea);
    color: #13386e;
}

.lang-popup-trigger:focus-visible {
    outline: 2px solid rgba(26, 87, 198, 0.32);
    outline-offset: 2px;
}

.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%
        );
}

.flag-cn {
    background:
        radial-gradient(circle at 24% 34%, #ffd449 0 11%, transparent 12%),
        #de2910;
}

.flag-tw {
    background:
        linear-gradient(to right, #012169 0 42%, transparent 42%),
        #c8102e;
}

.flag-ja {
    background:
        radial-gradient(circle at 50% 50%, #bc002d 0 33%, transparent 34%),
        #ffffff;
}

.flag-ko {
    background:
        radial-gradient(circle at 54% 47%, #d8232a 0 22%, transparent 23%),
        radial-gradient(circle at 44% 55%, #0057b8 0 22%, transparent 23%),
        #ffffff;
}

.flag-ru {
    background: linear-gradient(to bottom, #ffffff 0 33%, #224c9a 33% 66%, #d52b1e 66% 100%);
}

.flag-de {
    background: linear-gradient(to bottom, #111111 0 33%, #d21034 33% 66%, #ffcd00 66% 100%);
}

.flag-fr {
    background: linear-gradient(to right, #1d4aa8 0 33%, #ffffff 33% 66%, #e3313d 66% 100%);
}

.flag-es {
    background: linear-gradient(to bottom, #c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75% 100%);
}

.flag-ar {
    background: linear-gradient(to bottom, #007a3d 0 100%);
}

.flag-hi {
    background: linear-gradient(to bottom, #ff9933 0 33%, #ffffff 33% 66%, #138808 66% 100%);
}

.flag-ms {
    background:
        linear-gradient(to right, #012a87 0 44%, transparent 44%),
        repeating-linear-gradient(
            to bottom,
            #c00 0 13%,
            #fff 13% 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;
    min-height: 42px;
    padding: 0.2rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #10315e;
    box-shadow: none;
    cursor: pointer;
    transition: box-shadow 220ms ease, background-color 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 {
    box-shadow: inset 0 0 0 1px rgba(26, 87, 198, 0.18);
    background: linear-gradient(180deg, #ffffff, #f3f8ff);
    transform: translateY(-1px);
}

.user-popup-trigger:focus-visible {
    outline: 2px solid rgba(26, 87, 198, 0.32);
    outline-offset: 2px;
}

.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;
}

input,
select,
textarea {
    min-height: 40px;
    border: 1px solid var(--ts-gray-200);
    border-radius: 8px;
    padding: 10px 14px;
    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: 22px;
}

input:focus,
select:focus,
textarea: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(4, 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-stack {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.ts-badge-stack .ts-badge {
    position: static;
}

.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: 44px;
        line-height: 54px;
    }

    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: 34px;
        line-height: 42px;
    }

    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;
    font-size: 40px;
    line-height: 50px;
}

.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-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 32px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.ts-detail-badge-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.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: 980px;
    margin: 0 auto;
}

.ts-auth-card {
    padding: 24px;
}

.ts-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    border: 1px solid rgba(20, 164, 108, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(247, 201, 86, 0.22), rgba(247, 201, 86, 0) 34%),
        linear-gradient(155deg, #fffdf9 0%, #f7fbff 50%, #f2fff8 100%);
}

.ts-login-aside {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(15, 59, 145, 0.18);
    padding: 20px;
    color: #eff6ff;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 30%),
        linear-gradient(155deg, #0f3b91 0%, #1455b7 45%, #14a46c 100%);
}

.ts-login-kicker {
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
}

.ts-login-aside h2 {
    margin: 8px 0 6px;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    line-height: 1.1;
    color: #fff;
}

.ts-login-aside > p {
    margin: 0;
    color: rgba(236, 246, 255, 0.95);
}

.ts-login-points {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.ts-login-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 22px;
}

.ts-login-points li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f7c956;
    box-shadow: 0 0 0 4px rgba(247, 201, 86, 0.22);
    flex: 0 0 8px;
}

.ts-login-glow {
    position: absolute;
    right: -42px;
    bottom: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 201, 86, 0.4) 0%, rgba(247, 201, 86, 0) 68%);
}

.ts-login-main {
    display: grid;
    gap: 8px;
    align-content: start;
}

.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;
    font-size: 34px;
    line-height: 42px;
}

.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-auth-form input[type='email'],
.ts-auth-form input[type='password'],
.ts-auth-form input[type='text'] {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #d7e2f0;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ts-auth-form input[type='email']:focus,
.ts-auth-form input[type='password']:focus,
.ts-auth-form input[type='text']:focus {
    border-color: #2f78cc;
    box-shadow: 0 0 0 4px rgba(47, 120, 204, 0.14);
}

.ts-auth-form .ts-password-toggle {
    border-color: #d3deef;
    background: #f6f9ff;
}

.ts-auth-form .ts-password-toggle:hover {
    border-color: #95b4de;
    color: #0f3b91;
}

.ts-auth-form .auth-alt {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ts-gray-500);
}

.ts-auth-form .auth-alt a {
    color: #0f3b91;
    text-decoration: none;
    font-weight: 600;
}

.ts-auth-form .auth-alt a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .ts-login-shell {
        grid-template-columns: 1fr;
    }

    .ts-login-aside {
        min-height: 0;
    }
}

.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-ai-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ts-create-ai-control {
    display: grid;
    gap: 6px;
}

.ts-create-ai-control label {
    font-size: 12px;
    line-height: 18px;
    color: var(--ts-gray-500);
}

.ts-create-ai-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 10px;
    border-radius: 12px;
    background: #fff8ec;
    border: 1px solid #efdfbc;
}

.ts-create-ai-highlights p {
    margin: 0;
    grid-column: 1 / -1;
    font-size: 12px;
    line-height: 18px;
    color: var(--ts-gray-500);
}

.ts-create-ai-highlights label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 20px;
    color: var(--ts-charcoal);
}

.ts-create-ai-highlights input[type="checkbox"] {
    width: 15px;
    height: 15px;
}

.ts-create-description-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ts-create-description-tools .ts-create-map-hint {
    margin: 0;
}

.ts-ai-desc-btn {
    min-height: 38px;
    white-space: nowrap;
}

.ts-ai-desc-btn[disabled] {
    cursor: wait;
    opacity: 0.78;
}

@media (max-width: 999px) {
    .ts-create-ai-controls {
        grid-template-columns: 1fr;
    }

    .ts-create-ai-highlights {
        grid-template-columns: 1fr 1fr;
    }
}

.ts-create-field input,
.ts-create-field select,
.ts-create-field textarea {
    background: #fffefb;
}

.ts-create-field input,
.ts-create-field select {
    min-height: 52px;
}

.ts-price-grid[data-price-layout="single"] {
    grid-template-columns: 1fr 1fr;
}

.ts-price-grid[data-price-layout="dual"] {
    grid-template-columns: 1fr 1fr;
}

.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-map-current-btn {
    margin-top: 8px;
    width: fit-content;
    min-height: 34px;
    padding: 6px 12px;
}

.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: 34px;
        line-height: 42px;
    }
}

/* 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 {
    color: #10315e;
    letter-spacing: 0;
    font-size: 1.12rem;
}

.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-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(4, 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-badge-stack {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
}

.market-property-badge-stack .market-property-badge {
    position: static;
}

.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-article-editor-page {
    max-width: none;
    width: 100%;
}

.admin-brand-logo {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 6px;
}

.main-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 7px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.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-ai-config {
    margin: 0 0 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
}

.admin-ai-config strong {
    display: block;
    margin-bottom: 0.15rem;
}

.admin-ai-config p {
    margin: 0;
    color: #334155;
    font-size: 0.9rem;
}

.admin-ai-key-source-badge {
    margin-top: 0.55rem;
    display: inline-flex;
    align-items: center;
    padding: 0.26rem 0.6rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.admin-ai-key-source-badge.is-db {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.admin-ai-key-source-badge.is-env {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.admin-ai-key-source-badge.is-none {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fed7aa;
}

.admin-ai-key-source-help {
    margin-left: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: help;
}

.admin-ai-config.is-missing {
    border-color: #fed7aa;
    background: #fff7ed;
}

.admin-ai-stats {
    margin-bottom: 1rem;
}

.admin-settings-form {
    padding: 1.25rem;
}

.admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.admin-settings-phone-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-settings-section-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-settings-help {
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
}

.admin-settings-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0;
}

.admin-settings-logo-preview {
    margin-top: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.admin-settings-logo-preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}

.admin-settings-remove-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #334155;
    font-size: 0.88rem;
}

.admin-settings-actions {
    margin-top: 1.1rem;
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

.admin-ai-updated-at {
    margin-top: 0.65rem;
}

.admin-secondary-btn {
    background: #334155;
}

.admin-secondary-btn:hover {
    background: #1f2937;
}

.admin-key-input-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
}

.admin-key-toggle-btn {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
}

.admin-key-toggle-btn:hover {
    background: #f1f5f9;
}

.admin-banner-thumb {
    width: 120px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
}

.admin-banner-status {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.admin-banner-status.is-active {
    background: #ecfdf5;
    color: #065f46;
}

.admin-banner-status.is-inactive {
    background: #fef3c7;
    color: #92400e;
}

.admin-banner-inline-form {
    display: grid;
    gap: 0.35rem;
}

.admin-banner-inline-form input[type='text'],
.admin-banner-inline-form input[type='number'],
.admin-banner-inline-form input[type='file'],
.admin-banner-inline-form textarea,
.admin-banner-inline-form input[type='datetime-local'] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
    font-family: inherit;
}

.admin-banner-delete-form {
    margin-top: 0.4rem;
}

.admin-menu-sort-list {
    display: grid;
    gap: 0.9rem;
}

.admin-menu-card {
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.95rem;
}

.admin-menu-card.is-dragging {
    opacity: 0.55;
    border-style: dashed;
}

.admin-menu-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.admin-menu-card-header .admin-settings-section-title {
    margin: 0;
}

.admin-menu-drag-handle {
    border: 1px solid #c7d7ee;
    background: #f8fbff;
    border-radius: 8px;
    min-height: 34px;
    min-width: 40px;
    cursor: grab;
    color: #1d4f9a;
    font-size: 1rem;
}

.admin-menu-drag-handle:active {
    cursor: grabbing;
}

.admin-menu-enable-toggle {
    margin-top: 0.5rem;
}

.admin-article-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1rem;
}

.admin-article-main-col,
.admin-article-side-col {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.admin-article-side-col {
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.9rem;
}

.admin-article-actions {
    margin-top: 0.2rem;
    justify-content: stretch;
}

.admin-article-actions .admin-submit-btn {
    width: 100%;
}

.admin-article-remove-image,
.admin-article-publish-toggle {
    margin-top: 0.2rem;
}

.admin-article-delete-row {
    margin-top: 0.8rem;
    display: flex;
    justify-content: flex-end;
}

.admin-article-preview-panel {
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.9rem;
}

.admin-article-preview-panel h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
}

.admin-article-preview-body {
    border: 1px dashed #d0dcef;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0.9rem;
}

.admin-article-preview-body h4 {
    margin: 0;
    color: #0f172a;
    line-height: 1.35;
}

.admin-article-preview-excerpt {
    margin: 0.45rem 0 0.7rem;
    color: #556985;
}

.admin-article-preview-content {
    color: #1f2f45;
    line-height: 1.74;
}

.admin-article-preview-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.admin-article-template-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.35rem 0 0.6rem;
    align-items: center;
}

.admin-article-template-label {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 700;
    margin-right: 0.25rem;
}

.admin-article-template-toolbar .admin-key-toggle-btn {
    min-height: 34px;
    padding: 0.35rem 0.62rem;
}

.admin-article-template-toolbar .admin-key-toggle-btn.is-active {
    border-color: #1f5ec8;
    background: #1f5ec8;
    color: #ffffff;
    box-shadow: 0 8px 14px rgba(31, 94, 200, 0.22);
}

.admin-article-template-gallery-wrap {
    border: 1px solid #d7e3f3;
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.65rem;
    margin: 0.2rem 0 0.65rem;
}

.admin-article-template-gallery-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.55rem;
}

.admin-article-template-gallery-head strong {
    font-size: 0.86rem;
    color: #244064;
}

.admin-article-template-gallery-head small {
    color: #5f7695;
}

.admin-article-template-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.admin-article-template-card {
    border: 1px solid #c6d6ee;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.45rem;
    display: grid;
    gap: 0.42rem;
    cursor: pointer;
    text-align: left;
    min-height: 102px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-article-template-card:hover,
.admin-article-template-card:focus-visible {
    border-color: #4676bb;
    box-shadow: 0 8px 16px rgba(40, 82, 140, 0.15);
    transform: translateY(-1px);
}

.admin-article-template-card.is-active {
    border-color: #1f5ec8;
    background: linear-gradient(180deg, #f4f8ff 0%, #eaf1ff 100%);
    box-shadow: 0 10px 16px rgba(31, 94, 200, 0.2);
}

.admin-article-template-card.is-active .admin-article-template-card-title {
    color: #17458f;
}

.admin-article-template-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e3553;
    line-height: 1.25;
}

.admin-article-template-thumb {
    display: grid;
    gap: 0.25rem;
    flex: 1;
    min-height: 50px;
}

.admin-article-template-thumb span {
    border-radius: 6px;
    border: 1px solid #d6e2f1;
    background: linear-gradient(180deg, #f2f7ff 0%, #e8f0ff 100%);
}

.admin-article-template-thumb-2,
.admin-article-template-thumb-3,
.admin-article-template-thumb-4,
.admin-article-template-thumb-media {
    grid-template-columns: repeat(var(--template-cols, 2), minmax(0, 1fr));
}

.admin-article-template-thumb-2 {
    --template-cols: 2;
}

.admin-article-template-thumb-3 {
    --template-cols: 3;
}

.admin-article-template-thumb-4 {
    --template-cols: 4;
}

.admin-article-template-thumb-media {
    --template-cols: 2;
}

.admin-article-template-thumb-media .is-media {
    background: linear-gradient(165deg, #98bbe8 0%, #5d87c2 100%);
}

.admin-article-editor-form .ck-editor__editable_inline {
    min-height: 320px;
}

.admin-article-draft-tools {
    display: grid;
    gap: 0.45rem;
}

.admin-table td .admin-submit-btn {
    margin-bottom: 0.4rem;
}

.article-page {
    background: #f3f5f9;
    margin-top: -1rem;
    padding-bottom: 2.5rem;
}

.article-hero {
    background: radial-gradient(circle at 10% 0%, rgba(30, 75, 155, 0.22), transparent 42%),
        radial-gradient(circle at 90% 70%, rgba(39, 76, 153, 0.2), transparent 35%),
        linear-gradient(135deg, #222634 0%, #313849 60%, #353d4f 100%);
    padding: 4.3rem 0 5.3rem;
    color: #fff;
}

.article-hero-inner {
    text-align: center;
}

.article-hero-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.2);
    color: #9bc3ff;
    font-weight: 700;
    font-size: 0.8rem;
}

.article-hero h1 {
    margin: 0.9rem 0 0.2rem;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.article-hero p {
    margin: 0 auto;
    color: #acc5eb;
    max-width: 700px;
}

.article-search {
    margin: 2.2rem auto 0;
    width: min(780px, calc(100% - 1rem));
    background: #fff;
    border-radius: 18px;
    padding: 0.65rem;
    box-shadow: 0 16px 34px rgba(20, 38, 66, 0.24);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
}

.article-search-input-wrap {
    position: relative;
}

.article-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8ea2bf;
    display: inline-flex;
}

.article-search input {
    border: 1px solid #d5deea;
    border-radius: 12px;
    min-height: 50px;
    padding: 0 1rem 0 2.6rem;
    font-size: 1rem;
    width: 100%;
}

.article-search select {
    border: 1px solid #d5deea;
    border-radius: 12px;
    min-height: 50px;
    padding: 0 0.8rem;
    font-size: 0.95rem;
    width: 100%;
    background: #fff;
    color: #263a57;
}

.article-search button {
    border: 0;
    border-radius: 12px;
    min-height: 50px;
    padding: 0 1.15rem;
    background: #0f438f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.article-grid-wrap {
    margin-top: -2.4rem;
}

.portfolio-search {
    width: min(980px, calc(100% - 1rem));
    grid-template-columns: minmax(240px, 1fr) minmax(300px, auto) auto;
}

.portfolio-search-selects {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 0.65rem;
}

.portfolio-results-bar {
    margin-bottom: 1rem;
    display: grid;
    gap: 0.55rem;
}

.portfolio-result-count {
    margin: 0;
    color: #304866;
    font-weight: 600;
}

.portfolio-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-active-filters-label {
    color: #516b8f;
    font-size: 0.86rem;
    font-weight: 700;
}

.portfolio-filter-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.2rem 0.68rem;
    border-radius: 999px;
    background: #e9f2ff;
    color: #1f4170;
    font-size: 0.82rem;
    font-weight: 600;
}

.portfolio-clear-filters {
    color: #0f438f;
    font-weight: 700;
    text-decoration: none;
}

.portfolio-clear-filters:hover {
    text-decoration: underline;
}

.portfolio-pagination {
    margin-top: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.portfolio-pagination .pagination-page,
.portfolio-pagination .pagination-nav {
    min-width: 38px;
    text-align: center;
}

.portfolio-pagination .pagination-nav {
    font-weight: 700;
}

.portfolio-pagination .pagination-ellipsis {
    color: #6781a5;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.article-card {
    border: 1px solid #d9e1ee;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(20, 46, 88, 0.08);
}

.article-card-image-link {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: 1rem 1.05rem 1.15rem;
    display: grid;
    gap: 0.7rem;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    color: #7388a8;
    font-size: 0.85rem;
}

.article-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-card-meta-item svg {
    color: #8a9ebd;
}

.article-card h2 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.33;
}

.article-card h2 a {
    color: #1f2736;
    text-decoration: none;
}

.article-card p {
    margin: 0;
    color: #607089;
    line-height: 1.66;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-readmore {
    display: inline-flex;
    color: #0f438f;
    font-weight: 700;
    text-decoration: none;
}

.article-card-readmore:hover {
    text-decoration: underline;
}

.article-empty-state {
    padding: 1.5rem;
    border: 1px dashed #c4d3ea;
    border-radius: 16px;
    background: #f8fbff;
}

.article-detail-page {
    max-width: 1240px;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

.article-detail-back {
    display: inline-flex;
    margin-bottom: 1rem;
    color: #0f438f;
    text-decoration: none;
    font-weight: 700;
}

.article-detail-card {
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 10px 26px rgba(15, 56, 116, 0.08);
}

.article-detail-head h1 {
    margin: 0;
    line-height: 1.32;
}

.article-detail-head p {
    margin: 0.4rem 0 0;
    color: #6c809f;
}

.article-detail-image {
    margin-top: 1rem;
    width: 100%;
    max-height: 470px;
    object-fit: cover;
    border-radius: 14px;
}

.article-detail-content {
    margin-top: 1rem;
    color: #1f2f45;
    line-height: 1.8;
    white-space: normal;
}

.article-side-card {
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 10px 26px rgba(15, 56, 116, 0.08);
    position: sticky;
    top: 88px;
}

.article-side-card h2 {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
}

.article-side-empty {
    margin: 0;
    color: #5f7392;
}

.article-side-list {
    display: grid;
    gap: 0.75rem;
}

.article-side-item {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.article-side-item img {
    width: 94px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.article-side-item strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #1d2f4a;
}

.article-side-item span {
    display: inline-block;
    margin-top: 0.18rem;
    color: #7087aa;
    font-size: 0.78rem;
}

.article-side-item:hover strong {
    color: #0f438f;
}

.article-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.article-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.article-rich-content th,
.article-rich-content td {
    border: 1px solid #d5deea;
    padding: 0.55rem 0.65rem;
    text-align: left;
}

.article-rich-content blockquote {
    margin: 1rem 0;
    padding: 0.7rem 0.9rem;
    border-left: 4px solid #1f5ec8;
    background: #f5f9ff;
    border-radius: 0 8px 8px 0;
}

.article-rich-content .rw-cols,
.admin-article-preview-content .rw-cols {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0;
}

.article-rich-content .rw-cols-2,
.admin-article-preview-content .rw-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-rich-content .rw-cols-3,
.admin-article-preview-content .rw-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-rich-content .rw-cols-4,
.admin-article-preview-content .rw-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-rich-content .rw-cols-media-left,
.admin-article-preview-content .rw-cols-media-left {
    grid-template-columns: 1.2fr 1fr;
}

.article-rich-content .rw-col,
.admin-article-preview-content .rw-col {
    background: #f8fbff;
    border: 1px solid #d5deea;
    border-radius: 12px;
    padding: 0.8rem;
}

.article-rich-content .rw-media-col,
.admin-article-preview-content .rw-media-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-rich-content .rw-col img,
.admin-article-preview-content .rw-col img {
    width: 100%;
    height: auto;
}

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

    .article-side-card {
        position: static;
    }

    .article-rich-content .rw-cols-4,
    .admin-article-preview-content .rw-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-rich-content .rw-cols-media-left,
    .admin-article-preview-content .rw-cols-media-left {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .article-rich-content .rw-cols-2,
    .article-rich-content .rw-cols-3,
    .article-rich-content .rw-cols-4,
    .admin-article-preview-content .rw-cols-2,
    .admin-article-preview-content .rw-cols-3,
    .admin-article-preview-content .rw-cols-4 {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 760px) {
    .article-search {
        grid-template-columns: 1fr;
    }

    .portfolio-search-selects {
        grid-template-columns: 1fr;
    }

    .article-card h2 {
        font-size: 1.35rem;
    }

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

    .portfolio-pagination {
        justify-content: center;
    }

    .portfolio-pagination .pagination-page,
    .portfolio-pagination .pagination-ellipsis {
        display: none;
    }

    .portfolio-pagination .pagination-page.is-current {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 980px) {
    .admin-article-editor-layout {
        grid-template-columns: 1fr;
    }

    .admin-article-template-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .admin-article-template-gallery-head {
        flex-direction: column;
        align-items: flex-start;
    }

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

.admin-settings-form .ts-field label {
    margin-bottom: 0.3rem;
    color: #334155;
    font-weight: 600;
    font-size: 0.86rem;
}

.admin-settings-form input[type='text'],
.admin-settings-form input[type='file'],
.admin-settings-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.62rem 0.75rem;
    font: inherit;
    color: #0f172a;
    background: #ffffff;
}

.admin-settings-form input[type='text']:focus,
.admin-settings-form input[type='file']:focus,
.admin-settings-form textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
}

/* ── 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-settings-grid,
    .admin-settings-phone-grid {
        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;
    }
}

.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 {
    min-height: 185px;
    background:
        linear-gradient(135deg, rgba(17, 66, 163, 0.2), rgba(23, 163, 108, 0.18)),
        linear-gradient(180deg, #cfe0fb, #e8f1ff);
}

.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) {
    .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;
    }

    .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;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 190;
    display: none;
    padding: 0.5rem 0.72rem calc(0.66rem + env(safe-area-inset-bottom));
    pointer-events: none;
    background: linear-gradient(180deg, rgba(246, 242, 234, 0), rgba(246, 242, 234, 0.9));
}

.mobile-bottom-nav-inner {
    width: min(680px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.34rem;
    padding: 0.44rem;
    border-radius: 20px;
    border: 1px solid rgba(17, 66, 163, 0.14);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 251, 255, 0.92));
    box-shadow: 0 14px 28px rgba(16, 49, 94, 0.2);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.mobile-bottom-nav-inner.is-guest {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-bottom-nav-item {
    position: relative;
    min-height: 60px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    color: #3b4b66;
    padding: 0.36rem 0.16rem;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.mobile-bottom-nav-item svg {
    width: 20px;
    height: 20px;
    display: block;
}

.mobile-bottom-nav-item span {
    font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
    font-size: 0.66rem;
    line-height: 1.05;
    text-align: center;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.mobile-bottom-nav-item:hover {
    color: #0f3b91;
    transform: translateY(-1px);
}

.mobile-bottom-nav-item.is-active {
    background: linear-gradient(155deg, rgba(17, 66, 163, 0.12), rgba(23, 163, 108, 0.14));
    color: #0f3b91;
}

.mobile-bottom-nav-item.is-active::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d2a23f, #f1da95);
}

.mobile-bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
}

.mobile-bottom-nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 0.22rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8157, #e3342f);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(227, 52, 47, 0.26);
}

@media (max-width: 900px) {
    .mobile-bottom-nav {
        display: block;
    }

    .page-content {
        padding-bottom: calc(112px + env(safe-area-inset-bottom));
    }

    .site-footer {
        padding-bottom: calc(1.5rem + 90px + env(safe-area-inset-bottom));
    }

    .scroll-controls {
        bottom: calc(98px + env(safe-area-inset-bottom));
    }
}

@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;
    }
}

/* ── Footer ── */
.site-footer {
    background: linear-gradient(180deg, #0e317a 0%, #0a2456 100%);
    color: #e8f0ff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

.footer-wrap {
    max-width: 1100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
}

.footer-brand {
    font-family: 'Jost', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.4rem;
}

.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;
    }
}

/* ── 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;
}

.ts-file-upload {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed #d8c28f;
    background: linear-gradient(145deg, #fffef9, #fff8ea);
}

.ts-file-upload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ts-file-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e8d19b;
    background: #ffffff;
    color: #7c5a1f;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ts-file-upload-btn:hover {
    background: #fff4d8;
    border-color: #d8b56a;
    color: #6a4913;
}

.ts-file-upload-meta {
    margin: 0;
    color: #7a7a7a;
    font-size: 13px;
    line-height: 20px;
}

.ts-file-upload-list {
    margin: 0;
    padding-left: 18px;
    color: #55421f;
    font-size: 13px;
    line-height: 20px;
    display: grid;
    gap: 4px;
}

.ts-file-input.is-hidden {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* ── 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 {
    width: 100%;
}

.hs-field-wrap input,
.hs-field-wrap select {
    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;
    }
}

/* About page premium section */
.about-luxe {
    display: grid;
    gap: 16px;
}

.about-luxe .ts-panel {
    padding: 24px 26px;
    border-radius: 22px;
}

.about-luxe-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(236, 99, 38, 0.2);
    background:
        radial-gradient(circle at 0% 0%, rgba(236, 99, 38, 0.22), rgba(236, 99, 38, 0) 40%),
        radial-gradient(circle at 100% 8%, rgba(15, 59, 145, 0.2), rgba(15, 59, 145, 0) 48%),
        linear-gradient(165deg, #fffefb, #fff2de);
}

.about-luxe-hero::after {
    content: '';
    position: absolute;
    inset: auto -120px -120px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 164, 108, 0.22), rgba(20, 164, 108, 0));
    pointer-events: none;
}

.about-luxe-hero > * {
    position: relative;
    z-index: 1;
}

.about-luxe-kicker {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #9a6b20;
}

.about-luxe-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(34px, 4.8vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.about-luxe-lead {
    margin: 0;
    max-width: 880px;
    color: #4d3a1f;
    font-size: 18px;
    line-height: 29px;
}

.about-luxe-chip-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-luxe-chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(236, 99, 38, 0.26);
    background: rgba(255, 255, 255, 0.84);
    color: #664714;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}

.about-luxe-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 12px;
}

.about-luxe-services {
    display: grid;
    gap: 10px;
}

.about-luxe-services > header {
    padding: 0 2px;
}

.about-luxe-story h2,
.about-luxe-services h2,
.about-luxe-contact h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3.5vw, 34px);
    line-height: 1.2;
}

.about-luxe-story p,
.about-luxe-service-card p,
.about-luxe-vision p,
.about-luxe-mission p,
.about-luxe-contact p,
.about-luxe-highlights li {
    margin: 0;
    color: #4c5568;
    line-height: 1.78;
}

.about-luxe-story p + p {
    margin-top: 10px;
}

.about-luxe-highlights ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.about-luxe-highlights h3,
.about-luxe-service-card h3,
.about-luxe-vision h3,
.about-luxe-mission h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.35;
}

.about-luxe-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.about-luxe-service-card {
    border: 1px solid rgba(236, 99, 38, 0.16);
    background:
        radial-gradient(circle at 100% 0%, rgba(247, 201, 86, 0.18), rgba(247, 201, 86, 0) 44%),
        linear-gradient(180deg, #ffffff, #fffdfa);
}

.about-luxe-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-luxe-vision,
.about-luxe-mission {
    border: 1px solid rgba(15, 59, 145, 0.12);
    background: linear-gradient(170deg, #ffffff, #f6faff);
}

.about-luxe-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    border: 1px solid rgba(20, 164, 108, 0.2);
    background:
        radial-gradient(circle at 100% 0%, rgba(20, 164, 108, 0.15), rgba(20, 164, 108, 0) 46%),
        linear-gradient(165deg, #ffffff, #f3fffa);
}

.about-luxe-contact-meta {
    display: grid;
    gap: 6px;
}

.about-luxe-contact-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.about-luxe > * {
    animation: aboutLuxeRise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about-luxe > *:nth-child(2) {
    animation-delay: 80ms;
}

.about-luxe > *:nth-child(3) {
    animation-delay: 150ms;
}

.about-luxe > *:nth-child(4) {
    animation-delay: 220ms;
}

.about-luxe > *:nth-child(5) {
    animation-delay: 290ms;
}

@keyframes aboutLuxeRise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-luxe > * {
        animation: none;
    }
}

@media (max-width: 999px) {
    .about-luxe-grid,
    .about-luxe-mission-grid,
    .about-luxe-contact {
        grid-template-columns: 1fr;
    }

    .about-luxe-service-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .about-luxe .ts-panel {
        padding: 20px;
    }

    .about-luxe-lead {
        font-size: 16px;
        line-height: 26px;
    }

    .about-luxe-service-grid {
        grid-template-columns: 1fr;
    }
}

.pm-page {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 0;
    border: 1px solid rgba(17, 66, 163, 0.12);
    border-radius: 20px;
    overflow: hidden;
    min-height: calc(100vh - 170px);
    height: calc(100vh - 170px);
    background: #fff;
    box-shadow: 0 24px 48px rgba(17, 66, 163, 0.12);
}

.page-content-wide {
    width: min(1560px, 98vw);
    margin: 0 auto;
}

.pm-sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(17, 66, 163, 0.1);
    background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.pm-filter-form {
    padding: 14px;
    border-bottom: 1px solid rgba(17, 66, 163, 0.1);
    display: grid;
    gap: 10px;
}

.pm-grid {
    display: grid;
    gap: 8px;
}

.pm-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.pm-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pm-tab {
    border: 1px solid rgba(17, 66, 163, 0.18);
    background: #fff;
    color: #244270;
    border-radius: 12px;
    font-weight: 600;
    min-height: 44px;
    cursor: pointer;
}

.pm-tab.is-active {
    background: linear-gradient(135deg, #0f3b91, #1a57c6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(17, 66, 163, 0.28);
}

.pm-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(17, 66, 163, 0.16);
    border-radius: 12px;
    background: #fff;
    color: #1f3c66;
    padding: 0.55rem 0.7rem;
}

.pm-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(17, 66, 163, 0.16);
    border-radius: 12px;
    background: #fff;
    color: #1f3c66;
    padding: 0.55rem 0.7rem;
}

.pm-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.pm-reset-btn {
    border: 1px solid rgba(17, 66, 163, 0.18);
    background: #fff;
    color: #1f3c66;
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.pm-reset-btn:hover {
    background: #f1f6ff;
}

.pm-density-toggle {
    display: inline-flex;
    gap: 8px;
}

.pm-density-btn {
    border: 1px solid rgba(17, 66, 163, 0.18);
    background: #fff;
    color: #1f3c66;
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.pm-density-btn.is-active {
    background: linear-gradient(135deg, #0f3b91, #1a57c6);
    border-color: transparent;
    color: #fff;
}

.pm-list-head {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(17, 66, 163, 0.1);
    color: #29466f;
}

.pm-list-head strong {
    font-size: 1.2rem;
    line-height: 1;
}

.pm-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable both-edges;
    padding: 10px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.pm-item {
    border: 1px solid rgba(17, 66, 163, 0.14);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.pm-item.is-map-hover {
    border-color: rgba(15, 59, 145, 0.52);
    box-shadow: 0 8px 20px rgba(15, 59, 145, 0.2);
}

.pm-item-btn {
    width: 100%;
    text-align: left;
    border: 0;
    padding: 12px;
    background: #fff;
    cursor: pointer;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.pm-item-body {
    display: grid;
    gap: 5px;
}

.pm-item-media {
    border-radius: 10px;
    overflow: hidden;
    min-height: 92px;
    background: #e9f1ff;
}

.pm-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-item-btn h3 {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.4;
    color: #12325f;
}

.pm-item-btn p {
    margin: 0;
    color: #56729a;
    font-size: 0.84rem;
}

.pm-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: #365888;
    font-size: 0.82rem;
}

.pm-item-code {
    color: #56729a;
}

.pm-item-link {
    display: inline-flex;
    margin: 0 12px 12px;
    font-size: 0.82rem;
    color: #1b58c2;
    font-weight: 600;
    text-decoration: none;
}

.pm-item-link:hover {
    text-decoration: underline;
}

.pm-list.is-compact {
    gap: 8px;
}

.pm-list.is-compact .pm-item-btn {
    grid-template-columns: 84px minmax(0, 1fr);
    padding: 9px;
    gap: 8px;
}

.pm-list.is-compact .pm-item-media {
    min-height: 68px;
}

.pm-list.is-compact .pm-item-btn h3 {
    font-size: 0.9rem;
    line-height: 1.3;
}

.pm-list.is-compact .pm-item-btn p,
.pm-list.is-compact .pm-item-meta,
.pm-list.is-compact .pm-item-code,
.pm-list.is-compact .pm-item-link {
    font-size: 0.78rem;
}

.pm-empty {
    margin: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed rgba(17, 66, 163, 0.24);
    color: #34547f;
    background: rgba(255, 255, 255, 0.78);
}

.pm-map-wrap {
    min-height: 0;
}

.pm-map {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 170px);
}

.pm-popup {
    display: grid;
    gap: 4px;
}

.pm-popup strong {
    color: #12325f;
}

.pm-popup a {
    color: #1b58c2;
    font-weight: 600;
    text-decoration: none;
}

.pm-popup a:hover {
    text-decoration: underline;
}

@media (max-width: 999px) {
    .pm-page {
        grid-template-columns: 1fr;
        min-height: auto;
        height: auto;
    }

    .pm-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(17, 66, 163, 0.1);
    }

    .pm-map {
        min-height: 62vh;
    }

    .pm-list {
        max-height: min(56vh, 680px);
    }
}

@media (max-width: 680px) {
    .pm-tabs {
        grid-template-columns: 1fr;
    }

    .pm-grid-2,
    .pm-grid-3 {
        grid-template-columns: 1fr;
    }

    .pm-actions {
        grid-template-columns: 1fr;
    }

    .pm-density-toggle {
        width: 100%;
    }

    .pm-density-btn {
        flex: 1;
    }

    .pm-item-btn {
        grid-template-columns: 1fr;
    }

    .pm-item-media {
        min-height: 150px;
    }
}

.ts-badge-custom.is-new,
.market-property-badge.is-new,
.ts-detail-badge.is-new {
    background: linear-gradient(135deg, #0f3b91, #1f5fd0);
    color: #fff;
}

.ts-badge-custom.is-hot-deal,
.market-property-badge.is-hot-deal,
.ts-detail-badge.is-hot-deal {
    background: linear-gradient(135deg, #e5512e, #ff8a34);
    color: #fff;
}

.ts-badge-custom.is-popular,
.market-property-badge.is-popular,
.ts-detail-badge.is-popular {
    background: linear-gradient(135deg, #7d3cea, #5d4de8);
    color: #fff;
}

.ts-badge-custom.is-recommended,
.market-property-badge.is-recommended,
.ts-detail-badge.is-recommended {
    background: linear-gradient(135deg, #11805c, #20a56f);
    color: #fff;
}

.ts-badge-pick-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.ts-badge-pick-item {
    position: relative;
    min-height: 40px;
    border: 1px solid #d9deea;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.ts-badge-pick-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ts-badge-pick-item span {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #3a4d6c;
    font-size: 13px;
    font-weight: 700;
}

.ts-badge-pick-item input:checked + span {
    color: #0f3b91;
    background: linear-gradient(140deg, #ecf2ff, #e8f7ff);
    box-shadow: inset 0 0 0 1px rgba(15, 59, 145, 0.15);
}

.ts-badge-pick-item input:focus-visible + span {
    outline: 2px solid #0f3b91;
    outline-offset: -2px;
}

.ts-filter-form .ts-field-badges {
    grid-column: 1 / -1;
}

@media (max-width: 999px) {
    .ts-badge-pick-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .ts-badge-pick-grid {
        grid-template-columns: 1fr;
    }
}
