/* ============================================
   CareHome Compare Table
   ============================================ */

#carehome-compare-wrap {
    font-family: inherit;
    max-width: 100%;
}

/* --- แถบค้นหาหลัก — เด่นแยกจากตัวกรองย่อย --- */
.ch-searchbar {
    margin-bottom: 12px;
}

.ch-searchbar-inner {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 620px;
    margin: 0 auto;
}

.ch-search-icon {
    position: absolute;
    left: 16px;
    font-size: 17px;
    pointer-events: none;
    opacity: .75;
}

#ch-search {
    width: 100%;
    padding: 14px 44px 14px 46px;
    font-size: 16px;          /* ต่ำกว่า 16px iOS จะซูมหน้าจอตอนกดพิมพ์ */
    border: 2px solid #E5DDD2;
    border-radius: 999px;
    background: #fff;
    color: #2B2420;
    box-shadow: 0 2px 10px rgba(43, 36, 32, 0.06);
    transition: border-color .15s ease, box-shadow .15s ease;
}

#ch-search::placeholder { color: #9c9186; }

#ch-search:focus {
    outline: none;
    border-color: #C0532A;
    box-shadow: 0 4px 16px rgba(192, 83, 42, 0.18);
}

#ch-search-clear {
    position: absolute;
    right: 12px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #E5DDD2;
    color: #6B5F52;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ch-search-clear:hover { background: #D8CFC4; color: #2B2420; }

/* --- ป้ายตัวกรองที่เปิดอยู่ --- */
.ch-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: -6px 0 16px;
}

.ch-active-filters[hidden] { display: none; }

.ch-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FBF5EC;
    border: 1px solid #C0532A;
    color: #7A3517;
    border-radius: 999px;
    padding: 4px 4px 4px 12px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 100%;
}

/* คำค้นยาวๆ ต้องไม่ดันป้ายจนล้นจอ */
.ch-chip > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 24px คือขั้นต่ำตาม WCAG 2.5.8 — เล็กกว่านี้นิ้วกดพลาดบนมือถือ */
.ch-chip-x {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #7A3517;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ch-chip-x:hover { background: #C0532A; color: #fff; }
.ch-chip-x:focus-visible { outline: 2px solid #C0532A; outline-offset: 2px; }

.ch-chip-clear-all {
    border: none;
    background: transparent;
    color: #6B5F52;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 6px;
}

.ch-chip-clear-all:hover { color: #C0532A; }

/*
 * --- Filters ---
 * .ch-filters เป็น <details> ตั้งแต่ v1.29.0 (เดิมเป็น <div>) — พับได้เพื่อกันตัวกรอง
 * 21 ตัวโชว์รวดเดียวบนมือถือ (เคยกิน 1.7 หน้าจอ วัดจริงที่ 375×812)
 * compare.js เป็นคนสั่งเปิด/ปิดจริง (ดูฟังก์ชัน initFiltersPanel) — CSS แค่จัดหน้าตา
 */
.ch-filters {
    background: #FAF7F3;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 0;
}

.ch-filters > summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 600;
    color: #2B2420;
    list-style: revert;
}
.ch-filters > summary:focus-visible { outline: 2px solid #C0532A; outline-offset: -2px; }

.ch-filters-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 0 16px 16px;
}

.ch-filters input[type="text"],
.ch-filters select {
    padding: 8px 12px;
    border: 1px solid #E5DDD2;
    border-radius: 6px;
    font-size: 14px;
    width: auto !important;
    flex: 0 1 200px;
    min-width: 160px;
}

.ch-filters input[type="text"]:focus,
.ch-filters select:focus {
    outline: none;
    border-color: #C0532A;
}

/* กลุ่มตัวกรองรอง 18 ตัว — พับซ้อนอยู่ในกลุ่มหลักอีกชั้น ปิดไว้เสมอเว้นแต่มีค่าจาก URL */
.ch-filters-more {
    flex-basis: 100%;
    background: #fff;
    border: 1px solid #E5DDD2;
    border-radius: 6px;
    padding: 0;
}

.ch-filters-more > summary {
    cursor: pointer;
    padding: 10px 12px;
    font-size: 14px;
    color: #6B5F52;
    list-style: revert;
}
.ch-filters-more > summary:focus-visible { outline: 2px solid #C0532A; outline-offset: -2px; }

.ch-filters-more-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 0 12px 12px;
}

.ch-checkboxes,
.ch-special-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 14px;
}

.ch-checkboxes label,
.ch-special-cases label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
}

#ch-reset {
    padding: 8px 14px;
    background: #fff;
    color: #6B5F52 !important;
    border: 1px solid #D8CFC4;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none !important;
}

#ch-reset:hover { background: #F0E8DE; color: #2B2420 !important; }

#ch-count {
    font-size: 13px;
    color: #666;
    margin-left: auto;
}

/*
 * ไม่พบบ้านพัก — เนื้อหาสร้างด้วย compare.js (2 แบบ ตามสาเหตุ ดูคอมเมนต์ใน includes/shortcode-compare.php)
 * เดิมเป็น <p style="..."> ข้อความเดียว ย้ายมาเป็น class เพราะตอนนี้มีลิงก์ปุ่ม LINE ด้วยในบางกรณี
 */
.ch-no-result {
    text-align: center;
    padding: 2rem 1rem;
    color: #6B5F52;
}
.ch-no-result p { margin: 0 0 14px; font-size: 15px; }
.ch-no-result .ch-no-result-cta {
    display: inline-block;
    padding: 10px 20px;
    background: #06C755;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
}
.ch-no-result .ch-no-result-cta:hover { background: #05a648; }

/* --- Table --- */
.ch-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #F0E8DE;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(43, 36, 32, 0.05);
}

#ch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#ch-table th {
    background: #C0532A;
    color: #fff;
    padding: 12px 12px;
    text-align: left;
    white-space: nowrap;
    font-weight: 600;
}
#ch-table th:first-child { border-top-left-radius: 11px; }
#ch-table th:last-child { border-top-right-radius: 11px; }

#ch-table th.sortable {
    cursor: pointer;
    user-select: none;
}

#ch-table th.sortable:hover { background: #A6431F; }
#ch-table th.sort-asc::after  { content: ' ↑'; }
#ch-table th.sort-desc::after { content: ' ↓'; }

/* ให้คนที่ใช้คีย์บอร์ดเห็นว่าโฟกัสอยู่ตรงไหน */
#ch-table th.sortable:focus-visible {
    outline: 3px solid #ffd24d;
    outline-offset: -3px;
}

/* ห้องว่าง — ข้อมูลที่เก่าเร็ว ต้องเข้ามาดูเอง */
.ch-vacancy { white-space: nowrap; font-weight: 600; }
.ch-vac-yes     { color: #1e7e45; }
.ch-vac-no      { color: #b3261e; }
.ch-vac-unknown { color: #888; font-weight: 400; }

#ch-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #F0E8DE;
    vertical-align: middle;
}

#ch-table tbody tr:hover { background: #FDF8F2; }
#ch-table tbody tr:nth-child(even) { background: #fafafa; }
#ch-table tbody tr:nth-child(even):hover { background: #FDF8F2; }

/*
 * กันคอลัมน์ชื่อบ้านพักถูกบีบจนตัวอักษรไทยตกบรรทัดละ 1 ตัว
 * ตาราง #ch-table ใช้ table-layout: auto — ถ้าไม่มี min-width คอลัมน์นี้จะถูกบีบก่อนคอลัมน์อื่น
 * เพราะ .ch-name-text มี min-width:0 (จำเป็นสำหรับ flex truncation) ในขณะที่ th อื่นๆ มี white-space:nowrap
 * บังคับความกว้างของตัวเอง — เบราว์เซอร์จะดัน .ch-table-wrap ให้ scroll แนวนอนแทนการบีบคอลัมน์นี้
 */
.ch-name { min-width: 190px; }

.ch-name a {
    color: #C0532A;
    text-decoration: none !important;
    font-weight: 500;
}
.ch-name a:hover { text-decoration: underline !important; }

/* รูปโปรไฟล์บ้านพัก — วงกลมข้างชื่อ */
.ch-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-name-text { min-width: 0; }

/* ลิงก์ "ดูรูปจากเว็บบ้านพัก" — โผล่เฉพาะแถวที่ยังไม่มีรูปจริงของเรา แต่บ้านพักมีเว็บของตัวเอง */
.ch-name-site {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #6B5F52;
    text-decoration: none;
    white-space: nowrap;
}
.ch-name-site:hover { color: #C0532A; text-decoration: underline; }

.ch-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #FBF5EC;
    border: 1px solid #E5DDD2;
}

/* ยังไม่มีรูปจริง = ไอคอนแบรนด์ ทำให้จางลงนิดเพื่อให้ต่างจากรูปจริงชัดเจน */
.ch-avatar-placeholder {
    object-fit: contain;
    padding: 4px;
    opacity: .55;
}

/* กันกรณีหารูป placeholder ไม่เจอ — วงกลมครีมเปล่า ดีกว่ารูปแตก */
.ch-avatar-empty { display: block; }

.ch-badge-soon {
    display: inline-block;
    font-size: 11px;
    color: #888;
    background: #F0E8DE;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.ch-badge-featured {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #b9770e;
    background: #fff4e0;
    border: 1px solid #f0c078;
    padding: 2px 7px;
    border-radius: 4px;
    margin-right: 6px;
}

/* --- คะแนนความโปร่งใสของข้อมูล (ไม่ใช่คะแนนคุณภาพ) --- */
.ch-score {
    display: inline-block;
    font-weight: 700;
    font-size: 13px;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
}
.ch-score-high { background: #e6f7ec; color: #1e7e45; border: 1px solid #9dd8b4; }
.ch-score-mid  { background: #fff6e0; color: #9a6b06; border: 1px solid #f0cf85; }
.ch-score-low  { background: #f1f3f5; color: #777;    border: 1px solid #dde1e4; }

/* กล่องคะแนนในหน้ารายที่พัก */
.ch-score-box {
    border: 1px solid #e3e7ea;
    border-radius: 12px;
    padding: 18px 20px;
    background: #fbfcfd;
}
.ch-score-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}
.ch-score-title { font-size: 16px; font-weight: 700; }
.ch-score-sub   { font-size: 12.5px; color: #667; margin-top: 3px; line-height: 1.5; }
.ch-score-num {
    font-size: 26px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1.2;
}
.ch-score-num span { font-size: 15px; font-weight: 600; opacity: .65; }

.ch-score-list { list-style: none; margin: 0; padding: 0; }
.ch-score-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed #e8ebee;
    font-size: 14px;
}
.ch-score-list li:last-child { border-bottom: none; }
.ch-score-mark { width: 16px; flex-shrink: 0; font-weight: 700; }
.ch-score-list .ch-pass .ch-score-mark { color: #1e7e45; }
.ch-score-list .ch-fail .ch-score-mark { color: #b8bfc4; }
.ch-score-list .ch-fail .ch-score-label { color: #8a9096; }
.ch-score-label { flex: 1; min-width: 0; }
.ch-score-detail { color: #667; font-size: 13px; text-align: right; }

.ch-score-note {
    margin: 12px 0 0;
    padding: 9px 12px;
    background: #FBF5EC;
    border-left: 3px solid #C0532A;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #445;
}

.ch-gmaps-wrap { margin-top: 14px; font-size: 14px; }
.ch-gmaps-link {
    display: inline-block;
    color: #C0532A;
    text-decoration: none !important;
    border-bottom: 1px solid #E5DDD2;
}
.ch-gmaps-link:hover { border-bottom-color: #C0532A; }

@media (max-width: 600px) {
    .ch-score-head { flex-direction: column; }
    .ch-score-list li { flex-wrap: wrap; }
    .ch-score-detail { text-align: left; width: 100%; padding-left: 26px; }
}

/* แถวบ้านพักแนะนำ — ไฮไลต์อ่อนๆ + เส้นทองด้านซ้าย */
#ch-table tbody tr.ch-row-featured {
    background: #fffdf7;
    box-shadow: inset 3px 0 0 #f0c078;
}
#ch-table tbody tr.ch-row-featured:hover { background: #fff9ec; }

.ch-verified {
    display: inline-block;
    font-size: 11px;
    color: #fff;
    background: #27ae60;
    padding: 2px 6px;
    border-radius: 4px;
}

.ch-price { font-weight: 600; color: #C0532A; }

/* ราคาห้ามโชว์เปล่าๆ ต้องบอกเสมอว่าเป็นห้องแบบไหน ไม่งั้นเทียบข้ามที่กันไม่ได้
   (ชื่อ .ch-room-note ไม่ใช่ .ch-price-note เพราะชื่อนั้นถูกใช้ในหน้ารายละเอียดแล้ว คนละความหมาย) */
.ch-room-note {
    display: block;
    font-size: 11.5px;
    font-weight: 400;
    color: #6B5F52;
    margin-top: 2px;
    white-space: nowrap;
}

/* คิวรอ — สีบอกระดับความเร่งด่วน */
.ch-vac-short { color: #9a6b06; }
.ch-vac-long  { color: #b3261e; }

.ch-btn-detail,
.ch-btn-quote {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    margin: 2px;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.ch-btn-detail {
    background: #FBF5EC;
    color: #C0532A !important;
    border: 1px solid #C0532A;
}

.ch-btn-quote {
    background: #C0532A;
    color: #fff !important;
}

.ch-btn-detail:hover { background: #C0532A; color: #fff !important; }
.ch-btn-quote:hover  { background: #A6431F; }

/* ============================================
   Mobile Cards (แทนตาราง บน < 768px)
   ============================================ */
@media (max-width: 767px) {
    /* .ch-filters/.ch-filters-more เป็น <details> — จัดแนวเนื้อหาข้างในให้เรียงเป็นคอลัมน์บนจอแคบ */
    .ch-filters-body,
    .ch-filters-more-body {
        flex-direction: column;
        align-items: stretch;
    }

    /*
     * 🔴 ต้องรีเซ็ต flex ด้วย ไม่ใช่แค่ width
     *
     * กฎเดสก์ท็อปตั้ง `flex: 0 1 200px` ไว้ ซึ่งบนแถวแนวนอนหมายถึง "กว้าง 200px"
     * แต่บนมือถือคอนเทนเนอร์เป็น flex-direction: column → flex-basis ไปคุม "ความสูง" แทน
     * ผลคือ select ทุกอันสูง 200px (วัดจริง 3 อัน = 600px) กล่องตัวกรองเลยบวมผิดสัดส่วน
     * `flex: 0 0 auto` ทำให้กลับไปใช้ความสูงตามเนื้อหาจริง
     */
    .ch-filters input[type="text"],
    .ch-filters select {
        width: 100%;
        min-width: unset;
        flex: 0 0 auto;
    }

    #ch-count { margin-left: 0; }

    /* สร้าง card layout จาก table rows */
    .ch-table-wrap { display: block; }
    #ch-table { display: block; }
    #ch-table thead { display: none; }
    #ch-table tbody { display: block; }

    #ch-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #F0E8DE;
        border-radius: 10px;
        padding: 14px;
        margin-bottom: 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,.06);
    }

    #ch-table tbody tr:hover { background: #fff; }
    #ch-table tbody tr:nth-child(even) { background: #fff; }

    #ch-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        border-bottom: 1px solid #F0E8DE;
        padding: 6px 0;
        font-size: 13px;
    }

    #ch-table td:last-child { border-bottom: none; }

    #ch-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #444;
        flex-shrink: 0;
        margin-right: 10px;
        min-width: 90px;
    }

    /* ป้ายกำกับประเภทห้องต้องขึ้นบรรทัดใหม่ใต้ราคา ไม่ใช่ต่อท้ายจนล้น */
    #ch-table td.ch-price { flex-wrap: wrap; justify-content: flex-end; }
    #ch-table td.ch-price::before { flex: 1 0 auto; }
    .ch-room-note { width: 100%; text-align: right; white-space: normal; }

    /*
     * การ์ดแบบย่อ (v1.29.0) — เห็นทันทีแค่ 5 แถว: ชื่อ · เขต/โซน · ราคาเริ่มต้น · ระดับดูแล · ดำเนินการ
     * 7 คอลัมน์ที่เหลือ (สไตล์/พยาบาล/ผู้ดูแล/คิวรอ/ใบอนุญาต/ข้อมูลครบ/อัปเดตเมื่อ) ซ่อนไว้หลังปุ่ม
     * "ดูข้อมูลเพิ่มเติม" ต่อการ์ด — ทำให้การ์ดสูงเฉลี่ยลดจาก ~657px เหลือระดับ ~250-300px (วัดจริงหลัง deploy)
     *
     * ⚠️ ใช้ display:none ไม่ใช่ลบออกจาก DOM — compare.js filter/sort ยังอ่าน data-* จาก <tr> ได้ปกติ
     * ไม่ต้องกังวลว่าซ่อนแล้วตัวกรองจะพังเพราะตัวกรองไม่ได้อ่านจาก td ที่ซ่อนอยู่แล้ว
     */
    #ch-table tbody tr .ch-mobile-extra { display: none; }
    #ch-table tbody tr.ch-row-expanded .ch-mobile-extra { display: flex; }

    .ch-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        margin-top: 6px;
    }
    /* "ดำเนินการ" อ่านออกจากปุ่มอยู่แล้ว ไม่ต้องมีป้ายซ้ำกินที่ */
    .ch-actions::before { display: none; }

    /*
     * ปุ่มสัมผัสบนมือถือ ≥44px (แนวทาง Apple HIG / Google Material)
     * เดิมสูง 31-35px — ยังกดได้ (เกิน 24px ขั้นต่ำของ WCAG AA) แต่นิ้วโป้งบนจอเล็กพลาดง่าย
     * ⚠️ ปรับเฉพาะในสโคปมือถือ ไม่แตะกฎเดิมของ .ch-btn-detail/.ch-btn-quote ที่ใช้ในตารางเดสก์ท็อปด้วย
     * (เดสก์ท็อปใช้เมาส์ ไม่ต้องมีเป้ากดใหญ่ขนาดนั้น แถวจะสูงขึ้นโดยไม่จำเป็น)
     */
    .ch-actions .ch-btn-detail,
    .ch-actions .ch-btn-quote {
        flex: 1 1 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 16px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .ch-row-toggle {
        order: -1;               /* ให้ปุ่มนี้ขึ้นก่อนปุ่มอื่นเสมอ อ่านง่ายกว่า */
        width: 100%;
        min-height: 44px;
        padding: 12px 10px;
        background: #fff;
        border: 1px solid #E5DDD2;
        border-radius: 6px;
        color: #6B5F52;
        font-size: 13px;
        cursor: pointer;
        text-align: center;
        box-sizing: border-box;
    }
    .ch-row-toggle:hover { background: #FAF7F3; }
}

/* ปุ่ม "ดูข้อมูลเพิ่มเติม" มีความหมายเฉพาะ card layout บนมือถือ — เดสก์ท็อปเห็นครบทุกคอลัมน์อยู่แล้ว */
@media (min-width: 768px) {
    .ch-row-toggle { display: none; }
}

/* ============================================
   บทนำสั้น + เนื้อหา SEO ใต้ตาราง + FAQ — v1.31.0
   ============================================ */

.ch-compare-lead {
    max-width: 720px;
    margin: 0 auto 20px;
    color: #6B5F52;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}
.ch-compare-lead a { color: #C0532A; font-weight: 600; }

.ch-compare-guide {
    max-width: 760px;
    margin: 3rem auto 0;
}

.ch-guide-section { margin-bottom: 2.25rem; }
.ch-guide-section h2 { margin-bottom: 10px; }
.ch-guide-section > p { color: #2B2420; line-height: 1.75; margin: 0 0 12px; }

.ch-guide-list {
    margin: 0;
    padding-left: 1.3em;
    color: #2B2420;
    line-height: 1.75;
}
.ch-guide-list li { margin-bottom: 10px; }
.ch-guide-list li:last-child { margin-bottom: 0; }
.ch-guide-list strong { color: #C0532A; }

.ch-guide-faq h2 { margin-bottom: 14px; }

.ch-faq-item {
    background: #FBF5EC;
    border: 1px solid #F0E8DE;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
}
.ch-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: #2B2420;
    list-style: none;
}
.ch-faq-item summary::-webkit-details-marker { display: none; }
.ch-faq-item summary::before {
    content: '+';
    display: inline-block;
    width: 1.1em;
    color: #C0532A;
    font-weight: 700;
}
.ch-faq-item[open] summary::before { content: '−'; }
.ch-faq-item p {
    margin: 10px 0 0;
    padding-left: 1.1em;
    color: #6B5F52;
    line-height: 1.75;
}

@media (max-width: 600px) {
    .ch-compare-guide { margin-top: 2rem; }
    .ch-guide-section { margin-bottom: 1.75rem; }
}

/* ============================================================
   แผนที่ราคา (v1.34.0)
   หมุดเขียนราคาไว้บนตัวหมุดเลย — จุดต่างจากคู่แข่งที่มีแต่หมุดเปล่า
   ============================================================ */

.ch-map-panel { margin: 0 0 1rem; }

.ch-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #E0D5C8;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #2B2420;
    cursor: pointer;
    /* ปุ่มบนมือถือต้องแตะได้ถนัด — โครงการนี้ตั้งเกณฑ์ไว้ที่ 44px ทุกปุ่ม */
    min-height: 44px;
    transition: border-color .15s ease, background .15s ease;
}
.ch-map-toggle:hover  { border-color: #C0532A; background: #FDF8F4; }
.ch-map-toggle[aria-expanded="true"] { border-color: #C0532A; background: #FDF8F4; }

.ch-map {
    height: 420px;
    margin-top: 10px;
    border: 1.5px solid #E0D5C8;
    border-radius: 12px;
    /* กันมุมแผนที่ทะลุขอบโค้ง (tile เป็นสี่เหลี่ยมเสมอ) */
    overflow: hidden;
    background: #F5F0EA;
}

.ch-map-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6B5F52;
    line-height: 1.6;
}

/* หมุดราคา — divIcon ไม่ใช่ marker รูปภาพ จึงจัดสไตล์ด้วย CSS ได้ทั้งหมด */
.ch-pin {
    background: #C0532A;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 999px;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
    border: 1.5px solid #fff;
}
/* บ้านพักแนะนำ — สีต่างเพื่อให้เห็นก่อนในกลุ่มหมุดที่ทับกัน */
.ch-pin-featured { background: #1a6b3c; }
/* ยังไม่เปิดเผยราคา — สีจางลง ไม่แย่งสายตาจากหมุดที่มีราคาจริง */
.ch-pin-noprice  { background: #8A7A6A; font-weight: 600; }

.ch-pin-pop-name  { font-weight: 700; margin: 0 0 4px; font-size: 14px; }
.ch-pin-pop-price { margin: 0 0 2px; color: #C0532A; font-weight: 700; }
.ch-pin-pop-note  { margin: 0 0 6px; color: #6B5F52; font-size: 12px; }
.ch-pin-pop a     { font-size: 13px; font-weight: 600; }

@media (max-width: 600px) {
    .ch-map { height: 320px; }
    .ch-map-toggle { width: 100%; justify-content: center; }
}
