/*  LE CHOME CLINIC — custom overrides on top of Tailwind CDN  */

/* --------------------------------------------------------------------------
   LINE Seed Sans TH — @font-face โหลดจาก includes/site_fonts.php (header)
   ตัวแปรฟอนต์หลัก — ใช้ทั้ง Mobile และ Desktop
-------------------------------------------------------------------------- */
:root {
    --font-sans: "LINE Seed Sans TH", "LINE Seed Sans", ui-sans-serif, system-ui, -apple-system,
        "Segoe UI", "Noto Sans Thai", "Sarabun", sans-serif;
    --lechome-primary: #f98878;
    --lechome-secondary-light: #f9c8c1;
    --lechome-secondary-dark: #b85948;
    --lechome-bg: #ffffff;
    --lechome-gold-from: #f6e6a8;
    --lechome-gold-mid: #e5b24b;
    --lechome-gold-to: #c89433;
    --lechome-gold-deep: #a37627;
    --gold-gradient: linear-gradient(135deg, var(--lechome-gold-from) 0%, var(--lechome-gold-mid) 48%, var(--lechome-gold-to) 100%);
    --gold-gradient-shine: linear-gradient(110deg, #fff8e7 0%, #f6d37a 22%, #e5b24b 50%, #f6d37a 78%, #c89433 100%);
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: #9c2852;
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 0.5rem 0;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
    outline: 2px solid #f6d37a;
    outline-offset: 2px;
}

/* Focus ring */
*:focus-visible { outline: 2px solid var(--lechome-primary); outline-offset: 2px; }

/* ---------- Gold luxury accents (ตัดกับโทนหลัก coral) ---------- */
.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gold-accent-bar {
    height: 2px;
    background: var(--gold-gradient);
}

.gold-accent-bar-thin {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--lechome-gold-mid) 20%, var(--lechome-gold-from) 50%, var(--lechome-gold-mid) 80%, transparent 100%);
    opacity: 0.95;
}

.section-kicker {
    letter-spacing: 0.3em;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
}

/* แถบสีหัวหน้าหมวด — ความสูง/ขนาดตั้งค่าจากหลังบ้าน (site_page_hero) */
.page-hero-band {
    display: block;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-top: var(--page-hero-pt, 3.25rem);
    padding-bottom: var(--page-hero-pb, 0.875rem);
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .page-hero-band {
        padding-top: var(--page-hero-pt-md, 3.75rem);
        padding-bottom: var(--page-hero-pb-md, 1rem);
    }
}
.page-hero-band h1.font-display {
    margin-bottom: var(--page-hero-gap, 0.125rem) !important;
    font-size: var(--page-hero-title, 1.875rem) !important;
    line-height: 1.05;
}
@media (min-width: 768px) {
    .page-hero-band h1.font-display {
        font-size: var(--page-hero-title-md, 2.25rem) !important;
        line-height: 1.08;
    }
}
.page-hero-band .text-gold-300 {
    margin-bottom: var(--page-hero-gap, 0.125rem) !important;
    line-height: 1.2;
}
.page-hero-band p {
    margin-top: 0;
    font-size: var(--page-hero-lead, 0.875rem) !important;
    line-height: 1.3;
}
@media (min-width: 768px) {
    .page-hero-band p {
        font-size: var(--page-hero-lead-md, 0.9375rem) !important;
    }
}

.section-title-luxe {
    position: relative;
    display: inline-block;
}

.section-title-luxe::after {
    content: "";
    display: block;
    width: 3rem;
    height: 2px;
    margin-top: 0.5rem;
    background: var(--gold-gradient);
    border-radius: 999px;
}

.btn-luxe {
    background: linear-gradient(135deg, var(--lechome-primary) 0%, var(--lechome-secondary-dark) 100%);
    box-shadow:
        0 0 0 1px rgba(229, 178, 75, 0.45),
        0 8px 24px -8px rgba(249, 136, 120, 0.45);
    transition: box-shadow 0.25s ease, transform 0.2s ease, filter 0.2s ease;
}

.btn-luxe:hover {
    box-shadow:
        0 0 0 2px rgba(246, 211, 122, 0.75),
        0 12px 28px -8px rgba(249, 136, 120, 0.5);
    filter: brightness(1.03);
}

.btn-luxe-outline {
    background: #fff;
    color: var(--lechome-secondary-dark);
    box-shadow: 0 0 0 1px rgba(229, 178, 75, 0.35);
    transition: box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.btn-luxe-outline:hover {
    background: linear-gradient(135deg, #fffdf8 0%, #fff8e7 100%);
    box-shadow: 0 0 0 2px rgba(229, 178, 75, 0.55);
    color: var(--lechome-gold-deep);
}

.footer-gold-top {
    height: 3px;
    background: var(--gold-gradient-shine);
}

.card-luxe {
    border: 1px solid rgba(229, 178, 75, 0.22);
    box-shadow: 0 8px 30px -14px rgba(200, 148, 51, 0.18);
}

.card-luxe:hover {
    border-color: rgba(229, 178, 75, 0.45);
    box-shadow: 0 12px 32px -12px rgba(200, 148, 51, 0.28);
}

/* Scrollbar (Chromium/Edge) */
/* แถบเลื่อนรีวิวหน้าแรก — บางลง ไม่รบกวนภาพรวม */
.home-review-carousel {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    overflow-x: auto;
    overflow-y: hidden;
}
.home-review-carousel::-webkit-scrollbar {
    height: 6px;
}
.home-review-carousel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
.home-review-carousel::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar       { width: 10px; }
::-webkit-scrollbar-track { background: var(--lechome-bg); }
::-webkit-scrollbar-thumb { background: var(--lechome-primary); border-radius: 999px; }

/* ---------- Components ---------- */
.service-card {
    display: block;
    transition: transform .35s ease;
    touch-action: manipulation;
}
.service-card:hover {
    transform: translateY(-4px);
}
.service-card-media {
    transition: box-shadow .35s ease, transform .35s ease;
}
.service-card:hover .service-card-media {
    box-shadow: 0 14px 30px -12px rgba(249, 136, 120, .35);
}
.service-card-emoji {
    display: inline-block;
    transition: transform .45s ease;
}
.service-card:hover .service-card-emoji {
    transform: scale(1.08);
}
.service-card-photo {
    display: block;
    pointer-events: none;
}

/* Top bar social icons */
.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-icon-btn:hover {
    background: var(--gold-gradient);
    color: var(--lechome-gold-deep);
    transform: translateY(-1px);
}

/* Footer social icons */
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social-btn:hover {
    background: var(--gold-gradient);
    color: var(--lechome-gold-deep);
    transform: translateY(-2px);
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(229, 178, 75, 0.2);
    border-radius: 1rem;
    box-shadow: 0 6px 24px -12px rgba(200, 148, 51, 0.15);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.social-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -10px rgba(200, 148, 51, 0.25);
    border-color: rgba(229, 178, 75, 0.45);
}
.social-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .25);
    transition: transform .3s ease;
}
.social-card:hover .social-card-icon {
    transform: scale(1.08);
}

/* Floating action buttons */
.floating-btn {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .25);
    transition: transform .25s ease;
}
.floating-btn:hover { transform: scale(1.08); }

.floating-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.floating-contact-menu {
    margin-bottom: 0.625rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
}
.floating-contact.is-open .floating-contact-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.floating-contact-toggle-icon--close {
    display: none;
}
.floating-contact.is-open .floating-contact-toggle-icon--open {
    display: none;
}
.floating-contact.is-open .floating-contact-toggle-icon--close {
    display: block;
}
.floating-contact.is-open .floating-contact-toggle {
    transform: scale(1.04);
}
.floating-contact-item {
    text-decoration: none;
}
.floating-contact-label {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.96);
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateX(0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.floating-contact.is-open .floating-contact-label {
    opacity: 1;
    transform: translateX(0);
}
.floating-contact.is-open .floating-contact-item:nth-child(1) .floating-contact-label { transition-delay: 0.04s; }
.floating-contact.is-open .floating-contact-item:nth-child(2) .floating-contact-label { transition-delay: 0.08s; }
.floating-contact.is-open .floating-contact-item:nth-child(3) .floating-contact-label { transition-delay: 0.12s; }
.floating-contact.is-open .floating-contact-item:nth-child(1) .floating-btn { transition-delay: 0.04s; }
.floating-contact.is-open .floating-contact-item:nth-child(2) .floating-btn { transition-delay: 0.08s; }
.floating-contact.is-open .floating-contact-item:nth-child(3) .floating-btn { transition-delay: 0.12s; }
.floating-contact-menu .floating-btn {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.85);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.floating-contact.is-open .floating-contact-menu .floating-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.floating-contact-toggle {
    position: relative;
    box-shadow: 0 10px 30px -5px rgba(185, 28, 28, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    /* ลด hover บน touch */
    .service-card:hover {
        transform: none;
    }
    .service-card:active {
        transform: scale(0.98);
    }
}

/* Hero slider (หลายสไลด์) */
#hero .hero-nav {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
#hero .hero-nav:hover {
    background: rgba(255, 255, 255, 0.38);
    border-color: rgba(255, 255, 255, 0.5);
}
#hero[data-hero-banner="1"] .hero-nav {
    border-color: rgba(184, 89, 72, 0.22);
    background: rgba(255, 255, 255, 0.38);
    color: #8b3a2f;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
#hero[data-hero-banner="1"] .hero-nav:hover {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(184, 89, 72, 0.35);
}

#hero .hero-slides { position: relative; height: 100%; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease, visibility 0.65s ease;
    z-index: 1;
    pointer-events: none;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

/* Hero CTA — ลิงก์จากหลังบ้าน + hover ไล่สีทอง */
@keyframes heroCtaGoldHover {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.hero-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.25s ease, color 0.2s ease, border-color 0.2s ease, background 0.25s ease;
}

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

.hero-cta:focus-visible {
    outline: 2px solid var(--lechome-gold-mid);
    outline-offset: 2px;
}

.hero-cta--primary.hero-cta--on-light,
.hero-cta--secondary.hero-cta--on-light {
    padding: 0.52rem 1.05rem;
    font-size: 0.8125rem;
}

.hero-cta--primary.hero-cta--on-light {
    background: var(--lechome-secondary-dark);
    color: #fff;
    box-shadow: 0 3px 10px -4px rgba(184, 89, 72, 0.45);
}

.hero-cta--secondary.hero-cta--on-light {
    background: rgba(255, 255, 255, 0.72);
    color: var(--lechome-secondary-dark);
    border: 1.5px solid rgba(184, 89, 72, 0.55);
    backdrop-filter: blur(4px);
}

.hero-cta--primary.hero-cta--on-dark,
.hero-cta--secondary.hero-cta--on-dark {
    padding: 0.55rem 1.15rem;
    font-size: 0.8125rem;
}

.hero-cta--primary.hero-cta--on-dark {
    background: #fff;
    color: var(--lechome-secondary-dark);
}

.hero-cta--secondary.hero-cta--on-dark {
    background: rgba(133, 62, 50, 0.42);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(6px);
}

.hero-cta--primary:hover,
.hero-cta--secondary:hover {
    background: var(--gold-gradient-shine);
    background-size: 200% auto;
    animation: heroCtaGoldHover 2.4s linear infinite;
    color: var(--lechome-gold-deep);
    border-color: rgba(246, 211, 122, 0.85);
    box-shadow:
        0 0 0 2px rgba(246, 211, 122, 0.45),
        0 10px 26px -8px rgba(200, 148, 51, 0.55);
}

/* Overlay ครอบพื้นที่รูปจริง (object-fit) — ปุ่ม CTA ใช้ % ภายใน overlay นี้ */
.hero-banner-cta-root {
    position: absolute;
    z-index: 15;
    pointer-events: none;
    overflow: visible;
    container-type: inline-size;
    container-name: hero-banner;
}

.hero-banner-actions {
    position: absolute;
    left: var(--hero-cta-x, 22%);
    top: var(--hero-cta-y, 78%);
    transform: translate(-50%, -50%);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: min(88%, 28rem);
    pointer-events: auto;
    justify-content: center;
}

.hero-banner-cta-root .hero-banner-cta {
    position: absolute;
    left: var(--hero-cta-x, 22%);
    top: var(--hero-cta-y, 78%);
    transform: translate(-50%, -50%);
    pointer-events: auto;
    max-width: min(42cqi, 14rem);
    white-space: nowrap;
    z-index: 1;
}

/* ขนาดปุ่มสัดส่วนกับความกว้างแบนเนอร์ — ลดการขยายตัวจนซ้อนทับเมื่อ responsive */
.hero-banner-cta-root .hero-cta--size-xs {
    padding: 0.38em 0.78em;
    font-size: clamp(0.52rem, 2.1cqi, 0.6875rem);
}
.hero-banner-cta-root .hero-cta--size-sm {
    padding: 0.42em 0.88em;
    font-size: clamp(0.58rem, 2.35cqi, 0.75rem);
}
.hero-banner-cta-root .hero-cta--size-md {
    padding: 0.46em 0.98em;
    font-size: clamp(0.62rem, 2.55cqi, 0.8125rem);
}
.hero-banner-cta-root .hero-cta--size-lg {
    padding: 0.52em 1.12em;
    font-size: clamp(0.68rem, 2.85cqi, 0.9375rem);
}

/* Hero banner — aspect 3:1 ทุกขนาดจอ (ไม่พึ่ง Tailwind class อย่างเดียว) */
#hero[data-hero-banner="1"] {
    aspect-ratio: 3 / 1;
    min-height: clamp(140px, 33.33vw, 760px);
}
#hero[data-hero-banner="1"] .hero-slides {
    min-height: inherit;
}
.hero-banner-stage {
    isolation: isolate;
}
.hero-banner-stage picture {
    display: block;
    height: 100%;
    width: 100%;
}
.hero-banner-stage picture img,
.hero-banner-stage > .hero-banner-img,
.hero-banner-stage > img.hero-banner-img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-banner-link {
    cursor: pointer;
}
.hero-banner-link-zone {
    position: absolute;
    z-index: 12;
    display: block;
    pointer-events: auto;
    cursor: pointer;
    background: transparent;
}
.hero-banner-link-zone:focus-visible {
    outline: 2px solid var(--lechome-gold-mid);
    outline-offset: 2px;
}
.hero-banner-link:focus-visible {
    outline: 2px solid var(--lechome-gold-mid);
    outline-offset: -2px;
}

/* ขนาดปุ่ม CTA บนแบนเนอร์ */
.hero-cta--size-xs.hero-cta--on-light,
.hero-cta--size-xs.hero-cta--on-dark {
    padding: 0.35rem 0.7rem;
    font-size: 0.65rem;
}
.hero-cta--size-sm.hero-cta--on-light,
.hero-cta--size-sm.hero-cta--on-dark {
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
}
.hero-cta--size-md.hero-cta--on-light,
.hero-cta--size-md.hero-cta--on-dark {
    padding: 0.52rem 1.05rem;
    font-size: 0.8125rem;
}
.hero-cta--size-lg.hero-cta--on-light,
.hero-cta--size-lg.hero-cta--on-dark {
    padding: 0.62rem 1.35rem;
    font-size: 0.9375rem;
}

/* ปุ่มบนแบนเนอร์ — คงจุด anchor ไว้ ไม่ให้ hover เด้ง */
.hero-banner-cta-root .hero-banner-cta:hover {
    transform: translate(-50%, -50%);
}

@media (min-width: 640px) {
    .hero-cta--primary.hero-cta--on-light:not(.hero-banner-cta),
    .hero-cta--secondary.hero-cta--on-light:not(.hero-banner-cta) {
        padding: 0.6rem 1.25rem;
        font-size: 0.875rem;
    }

    .hero-cta--primary.hero-cta--on-dark:not(.hero-banner-cta),
    .hero-cta--secondary.hero-cta--on-dark:not(.hero-banner-cta) {
        padding: 0.62rem 1.3rem;
        font-size: 0.875rem;
    }

    .hero-banner-actions {
        gap: 0.4rem;
    }
}

/* Promotion grid — 4 รูปแนวตั้งต่อชุด */
.promo-slide-root { padding-left: 0.25rem; padding-right: 0.25rem; }
@media (min-width: 640px) {
    .promo-slide-root { padding-left: 1.75rem; padding-right: 1.75rem; }
}
.promo-pages { position: relative; min-height: 1px; }
.promo-page {
    display: none;
    opacity: 0;
    transition: opacity 0.45s ease;
}
.promo-page.is-active {
    display: block;
    opacity: 1;
}
.promo-card img {
    display: block;
    pointer-events: none;
}
button.promo-card {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

/* ---------- Mobile UX ---------- */
@media (max-width: 639px) {
    /* กันเนื้อหาชิดขอบ / ชนแถบล่าง */
    main {
        overflow-x: clip;
    }
    #hero[data-hero-banner="1"] .hero-banner-cta-root .hero-banner-cta {
        max-width: min(44cqi, 12rem);
    }
    .home-review-card,
    .fb-review-card {
        width: min(100%, 86vw) !important;
    }
    /* ปุ่มโซเชียล Follow Us กดง่ายขึ้น */
    .social-card {
        padding: 1rem 0.75rem;
        min-height: 5.5rem;
    }
}

/* Safe area สำหรับ notch / home indicator */
@supports (padding: max(0px)) {
    body {
        padding-bottom: max(4.25rem, calc(4.25rem + env(safe-area-inset-bottom)));
    }
    @media (min-width: 1024px) {
        body {
            padding-bottom: 0;
        }
    }
}

/* Touch targets */
.touch-manipulation {
    touch-action: manipulation;
}
@media (hover: none) {
    .service-card:hover .service-card-photo {
        transform: none;
    }
}

/* Mobile full menu */
.mobile-menu-overlay.is-open {
    transform: translateY(0) !important;
}
#mobileMenuBackdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
body.mobile-menu-locked {
    overflow: hidden;
    touch-action: none;
}

/* Fade-up stagger on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Prevent horizontal overflow on small screens */
body {
    overflow-x: hidden;
    font-family: var(--font-sans);
}

/* หัวข้อที่ใช้ class font-display — ฟอนต์เดียวกับระบบ + ligatures */
.font-display {
    font-family: var(--font-sans);
    font-feature-settings: "liga" 1;
}

/* เนื้อหาหน้านโยบาย/ข้อกำหนด — จัดรูปแบบ HTML ที่กรอกจากหลังบ้าน */
.legal-prose > * + * { margin-top: 1rem; }
.legal-prose h2 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    line-height: 1.3;
    color: #9e4a3b;
    margin-top: 2rem;
    margin-bottom: .75rem;
}
.legal-prose h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #b85948;
    margin-top: 1.5rem;
}
.legal-prose ul,
.legal-prose ol { padding-left: 1.5rem; }
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li + li { margin-top: .35rem; }
.legal-prose a { color: #b85948; text-decoration: underline; }
.legal-prose a:hover { color: #853e32; }
.legal-prose strong { color: #334155; }

/* LE CHOME — inline SVG icons */
.lechome-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 0;
}
.lechome-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}
.service-card-emoji .lechome-icon {
    filter: drop-shadow(0 2px 8px rgba(248, 136, 120, 0.25));
}

/* Review page — filter + 1:1 grid */
.review-filter-btn .review-filter-icon .lechome-icon {
    filter: drop-shadow(0 1px 2px rgba(248, 136, 120, 0.2));
}
.review-filter-btn[aria-selected="true"] .review-filter-icon {
    background: linear-gradient(135deg, #fff5f3 0%, #ffe8e4 100%);
    box-shadow: 0 4px 14px rgba(248, 136, 120, 0.18);
    outline: 1px solid rgba(248, 136, 120, 0.28);
}
.review-album-section {
    scroll-margin-top: 9rem;
}
@media (min-width: 640px) {
    .review-album-section {
        scroll-margin-top: 9.5rem;
    }
}
@media (min-width: 768px) {
    .review-album-section {
        scroll-margin-top: 10.5rem;
    }
}
.review-album-section + .review-album-section {
    padding-top: 0.5rem;
}
.review-album-open:active {
    transform: scale(0.98);
}
.article-card img {
    object-position: center;
}
.article-card-media {
    touch-action: manipulation;
}
.article-card-photo {
    display: block;
    pointer-events: none;
}
.review-category-nav {
    position: sticky;
    z-index: 30;
    top: 3.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.75rem;
    background: linear-gradient(to bottom, #ffffff 70%, rgba(255, 255, 255, 0));
}
@media (min-width: 640px) {
    .review-category-nav {
        top: 4rem;
    }
}
@media (min-width: 768px) {
    .review-category-nav {
        top: 5rem;
    }
}
.review-category-nav.is-hidden {
    display: none;
}
.review-category-nav-track {
    scrollbar-width: thin;
    scrollbar-color: rgba(248, 136, 120, 0.45) transparent;
    -webkit-overflow-scrolling: touch;
}
.review-category-nav-track::-webkit-scrollbar {
    height: 6px;
}
.review-category-nav-track::-webkit-scrollbar-thumb {
    background: rgba(248, 136, 120, 0.4);
    border-radius: 999px;
}
.review-category-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 5rem;
    padding: 0.25rem 0.125rem;
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}
@media (min-width: 640px) {
    .review-category-nav-btn {
        width: 5.5rem;
    }
}
.review-category-nav-btn:focus-visible {
    outline: 2px solid var(--lechome-primary);
    outline-offset: 2px;
}
.review-category-nav-icon {
    --review-icon-size: 3.625rem;
    --review-icon-border: rgba(255, 227, 236, 0.8);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--review-icon-size);
    height: var(--review-icon-size);
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0;
    border: 1px solid var(--review-icon-border);
    box-shadow: 0 4px 20px -10px rgba(248, 136, 120, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (min-width: 640px) {
    .review-category-nav-icon {
        --review-icon-size: 4.125rem;
    }
}
.review-category-nav-btn:hover .review-category-nav-icon,
.review-category-nav-btn:focus-visible .review-category-nav-icon {
    transform: translateY(-2px);
    border-color: rgba(255, 194, 213, 0.95);
    box-shadow: 0 8px 24px -10px rgba(248, 136, 120, 0.2);
}
.review-category-nav-icon > * {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}
.review-category-nav-icon img {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    object-fit: cover;
    padding: 0;
    background: #fff;
}
.review-category-nav-icon .lechome-icon {
    width: 86% !important;
    height: 86% !important;
    max-width: none;
    max-height: none;
}
.review-category-nav-btn[aria-selected="true"] .review-category-nav-icon {
    background: #fff;
    border-color: rgba(255, 194, 213, 1);
    box-shadow: 0 6px 20px -10px rgba(248, 136, 120, 0.22);
}
.review-category-nav-label {
    display: block;
    max-width: 100%;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 640px) {
    .review-category-nav-label {
        font-size: 0.75rem;
    }
}
.review-category-nav-btn[aria-selected="true"] .review-category-nav-label {
    color: var(--lechome-secondary-dark);
}
.review-category-nav-icon .lechome-icon {
    filter: drop-shadow(0 1px 2px rgba(248, 136, 120, 0.15));
}
.review-grid .review-card .aspect-square {
    isolation: isolate;
}
.review-grid .review-card img {
    object-position: center top;
}

/* Review gallery lightbox — เต็มหน้าจอ */
.review-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.review-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.review-lightbox[hidden] {
    display: flex !important;
}
.review-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: #0a0a0a;
}
.review-lightbox-panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    pointer-events: none;
}
.review-lightbox-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    background: #0a0a0a;
    pointer-events: auto;
    user-select: none;
    -webkit-user-drag: none;
}
.review-lightbox-caption {
    position: fixed;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 2.5rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
    pointer-events: none;
}
.review-lightbox-counter {
    position: fixed;
    z-index: 4;
    top: max(1rem, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    pointer-events: none;
}
.review-lightbox-close,
.review-lightbox-nav {
    position: fixed;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}
.review-lightbox-close:hover,
.review-lightbox-nav:hover {
    background: rgba(248, 136, 120, 0.45);
}
.review-lightbox-close {
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
}
.review-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
}
.review-lightbox-nav:hover {
    transform: translateY(-50%) scale(1.06);
}
.review-lightbox-prev {
    left: max(0.75rem, env(safe-area-inset-left));
}
.review-lightbox-next {
    right: max(0.75rem, env(safe-area-inset-right));
}
.review-lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
body.review-lightbox-open {
    overflow: hidden;
    touch-action: none;
}
.review-lightbox-trigger:focus-visible {
    outline: 2px solid #f98878;
    outline-offset: 3px;
}

/* การ์ดรีวิว Facebook — carousel หน้าแรก / review */
.fb-review-card {
    display: flex;
    flex-direction: column;
    min-height: 11.5rem;
    padding: 1.15rem 1.2rem 1rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.95);
}
.fb-review-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.fb-review-card__avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25);
}
.fb-review-card__avatar--initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: none;
}
.fb-review-card__meta {
    flex: 1 1 auto;
}
.fb-review-card__name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.fb-review-card__time {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #64748b;
}
.fb-review-card__platform {
    flex-shrink: 0;
    color: #1877f2;
    opacity: 0.92;
    margin-top: 0.1rem;
}
.fb-review-card__stars {
    display: flex;
    gap: 0.125rem;
    margin-top: 0.85rem;
}
.fb-review-card__text {
    margin: 0.75rem 0 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #334155;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    flex: 1 1 auto;
}
.fb-review-card__footer {
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}
.fb-review-card__link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1877f2;
    text-decoration: none;
}
.fb-review-card__link:hover {
    color: #166fe5;
    text-decoration: underline;
}

.home-review-carousel {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

/* สไลด์บริการหน้าแรก — รูปแบบเดียวกับโปรโมชั่น (4 รายการต่อชุด) */
.service-slide-root {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
}
@media (min-width: 640px) {
    .service-slide-root {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}
.service-slide-pages {
    position: relative;
    min-height: 1px;
    /* ความสูงบล็อกชื่อใต้รูป — ใช้จัดปุ่มให้อยู่กลางรูปเท่านั้น */
    --service-slide-caption: 3.25rem;
}
@media (min-width: 640px) {
    .service-slide-pages { --service-slide-caption: 3.75rem; }
}
@media (min-width: 768px) {
    .service-slide-pages { --service-slide-caption: 4.5rem; }
}
@media (min-width: 1024px) {
    .service-slide-pages { --service-slide-caption: 5rem; }
}
.service-slide-prev,
.service-slide-next {
    top: calc((100% - var(--service-slide-caption)) / 2);
}
.service-slide-prev { left: -2.75rem; }
.service-slide-next { right: -2.75rem; }
@media (min-width: 640px) {
    .service-slide-prev { left: -3rem; }
    .service-slide-next { right: -3rem; }
}
.service-slide-page {
    display: none;
    opacity: 0;
    transition: opacity 0.45s ease;
}
.service-slide-page.is-active {
    display: block;
    opacity: 1;
}
