/* ══════════════════════════════════════════════════════
   hotel.css  –  Accommodation Page Styles
   Fonts: Playfair Display (display) + IBM Plex Sans Thai (body)
════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');
/* ── Variables ── */
:root {
    --primary: #1a3a6b;
    --primary-d: #122d5a;
    --accent: #c8973a;
    --accent-light: #f5e6c8;
    --bg: #ffffff;
    --card: #ffffff;
    --border: #e8e4df;
    --border-dark: #ccc8c2;
    --text: #1c1c1e;
    --text-2: #4a4a52;
    --muted: #8a8a96;
    --red: #c0392b;
    --green: #2d7a52;
    --yellow: #c8973a;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, .06), 0 2px 12px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .04);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .06);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sarabun', 'IBM Plex Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.card-name-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 4px;
}
.card-name-row .card-name {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}
.btn-map-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: #1a3a6b;
    border-radius: 5px;
    text-decoration: none;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background .15s, transform .15s;
}
.btn-map-pin:hover {
    background: #2257c5;
    transform: scale(1.1);
}

.btn-map-pin i {
    color: #fff;
    font-size: .8rem;
}
/* ══ PAGE HEADER ══ */
.page-header {
    background: #ffffff;
    padding: 96px 72px 48px;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.header-eyebrow {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.header-title-block { display: flex; align-items: baseline; gap: 16px; }


.header-title-th {
    font-family: 'Prompt', sans-serif;
    font-size: 2.6rem; color: var(--text); line-height: 1.1; font-weight: 700;
}

.header-title-en {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: .75rem; font-weight: 400; color: var(--muted);
    letter-spacing: .28em; text-transform: uppercase;
    align-self: flex-end; padding-bottom: 8px;
}

.header-sub {
    font-size: .88rem;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.7;
    margin-top: 10px;
}

/* ══ MAIN CONTENT ══ */
.main-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 44px 36px 80px;
}

/* ── Section label ── */
.section-label {
    font-size: 1rem;          /* was .7rem */
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .08em;    /* was .14em — reduce so wider text fits */
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 2px;              /* was 1px */
    background: var(--border);
}

/* ══ HOTEL GRID ══ */
.hotel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* ══ SPECIAL CARD ══ */
.hotel-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hotel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.hotel-card.special-card {
    grid-column: span 3;
    flex-direction: row;
    border-color: #ddd0b8;
    box-shadow: var(--shadow-sm);
}

.hotel-card.special-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .13);
    transform: translateY(-2px);
}

/* Special card image panel */
.special-img-wrap {
    width: 280px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.special-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.special-img-wrap .img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 240px;
    background: linear-gradient(135deg, #e8dfc8 0%, #d4c9b0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(100, 80, 40, .25);
}

/* Special card content */
.special-content {
    padding: 28px 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.special-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
    background: #fdff96;
    color: #7a5a1a;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    width: fit-content;
}

.special-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 6px;
    font-weight: 400;
}

.special-address {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.special-stars {
    color: var(--accent);
    font-size: .9rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.special-divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
}

.special-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
    flex: 1;
}

.special-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    color: var(--text-2);
}

.special-meta-row .mi {
    color: var(--muted);
    font-size: .78rem;
    width: 14px;
    flex-shrink: 0;
    text-align: center;
}

.special-meta-row strong {
    color: var(--text);
    font-weight: 600;
}

/* Special action */
.special-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-special-book {
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
    letter-spacing: .02em;
}

.btn-special-book:hover {
    background: var(--primary-d);
}

.btn-special-info {
    padding: 10px 18px;
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.btn-special-info:hover {
    border-color: var(--text-2);
    color: var(--text);
}

/* ══ REGULAR CARDS ══ */
.regular-card .card-thumb {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.regular-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.regular-card:hover .card-thumb img {
    transform: scale(1.04);
}

.regular-card .card-thumb .img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ede8e0 0%, #ddd7cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: rgba(80, 70, 50, .2);
}

.card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 4px;
    font-size: .65rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: .04em;
}

.card-name {
    font-family: 'Prompt', sans-serif;
    font-size: 1.02rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 2px;
    line-height: 1.35;
}

.card-address {
    font-size: .75rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.card-stars {
    color: var(--accent);
    font-size: .78rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
    flex: 1;
}

.card-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .77rem;
    color: var(--text-2);
}

.card-meta-row .mi {
    color: var(--muted);
    width: 13px;
    flex-shrink: 0;
    text-align: center;
    font-size: .75rem;
}

/* Distance chip */
.card-distance {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(4px);
    color: var(--text-2);
    border-radius: 5px;
    padding: 3px 9px;
    font-size: .68rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, .06);
}

.card-distance-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Action button */
.btn-card {
    width: 100%;
    padding: 9px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: .77rem;
    font-weight: 500;
    cursor: not-allowed;
    opacity: .65;
    margin-top: auto;
}

/* ══ LEGEND ══ */
.distance-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.dl-label {
    font-size: .72rem;
    color: var(--muted);
    font-weight: 500;
    margin-right: 4px;
}

.dl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dl-text {
    font-size: .72rem;
    color: var(--muted);
    margin-right: 10px;
}

.dot-green {
    background: #2d7a52;
}

.dot-yellow {
    background: #c8973a;
}

.dot-gray {
    background: #9ca3af;
}

/* ══ LOGIN MODAL ══ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
    animation: popIn .22s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes popIn {
    from {
        transform: scale(.9);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: var(--text);
}

.modal-icon {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 8px;
}

.modal-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text);
    text-align: center;
    margin-bottom: 4px;
}

.modal-box>div>p {
    font-size: .82rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 20px;
}

.login-error {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-sm);
    padding: 9px 13px;
    font-size: .82rem;
    color: var(--red);
    font-weight: 500;
    margin-bottom: 14px;
}

.reset-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius-sm);
    padding: 9px 13px;
    font-size: .82rem;
    color: #166534;
    font-weight: 500;
    margin-bottom: 14px;
}

.modal-field {
    margin-bottom: 13px;
}

.modal-field label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 5px;
}

.modal-field input[type=email],
.modal-field input[type=password] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: .86rem;
    font-family: 'IBM Plex Sans', 'IBM Plex Sans Thai', sans-serif;
    color: var(--text);
    background: #fafaf9;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.modal-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 107, .08);
    background: #fff;
}

.pw-wrap {
    position: relative;
}

.pw-wrap input {
    padding-right: 40px;
}

.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: .9rem;
    color: var(--muted);
    padding: 0;
}

.btn-modal-login {
    width: 100%;
    padding: 11px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
    margin-top: 4px;
    letter-spacing: .02em;
}

.btn-modal-login:hover {
    background: var(--primary-d);
}

.btn-forgot {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}

.btn-forgot:hover {
    border-color: var(--text-2);
    color: var(--text-2);
    background: #f5f4f2;
}

.modal-footer {
    text-align: center;
    font-size: .78rem;
    color: var(--muted);
    margin-top: 14px;
}

.modal-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) {
    .hotel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hotel-card.special-card {
        grid-column: span 2;
        flex-direction: column;
    }

    .special-img-wrap {
        width: 100%;
        height: 220px;
    }

    .page-header {
        padding: 90px 28px 40px;
    }

    .main-wrap {
        padding: 32px 20px 60px;
    }

    .nav-tabs {
        display: none;
    }
}

@media (max-width: 600px) {
    .hotel-grid {
        grid-template-columns: 1fr;
    }

    .hotel-card.special-card {
        grid-column: span 1;
    }

    .header-title-th {
        font-size: 2.2rem;
    }

    .navbar {
        padding: 0 18px;
    }
}

.card-stars .star-full  { color: var(--accent); }
.card-stars .star-half  { color: var(--accent); opacity: .5; }
.card-stars .star-empty { color: #d4cfc8; }
.special-stars .star-full  { color: var(--accent); }
.special-stars .star-half  { color: var(--accent); opacity: .5; }
.special-stars .star-empty { color: #d4cfc8; }