.th-page {
    --th-navy:#102641;
    --th-orange:#f28b25;
    --th-blue:#2458d3;
    --th-border:#e2e8f0;
    --th-muted:#64748b;
    max-width:1240px;
    margin:0 auto;
    padding:24px 20px 60px;
    color:var(--th-navy);
}
.th-page * {
    box-sizing:border-box;
}
.th-breadcrumb {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
    font-size:13px;
    color:var(--th-muted);
    margin-bottom:24px;
}
.th-breadcrumb a {
    color:var(--th-muted);
    text-decoration:none;
}
.th-heading {
    margin-bottom:24px;
}
.th-eyebrow {
    font-size:11px;
    font-weight:800;
    letter-spacing:2px;
    color:var(--th-orange);
    margin-bottom:9px;
}
.th-heading h1 {
    font-size:clamp(28px,4vw,46px);
    line-height:1.15;
    letter-spacing:-1px;
    margin:0 0 12px;
    color:var(--th-navy);
}
.th-heading-meta {
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}
.th-stars {
    color:#e8a017;
    letter-spacing:2px;
    font-size:18px;
    display:inline-block;
}
.th-address {
    font-size:14px;
    color:var(--th-muted);
    margin:10px 0 0;
}
.th-gallery {
    position:relative;
    display:grid;
    gap:6px;
    height:clamp(280px,36vw,460px);
    overflow:hidden;
    border-radius:16px;
    background:#edf2f7;
}
.th-photo {
    display:block;
    min-width:0;
    min-height:0;
    overflow:hidden;
    background:#e2e8f0;
}
.th-photo img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .35s ease;
}
.th-photo:hover img {
    transform:scale(1.035);
}
.th-gallery-1 {
    grid-template-columns:1fr;
}
.th-gallery-2 {
    grid-template-columns:1fr 1fr;
}
.th-gallery-3 {
    grid-template-columns:2fr 1fr;
    grid-template-rows:1fr 1fr;
}
.th-gallery-4,
.th-gallery-5 {
    grid-template-columns:2fr 1fr 1fr;
    grid-template-rows:1fr 1fr;
}
.th-gallery-3 .th-photo:first-child,
.th-gallery-4 .th-photo:first-child,
.th-gallery-5 .th-photo:first-child {
    grid-row:span 2;
}
.th-gallery-4 .th-photo:nth-child(4) {
    grid-column:span 2;
}
.th-gallery-open {
    position:absolute;
    right:16px;
    bottom:16px;
    background:#fff;
    color:var(--th-navy);
    border:0;
    border-radius:9px;
    padding:12px 16px;
    font-weight:700;
    font-size:13px;
    cursor:pointer;
    box-shadow:0 4px 20px #0002;
}
.th-photo-credit {
    font-size:11px;
    color:var(--th-muted);
    text-align:right;
    margin:8px 0 24px;
}
.th-layout {
    display:grid;
    grid-template-columns:minmax(0,1fr) 340px;
    align-items:start;
    gap:24px;
}
.th-main,
.th-sidebar {
    display:grid;
    gap:22px;
    min-width:0;
}
.th-panel {
    background:#fff;
    border:1px solid var(--th-border);
    border-radius:15px;
    padding:25px;
    box-shadow:0 5px 22px #10264106;
}
.th-panel h2 {
    font-size:22px;
    line-height:1.3;
    margin:0 0 18px;
    color:var(--th-navy);
}
.th-panel p {
    font-size:15px;
    line-height:1.8;
    margin:0 0 15px;
}
.th-address-card {
    background:#f5f8fc;
    padding:16px;
    border-radius:10px;
    margin-bottom:20px;
}
.th-address-card p {
    margin:5px 0 0;
}
.th-details {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 20px;
}
.th-detail {
    padding:14px 0;
    border-bottom:1px solid #edf2f7;
    display:flex;
    flex-direction:column;
    gap:6px;
}
.th-detail span {
    color:var(--th-muted);
    font-size:12px;
}
.th-detail strong {
    font-size:15px;
}
.th-content {
    line-height:1.9;
    overflow-wrap:anywhere;
}
.th-agoda {
    font-size:34px;
    font-weight:900;
    letter-spacing:-2px;
    color:var(--th-blue);
    padding-bottom:15px;
    border-bottom:1px solid var(--th-border);
    margin-bottom:20px;
}
.th-booking-button {
    display:block;
    width:100%;
    background:var(--th-blue);
    color:#fff!important;
    text-decoration:none!important;
    text-align:center;
    border-radius:10px;
    padding:15px 12px;
    font-size:14px;
    font-weight:800;
    line-height:1.5;
    transition:background .2s;
}
.th-booking-button:hover {
    background:#1744b5;
}
.th-map-button {
    display:inline-block;
    color:var(--th-blue);
    border:1px solid #cbd5e1;
    border-radius:8px;
    padding:12px 16px;
    text-decoration:none;
    font-size:14px;
    font-weight:700;
}
.th-nearby-item {
    display:flex;
    gap:12px;
    padding:13px 0;
    border-bottom:1px solid var(--th-border);
    text-decoration:none!important;
    color:var(--th-navy);
}
.th-nearby-item img {
    width:82px;
    height:72px;
    object-fit:cover;
    border-radius:8px;
    flex-shrink:0;
}
.th-nearby-item div {
    display:flex;
    flex-direction:column;
    gap:5px;
}
.th-nearby-item strong {
    font-size:14px;
    line-height:1.4;
}
.th-nearby-item .th-stars {
    font-size:12px;
}
.th-nearby small {
    font-size:12px;
    color:var(--th-muted);
}
.th-mobile-booking {
    display:none;
}
.th-lightbox {
    position:fixed;
    inset:0;
    width:100%;
    max-width:none;
    height:100%;
    max-height:none;
    margin:0;
    padding:0;
    border:0;
    background:#0b1019;
    color:white;
    overflow:hidden;
    z-index:999999;
}
.th-lightbox[open] {
    display:flex;
    flex-direction:column;
}
.th-lightbox::backdrop {
    background:#0b1019;
}
.th-lightbox-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 20px;
    z-index:2;
}
.th-lightbox button {
    background:#ffffff18;
    border:0;
    color:#fff;
    padding:10px 15px;
    border-radius:8px;
    cursor:pointer;
    font-size:20px;
}
.th-lightbox-stage {
    flex:1;
    min-height:0;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:auto;
    touch-action:pan-y;
}
.th-lightbox-image {
    max-width:94%;
    max-height:100%;
    object-fit:contain;
    transition:transform .2s;
}
.th-lightbox-image.is-zoomed {
    max-width:none;
    max-height:none;
    width:150%;
    flex-shrink:0;
    object-fit:contain;
    cursor:zoom-out;
}
.th-prev,.th-next {
    position:absolute;
    top:45%;
    z-index:3;
}
.th-prev {left:12px}
.th-next {right:12px}
.th-lightbox-caption {
    text-align:center;
    font-size:13px;
    padding:10px;
}
.th-lightbox-thumbs {
    display:flex;
    justify-content:center;
    gap:8px;
    padding:8px 10px 20px;
}
.th-lightbox-thumbs button {
    padding:0;
    border:2px solid transparent;
    overflow:hidden;
}
.th-lightbox-thumbs button.active {
    border-color:#f28b25;
}
.th-lightbox-thumbs img {
    width:64px;
    height:48px;
    object-fit:cover;
    display:block;
}
@media(max-width:900px) {
    .th-layout {
        grid-template-columns:minmax(0,1fr) 280px;
        gap:16px;
    }
    .th-panel {padding:18px}
}
@media(max-width:700px) {
    .th-page {
        padding:16px 14px 100px;
    }
    .th-layout {
        grid-template-columns:1fr;
    }
    .th-gallery {
        height:280px;
        border-radius:12px;
    }
    .th-gallery-4,
    .th-gallery-5 {
        grid-template-columns:1.5fr 1fr 1fr;
    }
    .th-heading h1 {
        font-size:29px;
    }
    .th-gallery-open {
        right:8px;
        bottom:8px;
        font-size:11px;
        padding:10px;
    }
    .th-mobile-booking {
        display:block;
        position:fixed;
        bottom:0;
        left:0;
        right:0;
        background:#fff;
        padding:10px 15px;
        padding-bottom:max(10px,env(safe-area-inset-bottom));
        box-shadow:0 -4px 24px #0002;
        z-index:9990;
    }
    .th-mobile-booking:empty {
        display:none;
    }
    .th-lightbox-thumbs img {
        width:48px;
        height:40px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .th-photo img,
    .th-lightbox-image {
        transition:none;
    }
}

/* HOTEL MAP EMBED V1 */

.th-map-embed {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    margin-top: 18px;
}

.th-map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .th-map-embed {
        height: 280px;
        border-radius: 10px;
        margin-top: 14px;
    }
}


/* TRAVEL NEARBY HOTEL V1.2 */

.th-nearby {
    overflow: hidden;
}

.th-nearby h2 {
    margin-bottom: 10px;
}

.th-nearby-intro {
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 18px;
}

.th-nearby-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    padding: 16px 0;
    border-bottom: 1px solid #e7edf4;
    text-decoration: none;
}

.th-nearby-item:last-of-type {
    border-bottom: 0;
}

.th-nearby-item .th-nearby-thumb {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    background: #edf3f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.th-nearby-item .th-nearby-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    transition: transform .25s ease;
}

.th-nearby-item:hover img {
    transform: scale(1.06);
}

.th-nearby-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.th-nearby-info strong {
    color: #123954;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.th-nearby-info .th-stars {
    color: #e5a329;
    font-size: 13px;
}

.th-nearby-distance {
    color: #64748b;
    font-size: 12px;
}

.th-nearby-link,
.th-nearby-all {
    color: #155785;
    font-size: 12px;
    font-weight: 700;
}

.th-nearby-note {
    font-size: 11px;
    line-height: 1.6;
    color: #64748b;
    margin: 15px 0 0;
}

.th-nearby-empty {
    background: #f3f7fb;
    padding: 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #64748b;
}

@media(max-width: 700px) {
    .th-nearby-item {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .th-nearby-item .th-nearby-thumb {
        width: 80px;
        height: 80px;
    }
}

