:root {
    --brand-red: #C62839;
    --brand-green: #2FA86B;
    --charcoal: #222222;
    --warm-white: #FAF8F5;
    --soft-gray: #F2F2F2;
    --light-border: #E6E6E6;
    --muted-text: #666666;
    --white: #FFFFFF;
    --soft-red: #FFF1F2;
    --soft-green: #ECF8F1;
    --shadow-soft: 0 18px 42px rgba(34, 34, 34, 0.08);
    --shadow-card: 0 10px 28px rgba(34, 34, 34, 0.07);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--warm-white);
    color: var(--charcoal);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
select,
input,
textarea {
    font: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header .container {
    width: min(1280px, calc(100% - 48px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 245, 0.94);
    border-bottom: 1px solid rgba(230, 230, 230, 0.88);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-width: 112px;
}

.brand-logo img {
    display: block;
    width: auto;
    height: 86px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 1 1 620px;
    min-width: 0;
    color: var(--charcoal);
    font-size: 24px;
    font-weight: 700;
}

.nav a {
    position: relative;
    padding: 32px 0 28px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
}

.nav a:hover,
.nav a.is-active {
    color: var(--brand-red);
}

.nav a.is-active::after {
    background: var(--brand-red);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.button,
.select-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--light-border);
    border-radius: 999px;
    background: var(--white);
    color: var(--charcoal);
    font-weight: 800;
    cursor: pointer;
}

.button-primary {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--white);
    border-radius: var(--radius);
    min-width: 116px;
}

.button-outline {
    color: var(--brand-red);
    border-color: rgba(198, 40, 57, 0.48);
}

.header-cta {
    min-height: 56px;
    padding: 0 24px;
    border-color: rgba(47, 168, 107, 0.45);
    color: var(--brand-green);
    font-size: 20px;
    white-space: nowrap;
}

.header-cta-primary {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--white);
}

.button-green {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--white);
    border-radius: 999px;
}

.button:hover {
    transform: translateY(-1px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(47, 168, 107, 0.38);
    outline-offset: 3px;
}

.icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.home-icon-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero {
    position: relative;
    padding: 30px 0 42px;
    background: var(--warm-white);
}

.hero::after {
    content: none;
}

.hero-media {
    position: relative;
    min-height: 408px;
    overflow: hidden;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(250, 248, 245, 0.96) 0%, rgba(250, 248, 245, 0.72) 34%, rgba(250, 248, 245, 0.16) 68%, rgba(250, 248, 245, 0) 100%);
    pointer-events: none;
}

.hero-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: block;
}

.hero-side {
    position: absolute;
    top: 50%;
    left: 34px;
    right: auto;
    transform: translateY(-50%);
    z-index: 4;
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    width: min(620px, 47%);
    max-width: calc(100% - 68px);
}

.hero-side h1 {
    display: grid;
    gap: 4px;
    margin: 0;
    font-size: clamp(26px, 2vw, 32px);
    line-height: 1.12;
    letter-spacing: 0;
}

.hero-title-main,
.hero-title-emphasis {
    display: block;
}

.hero-title-main {
    color: var(--charcoal);
    white-space: nowrap;
}

.hero-title-emphasis {
    color: var(--brand-red);
}

.hero-summary {
    margin: 0;
    color: var(--muted-text);
    font-size: 17px;
    line-height: 1.55;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
    max-width: none;
}

.trust-point {
    position: relative;
    display: grid;
    place-items: center;
    gap: 6px;
    aspect-ratio: 1 / 1;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(230, 230, 230, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(34, 34, 34, 0.05);
    overflow: hidden;
}

.trust-point::before {
    content: "";
    position: absolute;
    inset: auto 12px 8px;
    height: 3px;
    width: auto;
    border-radius: 999px;
    background: var(--brand-red);
    opacity: 0.92;
}

.trust-point:nth-child(2)::before {
    background: var(--brand-green);
}

.trust-point .icon,
.trust-point .trust-icon {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 50%;
    background: rgba(198, 40, 57, 0.08);
    color: var(--brand-red);
}

.trust-point:nth-child(2) .icon,
.trust-point:nth-child(2) .trust-icon {
    background: rgba(47, 168, 107, 0.1);
    color: var(--brand-green);
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.trust-icon .home-icon-image {
    width: 100%;
    height: 100%;
}

.trust-point .icon path {
    stroke: currentColor !important;
}

.trust-point h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

.trust-point p {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.search-panel {
    position: relative;
    z-index: 3;
    margin: -78px auto 0;
    max-width: 760px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.hero-search {
    position: absolute;
    top: 50%;
    right: 24px;
    bottom: auto;
    left: auto;
    width: min(590px, 53%);
    transform: translateY(-50%);
    margin: 0;
    max-width: none;
    padding: 12px 14px;
    align-self: start;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    z-index: 3;
}

.search-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-width: 260px;
    margin: 0 auto 8px;
    padding: 4px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: #F7F8FA;
}

.search-mode-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--charcoal);
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.search-mode-tab.is-active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--white);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.field {
    min-width: 0;
}

.field span,
.field label,
.filter-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--charcoal);
    font-size: 14px;
    font-weight: 800;
}

.field select,
.field input,
.filter-field select,
.filter-field input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--muted-text);
    padding: 0 14px;
}

.field textarea {
    width: 100%;
    min-height: 150px;
    padding: 14px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--muted-text);
    line-height: 1.7;
    resize: vertical;
}

.field input::placeholder {
    color: var(--muted-text);
}

.search-submit {
    grid-column: span 2;
    min-height: 54px;
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 16px;
}

.hero-search .search-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 10px;
}

.hero-search .search-keyword {
    grid-column: 1 / -1;
}

.hero-search .field:not(.search-keyword) {
    grid-column: span 2;
}

.hero-search .search-submit {
    grid-column: 2;
    justify-self: stretch;
    min-height: 42px;
    margin-top: 0;
    font-size: 15px;
}

.hero-search .search-action-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 220px);
    gap: 14px;
    align-items: center;
    margin-top: 2px;
}

.hero-search .field span {
    margin-bottom: 4px;
    font-size: 12px;
}

.hero-search .field select,
.hero-search .field input {
    height: 40px;
    padding: 0 10px;
    font-size: 13px;
}

.search-secondary {
    display: inline-flex;
    grid-column: 1;
    gap: 4px;
    align-items: center;
    align-self: center;
    margin-top: 0;
    color: var(--brand-green);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    text-align: left;
    justify-self: start;
    white-space: nowrap;
}

.search-secondary span {
    display: inline;
}

.search-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--muted-text);
    font-size: 14px;
}

.form-shell {
    max-width: 900px;
}

.form-panel {
    padding: 26px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

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

.field > span {
    display: block;
    margin-bottom: 8px;
    color: var(--charcoal);
    font-size: 14px;
    font-weight: 800;
}

.form-wide {
    grid-column: 1 / -1;
}

.form-note {
    margin: 12px 0 0;
    color: var(--muted-text);
}

.submit-main {
    min-height: 60vh;
}

.submit-hero {
    padding-bottom: 28px;
}

.submit-hero-centered .container {
    text-align: center;
}

.submit-hero-centered .container > p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
}

.submit-hero-centered .submit-hero-points {
    justify-content: center;
}

.submit-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.submit-hero-points span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(47, 168, 107, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--brand-green);
    font-size: 14px;
    font-weight: 900;
}

.submit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 24px;
    align-items: start;
    padding-bottom: 42px;
}

.submit-layout-single {
    grid-template-columns: minmax(0, 900px);
    justify-content: center;
}

.submit-layout-single .submit-form-column {
    width: 100%;
}

.submit-form-column {
    min-width: 0;
}

.submit-form {
    display: grid;
    gap: 22px;
}

.form-section {
    display: grid;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--light-border);
}

.form-section:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-step {
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--soft-green);
    color: var(--brand-green);
    font-size: 13px;
    font-weight: 900;
}

.form-section .section-title {
    margin: 0;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.22;
}

.form-section-head p {
    margin: 6px 0 0;
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.7;
}

.submit-form .form-grid {
    margin: 0;
}

.submit-form-single .form-grid {
    grid-template-columns: 1fr;
}

.contact-single-row {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: 14px;
    align-items: end;
    grid-column: 1 / -1;
}

.contact-single-row .field {
    min-width: 0;
}

.submit-form .button-primary {
    justify-self: start;
    min-width: 168px;
}

.submit-side-panel {
    display: grid;
    gap: 16px;
}

.submit-side-panel h2 {
    margin-bottom: 0;
}

.submit-side-panel > p {
    margin: 0;
}

.submit-process-list {
    display: grid;
    gap: 12px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: submit-step;
}

.submit-process-list li {
    counter-increment: submit-step;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.submit-process-list li::before {
    content: counter(submit-step, decimal-leading-zero);
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--soft-red);
    color: var(--brand-red);
    font-size: 12px;
    font-weight: 900;
}

.submit-process-list strong,
.submit-process-list span {
    display: block;
}

.submit-process-list strong {
    color: var(--charcoal);
    font-size: 15px;
    line-height: 1.3;
}

.submit-process-list span {
    margin-top: 3px;
    color: var(--muted-text);
    font-size: 13px;
    line-height: 1.55;
}

.section {
    padding: 56px 0;
}

.home-property-section {
    padding: 34px 0;
}

.home-property-section .section-head {
    margin-bottom: 18px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-title {
    margin: 0;
    font-size: 27px;
    line-height: 1.25;
}

.section-lead {
    margin: 7px 0 0;
    color: var(--muted-text);
}

.home-main .section {
    padding: 34px 0;
}

.home-main .home-property-section {
    padding: 20px 0;
}

.home-main .section-head {
    margin-bottom: 13px;
}

.home-main .home-property-section .section-head {
    margin-bottom: 11px;
}

.home-main .section-lead {
    margin-top: 4px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-green);
    font-weight: 900;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.category-card,
.quick-entry-card,
.property-card,
.featured-property-card,
.guide-article-card,
.article-card,
.contact-bar,
.feature-band,
.detail-panel,
.side-panel {
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.category-card {
    position: relative;
    min-height: 228px;
    overflow: hidden;
}

.quick-entry-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 14px;
    color: var(--charcoal);
    overflow: hidden;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.quick-entry-card:hover {
    border-color: rgba(47, 168, 107, 0.42);
    background: var(--soft-green);
}

.quick-entry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(47, 168, 107, 0.24);
    border-radius: 50%;
    background: var(--soft-green);
    color: var(--brand-green);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
}

.quick-entry-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-entry-icon .home-icon-image {
    width: 28px;
    height: 28px;
}

.quick-entry-icon-red {
    border-color: rgba(198, 40, 57, 0.22);
    background: var(--soft-red);
    color: var(--brand-red);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 228px;
    object-fit: cover;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.72) 100%);
}

.category-copy {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: var(--white);
}

.quick-entry-copy {
    min-width: 0;
}

.category-copy h3 {
    margin: 0 0 4px;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.2;
}

.quick-entry-copy h3 {
    margin: 0 0 3px;
    font-size: 16px;
    line-height: 1.2;
}

.category-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.quick-entry-copy p {
    margin: 0;
    color: var(--muted-text);
    font-size: 13px;
    line-height: 1.35;
}

.featured-property-grid,
.guide-article-grid {
    display: grid;
    gap: 18px;
}

.featured-property-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-property-card {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 62%) minmax(0, 38%);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.featured-property-card > a:first-child {
    display: block;
    min-height: 0;
}

.featured-property-card::after {
    content: none;
}

.featured-property-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.guide-article-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.guide-article-card p {
    margin: 0;
    color: var(--muted-text);
}

.card-cta,
.guide-article-card a {
    color: var(--brand-green);
    font-weight: 900;
}

.guide-article-card {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 156px;
    padding: 18px;
}

.guide-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 22px;
}

.guide-category {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--charcoal);
    font-weight: 900;
    white-space: nowrap;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.guide-category:hover {
    border-color: rgba(47, 168, 107, 0.42);
    background: #fbfefd;
    color: var(--brand-green);
}

.guide-category-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 999px;
    background: rgba(47, 168, 107, 0.1);
    color: var(--brand-green);
    overflow: hidden;
}

.guide-category:nth-child(1) .guide-category-icon,
.guide-category:nth-child(3) .guide-category-icon {
    background: rgba(198, 40, 57, 0.1);
    color: var(--brand-red);
}

.guide-category-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guide-category-icon .home-icon-image {
    width: 20px;
    height: 20px;
}

.guide-article-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rentbkk-article-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.rentbkk-article-card {
    aspect-ratio: 1 / 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.rentbkk-article-card-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: var(--white);
    overflow: hidden;
}

.rentbkk-article-card-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 56%;
    content: '';
    background: linear-gradient(transparent, rgba(20, 26, 24, 0.84));
    pointer-events: none;
}

.rentbkk-article-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.rentbkk-article-card h3 {
    position: absolute;
    right: 16px;
    bottom: 14px;
    left: 16px;
    z-index: 1;
    margin: 0;
    color: inherit;
    font-size: 17px;
    line-height: 1.4;
}

.rentbkk-article-card-link:hover,
.rentbkk-article-card-link:focus-visible {
    color: var(--white);
}

.rentbkk-article-card-link:hover img,
.rentbkk-article-card-link:focus-visible img {
    transform: scale(1.04);
}

.guide-article-card {
    aspect-ratio: 1 / 1;
    min-height: 0;
    overflow: hidden;
}

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

.feature-band {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    overflow: hidden;
    min-height: 250px;
}

.feature-band.red-tint {
    background: linear-gradient(90deg, var(--soft-red), var(--white));
}

.feature-band.green-tint {
    background: linear-gradient(90deg, var(--soft-green), var(--white));
}

.feature-copy {
    padding: 32px;
}

.feature-copy h3 {
    margin: 0 0 12px;
    font-size: 28px;
}

.feature-copy .green {
    color: var(--brand-green);
}

.feature-copy .red {
    color: var(--brand-red);
}

.check-list {
    display: grid;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    color: var(--charcoal);
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.feature-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.guide-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 11px;
}

.guide-list-section {
    padding-top: 34px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.article-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 130px;
    overflow: hidden;
}

.guide-grid .article-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 0.9fr) minmax(0, 1.1fr);
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.article-copy {
    padding: 18px;
}

.guide-grid .article-copy {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 0;
    padding: 14px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 9px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--soft-red);
    color: var(--brand-red);
    font-size: 12px;
    font-weight: 900;
}

.article-copy h3,
.property-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.article-copy a {
    display: inline-flex;
    margin-top: 14px;
    color: var(--brand-green);
    font-weight: 900;
}

.guide-grid .article-copy a {
    margin-top: auto;
}

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

.guide-grid .article-card img {
    order: -1;
    min-height: 0;
}

.contact-bar {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 14px;
    align-items: center;
    padding: 26px 30px;
    background: rgba(255, 255, 255, 0.86);
}

.contact-title h2 {
    margin: 0;
    font-size: 27px;
}

.contact-title p,
.contact-item p {
    margin: 4px 0 0;
    color: var(--muted-text);
    font-size: 14px;
}

.contact-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: center;
}

.site-footer {
    margin-top: 40px;
    background:
        linear-gradient(135deg, rgba(34, 34, 34, 0.08), transparent 48%),
        var(--brand-green);
    color: var(--white);
    border-top: 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(200px, 0.95fr) minmax(170px, 0.75fr) minmax(210px, 0.9fr);
    gap: 32px;
    align-items: start;
    padding: 38px 0 26px;
}

.footer-inner-wide {
    grid-template-columns: minmax(220px, 1.2fr) minmax(200px, 0.95fr) minmax(170px, 0.75fr) minmax(210px, 0.9fr);
}

.footer-brand h2,
.footer-col h3 {
    margin: 0 0 14px;
    color: var(--white);
    line-height: 1.25;
}

.footer-brand h2 {
    font-size: 24px;
    font-weight: 900;
}

.footer-brand p,
.footer-contact-list p,
.footer-contact-list a,
.footer-mini-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.footer-brand p {
    max-width: 310px;
    margin: 0 0 14px;
    line-height: 1.9;
}

.footer-col h3 {
    font-size: 15px;
    font-weight: 900;
}

.footer-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.footer-mini-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.footer-contact-list {
    display: grid;
    gap: 8px;
}

.footer-contact-list p {
    margin: 0;
    line-height: 1.55;
}

.footer-contact-list strong {
    display: inline-block;
    min-width: 68px;
    color: var(--white);
}

.footer-qr-card {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-qr-card img {
    width: 120px;
    height: 120px;
    padding: 8px;
    border-radius: 8px;
    background: var(--white);
}

.footer-share-lead {
    margin: -4px 0 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.footer-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    gap: 12px;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.footer-social-icon {
    position: relative;
    overflow: hidden;
}

.footer-social-icon img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-social-icon span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.footer-social:hover,
.footer-social:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.72);
}

.footer-social-line {
    background: #20c664;
}

.footer-social-facebook {
    background: #1877f2;
}

.footer-social-youtube {
    background: #ff0033;
}

.footer-social-tiktok {
    background: #111111;
}

.footer-social-red {
    background: #d12b3f;
}

.footer-social-wechat-official {
    background: #2fa86b;
}

.footer-social-disabled {
    opacity: 0.42;
    filter: grayscale(1);
    pointer-events: none;
    cursor: default;
}

/* RentBKK CMS polish: footer media, dynamic forms, and property detail amenities. */
.rentbkk-wp-form-embed {
    width: min(100%, 920px);
    margin: 0 auto;
}

.rentbkk-form {
    display: grid;
    gap: 24px;
}

.rentbkk-form-section {
    padding: 24px;
    border: 1px solid rgba(221, 214, 205, 0.86);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 40px rgba(25, 24, 23, 0.08);
}

.rentbkk-form-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rentbkk-form-section label,
.rentbkk-form-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.rentbkk-form-section label span,
.rentbkk-form-field span {
    color: var(--charcoal);
    font-size: 14px;
    font-weight: 800;
}

.rentbkk-form-section input,
.rentbkk-form-section select,
.rentbkk-form-section textarea,
.rentbkk-form-field input,
.rentbkk-form-field select,
.rentbkk-form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(221, 214, 205, 0.96);
    border-radius: 8px;
    background: #fff;
    color: var(--charcoal);
    font: inherit;
}

.rentbkk-form-section textarea,
.rentbkk-form-field textarea {
    min-height: 124px;
    resize: vertical;
}

.rentbkk-form-wide,
.rentbkk-form-section {
    grid-column: 1 / -1;
}

.rentbkk-contact-single-row {
    display: grid;
    grid-template-columns: minmax(160px, 230px) minmax(0, 1fr);
    gap: 16px;
    align-items: end;
}

.rentbkk-upload,
.rentbkk-form input[type="file"] {
    padding: 16px;
    border: 1px dashed rgba(47, 168, 107, 0.44);
    border-radius: 8px;
    background: rgba(47, 168, 107, 0.06);
}

.rentbkk-form-help {
    margin: 0;
    color: var(--muted-text);
    text-align: center;
}

.rentbkk-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    min-width: min(360px, 100%);
    margin: 4px auto 0;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-green);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(47, 168, 107, 0.2);
}

.rentbkk-owner-form .rentbkk-button-primary {
    background: var(--brand-red);
    box-shadow: 0 16px 32px rgba(198, 40, 57, 0.18);
}

.amenity-group {
    display: grid;
    gap: 14px;
    min-width: 0;
    margin-top: 16px;
    padding: 20px;
    border: 1px solid rgba(221, 214, 205, 0.86);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
}

.amenity-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.amenity-title-row .amenity-title {
    margin: 0;
}

.project-review-button {
    min-width: 132px;
    text-align: center;
}

.project-review-button.is-disabled {
    border-color: #d1d5db;
    background: #f1f5f9;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.amenity-group:first-of-type {
    margin-top: 0;
}

.amenity-title {
    margin: 0;
    color: var(--charcoal);
    font-size: 18px;
    line-height: 1.3;
}

.amenity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 10px;
    min-width: 0;
}

.amenity-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(47, 168, 107, 0.22);
    border-radius: 999px;
    background: rgba(47, 168, 107, 0.08);
    color: var(--brand-green);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    min-width: 0;
    overflow-wrap: anywhere;
}

.amenity-group-building {
    background: linear-gradient(135deg, rgba(0, 127, 255, 0.08), rgba(255, 255, 255, 0.92) 44%);
}

.amenity-group-building .amenity-item {
    border-color: rgba(0, 127, 255, 0.24);
    background: #eef8ff;
    color: #166aa7;
}

.amenity-group-indoor {
    background: linear-gradient(135deg, rgba(47, 168, 107, 0.08), rgba(255, 255, 255, 0.92) 44%);
}

.amenity-group-indoor .amenity-item {
    border-color: rgba(47, 168, 107, 0.26);
    background: rgba(47, 168, 107, 0.09);
    color: var(--brand-green);
}

@media (max-width: 680px) {
    .rentbkk-form-section {
        padding: 18px;
    }

    .rentbkk-form-section-grid,
    .rentbkk-contact-single-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .rentbkk-button-primary {
        width: 100%;
    }

    .amenity-group {
        padding: 16px;
    }

    .amenity-list {
        grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    }

    .amenity-title-row {
        gap: 12px;
    }
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
    margin: 0 auto 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-red);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(34, 34, 34, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    border-color: rgba(255, 255, 255, 0.76);
    color: var(--brand-green);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(34, 34, 34, 0.12);
}

.back-to-top svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.floating-contact {
    position: fixed;
    right: 18px;
    top: auto;
    bottom: 22px;
    z-index: 86;
    display: grid;
    gap: 8px;
}

.floating-contact .floating-back-to-top {
    width: 100%;
    min-width: 92px;
    min-height: 42px;
    border-color: rgba(198, 40, 57, 0.24);
    background:
        linear-gradient(135deg, rgba(198, 40, 57, 0.08), rgba(47, 168, 107, 0.08)),
        rgba(255, 255, 255, 0.96);
    color: var(--brand-red);
    box-shadow: var(--shadow-card);
}

.floating-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(47, 168, 107, 0.32);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-green);
    font-size: 14px;
    font-weight: 900;
    box-shadow: var(--shadow-card);
}

.page-hero {
    padding: 54px 0 34px;
}

main:has(.property-grid) .page-hero {
    padding-bottom: 20px;
}

.page-hero h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.2;
}

.page-hero p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--muted-text);
    font-size: 18px;
}

.filter-panel {
    padding: 20px;
    margin-bottom: 26px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1fr 120px;
    gap: 14px;
    align-items: end;
}

.property-card,
.featured-property-card {
    display: grid;
    grid-template-rows: minmax(0, 62%) minmax(0, 38%);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.property-card > a,
.featured-property-card > a {
    display: block;
    min-height: 0;
}

.property-card-image {
    position: relative;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.property-card-media {
    min-width: 0;
}

.property-card img,
.featured-property-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}

.property-body {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
    min-height: 0;
    padding: 12px 14px 14px;
    overflow: hidden;
}

.property-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
    max-height: 58px;
    overflow: hidden;
    pointer-events: none;
}

.property-card-badge {
    background: var(--soft-red);
    color: var(--brand-red);
    border-color: rgba(198, 40, 57, 0.14);
    box-shadow: 0 8px 18px rgba(30, 30, 30, 0.12);
}

.property-card-main {
    display: grid;
    grid-template-rows: minmax(42px, auto) minmax(0, 1fr);
    align-content: stretch;
    min-width: 0;
    min-height: 0;
    gap: 8px;
    overflow: hidden;
}

.property-card-title {
    min-width: 0;
    margin: 0;
    font-size: 18px;
    line-height: 1.18;
    font-weight: 900;
    text-align: left;
}

.property-card-title.is-long {
    font-size: 17px;
}

.property-card-title.is-xlong {
    font-size: 15px;
}

.property-card-title a {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    color: inherit;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-card-info-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
    align-items: end;
    min-width: 0;
    min-height: 0;
}

.property-card-price {
    justify-self: end;
    color: var(--brand-red);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.property-card-specs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    color: var(--brand-green);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.property-card-specs span + span::before {
    content: "/";
    margin-right: 6px;
    color: rgba(44, 162, 107, 0.68);
}

.property-card-specs span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.price {
    color: var(--brand-red);
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.meta-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--soft-gray);
    color: var(--muted-text);
    font-size: 12px;
    font-weight: 800;
}

.tag.green {
    background: var(--soft-green);
    color: var(--brand-green);
}

.tag.red {
    background: var(--soft-red);
    color: var(--brand-red);
}

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

.detail-layout > article,
.detail-layout > .side-panel {
    min-width: 0;
}

.detail-gallery {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 12px;
    margin-bottom: 24px;
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    min-height: 236px;
    object-fit: cover;
    border-radius: var(--radius);
}

.detail-gallery img:first-child {
    grid-row: span 2;
    min-height: 486px;
}

.detail-carousel {
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--light-border);
    border-radius: var(--radius-lg, var(--radius));
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.carousel-stage {
    position: relative;
    min-height: 500px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--soft-gray);
}

.carousel-image-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.carousel-image-button img,
.detail-lightbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--charcoal);
    box-shadow: var(--shadow-card);
    transform: translateY(-50%);
    cursor: pointer;
}

.carousel-control svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.carousel-control-prev {
    left: 18px;
}

.carousel-control-next {
    right: 18px;
}

.carousel-tools {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
}

.carousel-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(34, 34, 34, 0.54);
    color: var(--white);
    backdrop-filter: blur(8px);
}

.carousel-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.carousel-thumbs button {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
}

.carousel-thumbs button.is-active {
    border-color: var(--brand-green);
}

.carousel-thumbs img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.detail-lightbox[hidden] {
    display: none;
}

.detail-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 72px;
    background: rgba(25, 24, 23, 0.88);
}

.detail-lightbox img {
    max-width: min(1180px, 100%);
    max-height: calc(100vh - 144px);
    border-radius: var(--radius-lg, var(--radius));
    box-shadow: var(--shadow-level-4, var(--shadow-card));
}

.lightbox-close {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 4;
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--charcoal);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.verification-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.verification-icon-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    padding: 16px 12px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: var(--warm-white);
    text-align: center;
}

.verification-icon-card strong {
    font-size: 15px;
    line-height: 1.25;
}

.verification-icon-card span:last-child {
    color: var(--muted-text);
    font-size: 12px;
    font-weight: 800;
}

.verification-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--soft-green);
    color: var(--brand-green);
}

.verification-icon-red {
    background: var(--soft-red);
    color: var(--brand-red);
}

.verification-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-map {
    position: relative;
    min-width: 0;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: var(--soft-gray);
}

.detail-map-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 340px;
    border: 0;
}

.map-link {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-green);
    font-weight: 900;
    box-shadow: var(--shadow-card);
}

.watch-property-button {
    width: 100%;
    margin-bottom: 10px;
}

.detail-fact-action {
    min-height: 100%;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 16px;
}

.detail-panel {
    min-width: 0;
    overflow: hidden;
    padding: 24px;
    margin-bottom: 18px;
}

.detail-basic-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-color: rgba(47, 168, 107, 0.18);
    background:
        linear-gradient(135deg, rgba(47, 168, 107, 0.08), rgba(47, 168, 107, 0) 34%),
        var(--white);
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.detail-title-row h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
}

.project-link-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(47, 168, 107, 0.36);
    border-radius: 999px;
    background: var(--soft-green);
    color: var(--brand-green);
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 900;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.project-link-tag:hover,
.project-link-tag:focus-visible {
    border-color: var(--brand-green);
    background: #fbfefd;
}

.detail-basic-panel .price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(198, 40, 57, 0.16);
    border-radius: var(--radius);
    background: var(--soft-red);
    font-size: 24px;
    box-shadow: 0 14px 30px rgba(198, 40, 57, 0.1);
}

.demand-tag {
    border: 1px solid rgba(198, 40, 57, 0.12);
}

.verification-summary {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 14px 0 0;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--soft-green);
    color: var(--brand-green);
    font-size: 14px;
    font-weight: 900;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.detail-basic-panel .fact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.fact {
    padding: 14px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: var(--warm-white);
}

.detail-basic-panel .fact {
    position: relative;
    min-height: 86px;
    padding: 16px 16px 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
}

.detail-basic-panel .fact::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 0;
    width: 4px;
    height: 32px;
    border-radius: 0 999px 999px 0;
    background: var(--brand-green);
}

.fact span {
    color: var(--muted-text);
    font-size: 12px;
}

.fact strong {
    display: block;
    margin-top: 3px;
    font-size: 17px;
}

.detail-basic-panel .fact strong {
    margin-top: 6px;
    font-size: 20px;
    line-height: 1.25;
}

.detail-basic-panel .detail-fact-action {
    grid-column: 1 / -1;
    min-height: 56px;
    margin-bottom: 0;
    box-shadow: 0 16px 30px rgba(47, 168, 107, 0.18);
}

.property-detail-copy {
    display: grid;
    gap: 14px;
    min-width: 0;
    color: var(--charcoal);
    font-size: 16px;
    line-height: 1.85;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.property-detail-copy p {
    margin: 0;
}

.property-detail-copy :where(p, h2, h3, h4, ul, ol, li, blockquote, strong, b, em, i) {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.property-detail-copy :where(ul, ol) {
    padding-left: 1.4em;
}

.property-detail-copy blockquote {
    margin: 0;
    padding: 12px 16px;
    border-left: 3px solid var(--brand-green);
    background: var(--soft-gray);
}

.side-panel {
    position: sticky;
    top: 110px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 22px;
}

.side-panel :where(input, select, textarea, button, a) {
    max-width: 100%;
}

.side-panel h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.side-panel p {
    color: var(--muted-text);
}

.contact-verification {
    margin: 18px 0;
    padding: 16px 0;
    border-top: 1px solid var(--light-border);
    border-bottom: 1px solid var(--light-border);
}

.contact-verification h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.side-panel .verification-summary {
    min-height: 0;
    margin: 8px 0 0;
    padding: 0;
    background: transparent;
    font-size: 13px;
}

.side-panel .verification-icon-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
}

.side-panel .verification-icon-card {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 3px 10px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.side-panel .verification-icon-card .verification-icon {
    grid-row: span 2;
    width: 34px;
    height: 34px;
}

.side-panel .verification-icon-card .verification-icon svg {
    width: 20px;
    height: 20px;
}

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

.rentbkk-article-detail-layout .article-detail {
    min-width: 0;
}

.rentbkk-article-contact-panel {
    position: sticky;
    top: 96px;
}

.rentbkk-article-contact-actions {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.rentbkk-article-contact-panel .verification-icon-grid {
    grid-template-columns: 1fr 1fr;
}

.rentbkk-article-contact-panel .verification-icon-card {
    min-height: 84px;
}

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

    .rentbkk-article-contact-panel {
        position: static;
    }
}

.advisor-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 20px;
}

.advisor-list div {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: center;
    color: var(--charcoal);
    font-weight: 800;
}

.notice {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--soft-green);
    color: var(--brand-green);
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .container {
        width: min(100% - 40px, 980px);
    }

    .header-inner {
        gap: 22px;
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        justify-content: flex-start;
        width: 100%;
        gap: 24px;
    }

    .nav a {
        padding: 8px 0 13px;
        white-space: nowrap;
    }

    .nav a::after {
        bottom: 5px;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero-media {
        min-height: 390px;
    }

    .hero-side {
        width: min(560px, 47%);
    }

    .hero-side h1 {
        font-size: clamp(24px, 2vw, 29px);
    }

    .hero-search {
        right: 18px;
        width: min(540px, 52%);
    }

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

    .hero-search .search-keyword {
        grid-column: 1 / -1;
    }

    .hero-search .field:not(.search-keyword) {
        grid-column: span 1;
    }

    .hero-search .search-action-row {
        grid-template-columns: minmax(0, 1fr) minmax(190px, 220px);
        gap: 12px;
    }

    .hero-search .search-submit {
        grid-column: 2;
        justify-self: stretch;
        width: 100%;
    }

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

    .search-grid .button,
    .filter-grid .button {
        width: 100%;
    }

    .category-grid,
    .quick-entry-grid,
    .featured-property-grid,
    .guide-article-grid,
    .rentbkk-article-card-grid,
    .article-grid,
    .property-grid,
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .guide-category-grid {
        grid-template-columns: repeat(5, minmax(142px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
    }

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

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

    .contact-title {
        grid-column: 1 / -1;
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

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

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

@media (max-width: 980px) {
    .container {
        width: min(100% - 28px, 760px);
    }

    .header-inner {
        min-height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
        gap: 16px;
    }

    .brand-logo img {
        height: 76px;
    }

    .nav {
        order: 3;
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        gap: 24px;
    }

    .nav a {
        padding: 8px 0 13px;
        white-space: nowrap;
    }

    .nav a::after {
        bottom: 5px;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero-side {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        width: min(100%, 560px);
        max-width: none;
        z-index: 4;
    }

    .hero-media {
        display: grid;
        align-content: start;
        gap: 14px;
        min-height: auto;
        padding: 18px;
        overflow: hidden;
        border: 1px solid var(--light-border);
        background: var(--white);
        box-shadow: var(--shadow-card);
    }

    .hero-image {
        height: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .hero-search {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        transform: none;
        margin: 0;
        z-index: 4;
    }

    .category-grid,
    .featured-property-grid,
    .guide-article-grid,
    .rentbkk-article-card-grid,
    .feature-grid,
    .article-grid,
    .property-grid,
    .contact-bar,
    .footer-inner,
    .filter-grid,
    .detail-layout,
    .fact-grid {
        grid-template-columns: 1fr;
    }

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

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

    .floating-contact {
        top: auto;
        right: 14px;
        bottom: 18px;
        display: block;
        z-index: 88;
    }

    .floating-contact a {
        display: none;
    }

    .floating-contact .floating-back-to-top {
        width: auto;
        min-width: 112px;
        min-height: 42px;
        padding: 0 14px;
    }

    .search-grid .button {
        width: 100%;
    }

    .hero-search {
        margin-top: 0;
        padding: 18px;
    }

    .feature-band {
        grid-template-columns: 1fr;
    }

    .feature-band img {
        min-height: 220px;
    }

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

    .article-card img {
        height: 160px;
    }

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

    .detail-gallery img:first-child {
        min-height: 300px;
    }

    .carousel-stage {
        min-height: 360px;
    }

    .verification-icon-grid {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }

    .submit-layout {
        grid-template-columns: 1fr;
    }

    .contact-single-row {
        grid-template-columns: 1fr;
    }

    .submit-side-panel {
        order: -1;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 640px);
    }

    .header-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 12px;
    }

    .brand-logo {
        grid-column: 1;
        grid-row: 1;
        min-width: 74px;
    }

    .brand-logo img {
        height: 70px;
    }

    .header-actions {
        display: grid;
        grid-column: 2;
        grid-row: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        margin-left: 0;
        justify-content: stretch;
        gap: 8px;
    }

    .header-actions .button,
    .header-actions .select-pill {
        width: 100%;
        min-height: 48px;
        padding: 0 8px;
        font-size: 15px;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }

    .nav {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 20px;
        font-size: 20px;
    }

    .hero {
        padding: 20px 0 34px;
    }

    .hero-side {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: none;
    }

    .hero-side h1 {
        font-size: clamp(22px, 5.6vw, 29px);
        line-height: 1.15;
    }

    .hero-title-main {
        white-space: nowrap;
        font-size: 22px;
    }

    .hero-summary {
        font-size: 14px;
        line-height: 1.45;
    }

    .hero-media {
        min-height: auto;
        gap: 12px;
        padding: 14px;
    }

    .hero-image {
        height: 100%;
    }

    .hero-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        max-width: none;
    }

    .trust-point {
        grid-template-columns: 1fr;
        place-items: center;
        padding: 10px;
    }

    .trust-point .icon,
    .trust-point .trust-icon {
        width: 32px;
        height: 32px;
        padding: 7px;
    }

    .trust-point h3 {
        font-size: 12px;
    }

    .trust-point p {
        font-size: 11.5px;
        line-height: 1.45;
    }

    .hero-search {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        transform: none;
        margin: 0;
        padding: 14px;
    }

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

    .search-grid,
    .form-grid,
    .filter-grid,
    .category-grid,
    .featured-property-grid,
    .guide-article-grid,
    .rentbkk-article-card-grid,
    .feature-grid,
    .article-grid,
    .property-grid,
    .contact-bar,
    .footer-inner,
    .detail-layout,
    .fact-grid {
        grid-template-columns: 1fr;
    }

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

    .guide-category-grid {
        grid-template-columns: repeat(5, minmax(148px, 1fr));
        overflow-x: auto;
    }

    .search-submit {
        grid-column: auto;
    }

    .feature-copy,
    .detail-panel,
    .side-panel {
        padding: 20px;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .detail-title-row h1 {
        font-size: 28px;
    }

    .detail-basic-panel .fact-grid {
        grid-template-columns: 1fr;
    }

    .detail-basic-panel .price {
        width: 100%;
        justify-content: flex-start;
    }

    .submit-form {
        gap: 18px;
    }

    .form-section-head {
        gap: 10px;
    }

    .submit-form .button-primary {
        width: 100%;
    }

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

    .detail-gallery img,
    .detail-gallery img:first-child {
        min-height: 240px;
    }

    .carousel-stage {
        min-height: 260px;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .carousel-tools {
        right: 10px;
        bottom: 10px;
    }

    .carousel-thumbs {
        gap: 8px;
        padding: 10px;
    }

    .detail-lightbox {
        padding: 64px 14px;
    }

    .detail-lightbox img {
        max-height: calc(100vh - 128px);
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .detail-map-frame {
        height: 280px;
    }

    .contact-title {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .brand-logo {
        min-width: 66px;
    }

    .brand-logo img {
        height: 62px;
    }

    .header-actions {
        gap: 7px;
    }

    .header-actions .button,
    .header-actions .select-pill {
        min-height: 44px;
        font-size: 14px;
    }

    .header-actions .button-outline {
        padding: 0 12px;
    }

    .select-pill {
        min-width: 72px;
        padding: 0 12px;
    }

    .hero-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow-x: visible;
        padding-bottom: 0;
    }

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

    .hero-search .search-action-row {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 8px;
    }

    .hero-search .search-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        grid-column: 1;
        gap: 4px;
        justify-self: center;
        max-width: 100%;
        text-align: center;
        white-space: nowrap;
        font-size: 12.5px;
        line-height: 1.25;
    }

    .hero-search .search-secondary span {
        display: inline;
    }

    .hero-search .search-submit {
        grid-column: 1;
        justify-self: center;
        width: min(220px, 100%);
    }

    .section {
        padding: 42px 0;
    }

    .guide-list-section {
        padding-top: 25px;
    }

    .home-main .section {
        padding: 25px 0;
    }

    .home-main .home-property-section {
        padding: 20px 0;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .contact-bar {
        padding: 22px;
    }

    .detail-title-row {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .hero-title-main {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .hero-title-main {
        font-size: 16px;
    }
}

/* Final desktop search card compact height: about 70% of the previous V2 panel. */
@media (min-width: 981px) {
    .hero-search {
        padding: 16px;
    }

    .hero-search .search-mode-tabs {
        max-width: 260px;
        margin-bottom: 10px;
        padding: 4px;
    }

    .hero-search .search-mode-tab {
        min-height: 34px;
    }

    .hero-search .search-grid {
        gap: 8px 10px;
    }

    .hero-search .field span {
        margin-bottom: 3px;
        font-size: 11px;
        line-height: 1.2;
    }

    .hero-search .field select,
    .hero-search .field input {
        height: 38px;
        padding: 0 10px;
        font-size: 12.5px;
    }

    .hero-search .search-action-row {
        gap: 10px;
        margin-top: 0;
    }

    .hero-search .search-submit {
        min-height: 42px;
        font-size: 14px;
    }
}

/* Desktop search card compact height: about 70% of the previous V2 panel. */
@media (min-width: 981px) {
    .hero-search {
        padding: 16px;
    }

    .hero-search .search-mode-tabs {
        max-width: 260px;
        margin-bottom: 10px;
        padding: 4px;
    }

    .hero-search .search-mode-tab {
        min-height: 34px;
    }

    .hero-search .search-grid {
        gap: 8px 10px;
    }

    .hero-search .field span {
        margin-bottom: 3px;
        font-size: 11px;
        line-height: 1.2;
    }

    .hero-search .field select,
    .hero-search .field input {
        height: 38px;
        padding: 0 10px;
        font-size: 12.5px;
    }

    .hero-search .search-action-row {
        gap: 10px;
        margin-top: 0;
    }

    .hero-search .search-submit {
        min-height: 42px;
        font-size: 14px;
    }
}

/* Hero trust cards: icon/title row plus visible short explanation, without changing 1:1 card size. */
.trust-point {
    grid-template-rows: auto 1fr;
    align-content: center;
    place-items: center;
    gap: 8px;
    text-align: center;
}

.trust-point-head {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.trust-point-head .icon,
.trust-point .trust-point-head .icon,
.trust-point-head .trust-icon,
.trust-point .trust-point-head .trust-icon {
    width: 30px;
    height: 30px;
    padding: 6px;
}

.trust-point-head h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
}

.trust-point > p {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
    color: var(--neutral-600);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.42;
}

@media (max-width: 760px) {
    .trust-point {
        gap: 6px;
        padding: 9px 7px 11px;
    }

    .trust-point-head {
        gap: 4px;
    }

    .trust-point-head .icon,
    .trust-point .trust-point-head .icon,
    .trust-point-head .trust-icon,
    .trust-point .trust-point-head .trust-icon {
        width: 26px;
        height: 26px;
        padding: 5px;
    }

    .trust-point-head h3 {
        font-size: 11px;
    }

    .trust-point > p {
        font-size: 10.5px;
        line-height: 1.35;
    }
}

/* Compact homepage card spacing: property and guide card areas at about 60% of V2 whitespace. */
.home-main .section {
    padding: 48px 0;
}

.home-main .home-property-section {
    padding: 40px 0;
}

.home-main .section.guide-hub {
    padding: 48px 0;
}

.home-main .section-head,
.home-main .home-property-section .section-head {
    margin-bottom: 20px;
}

@media (max-width: 760px) {
    .home-main .section,
    .home-main .home-property-section,
    .home-main .section.guide-hub {
        padding: 32px 0;
    }

    .home-main .section-head,
    .home-main .home-property-section .section-head {
        margin-bottom: 16px;
    }
}

/* Desktop helper CTA sits to the left of the full search card, aligned with it. */
@media (min-width: 1181px) {
    .hero-side {
        width: min(500px, 38%);
    }

    .hero-search {
        width: min(480px, 37.5%);
    }

    .hero-search .search-action-row {
        grid-template-columns: minmax(190px, 220px);
        justify-content: end;
    }

    .hero-search .search-submit {
        grid-column: 1;
    }

    .hero-search .search-secondary {
        position: absolute;
        top: 50%;
        right: calc(100% + 24px);
        display: grid;
        grid-template-rows: repeat(2, auto);
        gap: 4px;
        width: 148px;
        padding: 14px 16px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: var(--radius-lg);
        background: rgba(255, 255, 255, 0.86);
        box-shadow: var(--shadow-level-2);
        transform: translateY(-50%);
        white-space: normal;
        backdrop-filter: blur(12px);
    }

    .hero-search .search-secondary span {
        display: block;
    }

    .hero-search .search-secondary:hover,
    .hero-search .search-secondary:focus-visible {
        transform: translateY(-50%) translateX(4px);
    }
}

/* 曼谷租房网 V2 Design Upgrade: premium editorial layer */
:root {
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --neutral-50: #FCFBFA;
    --neutral-100: #F6F3EF;
    --neutral-200: #ECE7E0;
    --neutral-300: #DDD6CD;
    --neutral-400: #B8AEA4;
    --neutral-500: #80776F;
    --neutral-600: #625B55;
    --neutral-700: #423D38;
    --neutral-800: #2C2926;
    --neutral-900: #191817;
    --warm-coral: #E85E62;
    --fresh-green: #4DC782;
    --gradient-primary: linear-gradient(135deg, var(--brand-red), var(--warm-coral));
    --gradient-green: linear-gradient(135deg, var(--brand-green), var(--fresh-green));
    --gradient-hero: linear-gradient(135deg, rgba(250, 248, 245, 0.96), rgba(250, 248, 245, 0.72) 42%, rgba(255, 255, 255, 0.16));
    --shadow-level-1: 0 1px 0 rgba(25, 24, 23, 0.06);
    --shadow-level-2: 0 14px 36px rgba(25, 24, 23, 0.08);
    --shadow-level-3: 0 24px 56px rgba(25, 24, 23, 0.13);
    --shadow-level-4: 0 34px 90px rgba(25, 24, 23, 0.18);
    --shadow-floating-hover: 0 42px 104px rgba(25, 24, 23, 0.22);
    --duration-fast: 220ms;
    --duration-normal: 300ms;
    --duration-reveal: 400ms;
    --ease-out: ease-out;
    --radius: var(--radius-sm);
    --shadow-card: var(--shadow-level-2);
    --shadow-soft: var(--shadow-level-3);
    --charcoal: var(--neutral-900);
    --muted-text: var(--neutral-500);
    --light-border: var(--neutral-200);
}

body {
    background:
        radial-gradient(circle at 18% 4%, rgba(198, 40, 57, 0.06), transparent 28%),
        radial-gradient(circle at 82% 0%, rgba(47, 168, 107, 0.07), transparent 30%),
        var(--neutral-50);
    color: var(--neutral-900);
    font-size: 16px;
    line-height: 1.7;
}

img {
    height: auto;
}

.site-header {
    background: rgba(252, 251, 250, 0.82);
    border-bottom: 1px solid rgba(221, 214, 205, 0.72);
    box-shadow: var(--shadow-level-1);
    backdrop-filter: blur(20px);
}

.button,
.select-pill,
.nav a,
.text-link,
.card-cta,
.guide-article-card a,
.footer-social,
.back-to-top,
.floating-contact a {
    transition:
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        background var(--duration-normal) var(--ease-out),
        color var(--duration-fast) var(--ease-out),
        opacity var(--duration-fast) var(--ease-out);
}

.button,
.select-pill {
    min-height: 44px;
    border-radius: var(--radius-pill);
}

.button-primary,
.header-cta-primary,
.search-submit {
    border-color: transparent;
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 14px 28px rgba(198, 40, 57, 0.18);
}

.button-green {
    border-color: transparent;
    background: var(--gradient-green);
    box-shadow: 0 14px 28px rgba(47, 168, 107, 0.16);
}

.button:hover,
.button:focus-visible,
.search-submit:hover,
.search-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-level-3);
}

.button:active,
.search-submit:active {
    transform: translateY(0);
    box-shadow: var(--shadow-level-2);
}

.button:disabled,
.search-submit:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
}

.hero {
    padding: 24px 0 64px;
    background: transparent;
}

.hero-media {
    min-height: clamp(620px, 78vh, 820px);
    border: 1px solid rgba(221, 214, 205, 0.74);
    border-radius: var(--radius-lg);
    background: var(--neutral-100);
    box-shadow: var(--shadow-level-4);
}

.hero-media::after {
    background:
        radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.04), transparent 25%),
        linear-gradient(90deg, rgba(250, 248, 245, 0.98) 0%, rgba(250, 248, 245, 0.82) 38%, rgba(250, 248, 245, 0.24) 66%, rgba(250, 248, 245, 0.02) 100%);
}

.hero-image {
    transform: scale(1.01);
}

.hero-side {
    left: 48px;
    width: min(600px, 45%);
    gap: 24px;
}

.hero-side h1 {
    gap: 10px;
    line-height: 1.08;
}

.hero-title-main {
    font-size: clamp(30px, 2.3vw, 36px);
    letter-spacing: 0;
}

.hero-title-emphasis {
    font-size: clamp(48px, 5vw, 60px);
    letter-spacing: 0;
}

.hero-summary {
    max-width: 620px;
    color: var(--neutral-600);
    font-size: 18px;
    line-height: 1.75;
}

.hero-points {
    max-width: 380px;
    gap: 16px;
    justify-self: center;
}

.trust-point {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-level-2);
    backdrop-filter: blur(12px);
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.trust-point:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-level-3);
}

.search-panel,
.hero-search {
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-level-4);
    backdrop-filter: blur(16px);
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}

.search-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-floating-hover);
}

.hero-search {
    right: 48px;
    width: min(540px, 42.5%);
    padding: 24px;
}

.hero-search:hover {
    transform: translateY(calc(-50% - 2px));
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-floating-hover);
}

.search-mode-tabs {
    max-width: 320px;
    margin-bottom: 16px;
    padding: 6px;
    border-radius: var(--radius-lg);
    background: rgba(246, 243, 239, 0.94);
}

.search-mode-tab {
    min-height: 44px;
    border-radius: var(--radius-md);
    transition: background var(--duration-normal) var(--ease-out), color var(--duration-normal) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.search-mode-tab.is-active {
    background: var(--gradient-primary);
    box-shadow: 0 10px 24px rgba(198, 40, 57, 0.18);
}

.field span,
.field label,
.filter-field label {
    color: var(--neutral-800);
    font-size: 13px;
    letter-spacing: 0;
}

.field select,
.field input,
.filter-field select,
.filter-field input {
    height: 48px;
    border-color: rgba(221, 214, 205, 0.92);
    border-radius: var(--radius-md);
    background: rgba(252, 251, 250, 0.94);
    color: var(--neutral-700);
    transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.field select:hover,
.field input:hover,
.filter-field select:hover,
.filter-field input:hover {
    border-color: rgba(47, 168, 107, 0.42);
    background: var(--white);
}

.field select:focus,
.field input:focus,
.filter-field select:focus,
.filter-field input:focus {
    border-color: rgba(47, 168, 107, 0.58);
    box-shadow: 0 0 0 4px rgba(47, 168, 107, 0.12);
}

.hero-search .search-grid {
    gap: 16px;
}

.hero-search .field select,
.hero-search .field input {
    height: 48px;
    font-size: 14px;
}

.hero-search .search-action-row {
    gap: 16px;
    margin-top: 8px;
}

.hero-search .search-submit {
    min-height: 52px;
    border-radius: var(--radius-pill);
}

.search-secondary {
    color: var(--brand-green);
}

.search-secondary:hover,
.search-secondary:focus-visible {
    color: var(--brand-red);
    transform: translateX(4px);
}

.section {
    padding: 96px 0;
}

.home-main .section {
    padding: 80px 0;
}

.home-main .home-property-section {
    padding: 64px 0;
}

.section-head,
.home-main .section-head,
.home-main .home-property-section .section-head {
    margin-bottom: 32px;
}

.section-title {
    color: var(--neutral-900);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.18;
    letter-spacing: 0;
}

.section-lead {
    max-width: 720px;
    margin-top: 12px;
    color: var(--neutral-500);
    font-size: 16px;
    line-height: 1.8;
}

.category-card,
.quick-entry-card,
.property-card,
.featured-property-card,
.guide-article-card,
.article-card,
.contact-bar,
.feature-band,
.detail-panel,
.side-panel,
.form-panel,
.filter-panel {
    border-color: rgba(221, 214, 205, 0.86);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-level-2);
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.property-card,
.featured-property-card,
.guide-article-card,
.article-card,
.quick-entry-card,
.category-card {
    overflow: hidden;
}

.property-card:hover,
.featured-property-card:hover,
.guide-article-card:hover,
.article-card:hover,
.quick-entry-card:hover,
.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(47, 168, 107, 0.32);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-level-3);
}

.property-card img,
.featured-property-card img,
.guide-article-card img,
.article-card img,
.category-card img,
.feature-band img {
    transition: transform var(--duration-fast) var(--ease-out), filter var(--duration-fast) var(--ease-out);
}

.property-card:hover img,
.featured-property-card:hover img,
.guide-article-card:hover img,
.article-card:hover img,
.category-card:hover img,
.feature-band:hover img {
    transform: scale(1.04);
}

.quick-entry-card {
    min-height: 96px;
    padding: 24px;
}

.quick-entry-icon,
.guide-category-icon {
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.guide-article-card h3 {
    font-size: 20px;
}

.guide-category {
    min-height: 56px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-level-2);
}

.guide-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-level-3);
}

.site-footer {
    margin-top: 96px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(135deg, #25875A 0%, var(--brand-green) 52%, #1F7A50 100%);
}

.footer-inner {
    padding: 64px 0 40px;
}

.footer-brand h2 {
    font-size: 28px;
}

.footer-brand p {
    max-width: 360px;
    font-size: 15px;
    line-height: 1.9;
}

.footer-qr-card img,
.footer-social,
.back-to-top,
.floating-contact a {
    box-shadow: 0 14px 34px rgba(25, 24, 23, 0.14);
}

.floating-contact {
    gap: 12px;
}

.floating-contact a,
.floating-contact .floating-back-to-top {
    min-height: 48px;
    border-radius: var(--radius-pill);
}

/* Final compact floating action sizing: 80% of the previous CTA scale. */
.floating-contact .floating-back-to-top {
    min-width: 74px;
    min-height: 38px;
    padding: 0 12px;
    gap: 6px;
    font-size: 12px;
}

.floating-contact .floating-back-to-top svg {
    width: 13px;
    height: 13px;
}

/* Final floating widget scale: 70% of the current visual size. */
.floating-contact {
    transform: scale(0.7);
    transform-origin: right bottom;
}

.js-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

@media (max-width: 1180px) {
    .hero-media {
        min-height: clamp(600px, 74vh, 780px);
    }

    .hero-side {
        left: 32px;
        width: min(520px, 44%);
    }

    .hero-title-main {
        font-size: clamp(24px, 2.2vw, 30px);
    }

    .hero-title-emphasis {
        font-size: clamp(40px, 4.4vw, 52px);
    }

    .hero-search {
        right: 32px;
        width: min(500px, 45%);
        padding: 20px;
    }
}

@media (max-width: 980px) {
    .hero {
        padding: 16px 0 64px;
    }

    .hero-media {
        display: grid;
        gap: 24px;
        min-height: auto;
        padding: 24px;
        border-radius: var(--radius-lg);
    }

    .hero-side {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        transform: none;
    }

    .hero-search,
    .hero-search:hover {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        transform: none;
    }

    .hero-points {
        max-width: 420px;
    }

    .section,
    .home-main .section {
        padding: 64px 0;
    }
}

@media (max-width: 760px) {
    .hero-media {
        padding: 20px;
    }

    .hero-side {
        gap: 16px;
    }

    .hero-title-main {
        font-size: clamp(19px, 4.8vw, 24px);
        white-space: nowrap;
    }

    .hero-title-emphasis {
        font-size: clamp(36px, 9vw, 46px);
    }

    .hero-summary {
        font-size: 15px;
        line-height: 1.65;
    }

    .hero-search {
        padding: 20px;
    }

    .section,
    .home-main .section,
    .home-main .home-property-section {
        padding: 48px 0;
    }

    .section-head,
    .home-main .section-head,
    .home-main .home-property-section .section-head {
        margin-bottom: 24px;
    }
}

@media (max-width: 420px) {
    .hero-title-main {
        font-size: 18px;
    }

    .hero-search {
        padding: 16px;
    }
}

@media (max-width: 360px) {
    .hero-title-main {
        font-size: 16px;
    }
}

/* Final effective desktop search card compact height: about 70% of the previous V2 panel. */
@media (min-width: 981px) {
    .hero-search {
        padding: 16px;
    }

    .hero-search .search-mode-tabs {
        max-width: 260px;
        margin-bottom: 10px;
        padding: 4px;
    }

    .hero-search .search-mode-tab {
        min-height: 34px;
    }

    .hero-search .search-grid {
        gap: 8px 10px;
    }

    .hero-search .field span {
        margin-bottom: 3px;
        font-size: 11px;
        line-height: 1.2;
    }

    .hero-search .field select,
    .hero-search .field input {
        height: 38px;
        padding: 0 10px;
        font-size: 12.5px;
    }

    .hero-search .search-action-row {
        gap: 10px;
        margin-top: 0;
    }

    .hero-search .search-submit {
        min-height: 42px;
        font-size: 14px;
    }
}

/* Final desktop horizontal alignment: move the floating search card about 10px right. */
@media (min-width: 1181px) {
    .hero-search {
        right: 38px;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    .hero-search {
        right: 22px;
    }
}

/* Final hero trust-card scale: 10% larger, with each explanation on one centered line. */
.hero-points {
    max-width: 418px;
}

.trust-point {
    gap: 9px;
}

.trust-point-head h3 {
    font-size: 14px;
}

.trust-point > p {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.32;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .hero-points {
        max-width: min(100%, 418px);
    }

    .trust-point {
        gap: 7px;
    }

    .trust-point-head h3 {
        font-size: 12px;
    }

    .trust-point > p {
        font-size: 11px;
        line-height: 1.3;
        white-space: nowrap;
    }
}

/* Final desktop search action alignment: button left, requirement helper on its right. */
@media (min-width: 981px) {
    .hero-search .search-action-row {
        grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
        justify-content: start;
        align-items: center;
        gap: 14px;
    }

    .hero-search .search-submit {
        grid-column: 1;
        justify-self: stretch;
        width: 100%;
    }

    .hero-search .search-secondary {
        position: static;
        grid-column: 2;
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        justify-self: start;
        gap: 2px;
        width: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        white-space: normal;
        backdrop-filter: none;
    }

    .hero-search .search-secondary span {
        display: block;
    }

    .hero-search .search-secondary:hover,
    .hero-search .search-secondary:focus-visible {
        transform: translateX(4px);
    }
}

/* Final hero media height: adjusted to hold the floating quick-entry strip gracefully. */
@media (min-width: 1181px) {
    .hero-media {
        min-height: clamp(520px, 60vh, 640px);
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    .hero-media {
        min-height: clamp(500px, 58vh, 620px);
    }
}

/* Final quick entry strip: icon labels only, floating inside the hero image. */
.hero-quick-entry {
    position: absolute;
    z-index: 2;
    left: 50%;
    right: auto;
    bottom: 22px;
    width: min(760px, calc(100% - 76px));
    padding: 0;
    transform: translateX(-50%);
}

.home-main .hero + .featured-properties {
    padding-top: 36px;
}

.hero-quick-entry .quick-entry-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.hero-quick-entry .quick-entry-card {
    min-height: 41px;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border-color: rgba(255, 255, 255, 0.76);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(25, 24, 23, 0.11);
    backdrop-filter: blur(14px);
}

.hero-quick-entry .quick-entry-icon {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
}

.hero-quick-entry .quick-entry-icon svg {
    width: 15px;
    height: 15px;
}

.hero-quick-entry .quick-entry-icon .home-icon-image {
    width: 19px;
    height: 19px;
}

.hero-quick-entry .quick-entry-copy {
    display: flex;
    align-items: center;
}

.hero-quick-entry .quick-entry-copy h3 {
    margin: 0;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.hero-quick-entry .quick-entry-copy p {
    display: none;
}

@media (max-width: 980px) {
    .hero-quick-entry {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: min(100%, 760px);
        margin: 0 auto;
        transform: none;
    }

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

@media (max-width: 760px) {
    .home-main .hero + .featured-properties {
        padding-top: 28px;
    }

    .hero-quick-entry .quick-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-quick-entry .quick-entry-card {
        min-height: 39px;
        padding: 7px 9px;
    }
}

/* Final home density pass: hero at 88%, card-section gaps at 50%. */
@media (min-width: 1181px) {
    .hero-media {
        min-height: clamp(458px, 52.8vh, 563px);
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    .hero-media {
        min-height: clamp(440px, 51.04vh, 546px);
    }
}

.home-main .hero + .featured-properties {
    padding-top: 18px;
}

.home-main .section {
    padding: 24px 0;
}

.home-main .home-property-section {
    padding: 20px 0;
}

.home-main .section.guide-hub {
    padding: 24px 0 12px;
}

.home-main .section-head,
.home-main .home-property-section .section-head {
    margin-bottom: 10px;
}

@media (max-width: 760px) {
    .home-main .hero + .featured-properties {
        padding-top: 14px;
    }

    .home-main .section,
    .home-main .home-property-section,
    .home-main .section.guide-hub {
        padding: 16px 0;
    }

    .home-main .section.guide-hub {
        padding-bottom: 8px;
    }

    .home-main .section-head,
    .home-main .home-property-section .section-head {
        margin-bottom: 8px;
    }
}

/* Final hero overlay balance: lift the headline/trust group and search card by 15px. */
@media (min-width: 981px) {
    .hero-side,
    .hero-search {
        top: calc(50% - 15px);
    }
}

@media (max-width: 980px) {
    .hero-side,
    .hero-search,
    .hero-search:hover {
        transform: translateY(-15px);
    }
}

.rentbkk-contact-modal[hidden],
.rentbkk-contact-panel[hidden] {
    display: none !important;
}

.rentbkk-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.rentbkk-contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 24, 23, 0.48);
}

.rentbkk-contact-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border-radius: 8px;
    background: var(--white);
    color: var(--charcoal);
    box-shadow: 0 24px 72px rgba(25, 24, 23, 0.28);
    padding: 24px;
}

.rentbkk-contact-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: var(--soft-green);
    color: var(--brand-green);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.rentbkk-contact-panel {
    display: grid;
    gap: 14px;
    justify-items: start;
}

.rentbkk-contact-panel h2 {
    margin: 0;
    padding-right: 36px;
    font-size: 24px;
    line-height: 1.25;
}

.rentbkk-contact-panel p {
    margin: 0;
    color: var(--muted-text);
    line-height: 1.7;
}

.rentbkk-contact-qr {
    width: 168px;
    height: 168px;
    border: 1px solid rgba(47, 168, 107, 0.16);
    border-radius: 8px;
    background: var(--white);
    object-fit: cover;
}

.rentbkk-contact-action {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

body.rentbkk-contact-modal-open {
    overflow: hidden;
}

