/* Hotel Detail - Corporate Redesign */
:root{ --ink:#0f172a; --muted:#64748b; --line:#e2e8f0; --bg:#f8fafc; --chip:#f1f5f9; --primary:#1d4ed8; --primary-ink:#fff; }
.chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--chip);border:1px solid var(--line);border-radius:9999px;padding:4px 10px;color:var(--ink);font-weight:700;line-height:1}
.chip .bi{color:#94a3b8}
.btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;color:var(--ink);padding:8px 12px;border-radius:10px;cursor:pointer;font-weight:700}
.btn:hover{background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.06)}
.btn-primary{background:var(--primary);border-color:var(--primary);color:var(--primary-ink)}
.btn-light{background:#fff;color:var(--ink)}
.btn-outline-primary{background:#fff;border-color:#bfdbfe;color:#1e40af}
.btn:disabled{opacity:.6;pointer-events:none}
.w100{width:100%}

.hd-hero{position:relative;border-radius:16px;overflow:hidden;margin:10px auto 16px;min-height:280px}
.hd-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center}
.hd-hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55))}
.hd-hero-inner{position:relative;z-index:1;color:#fff;padding:28px 22px;display:flex;flex-direction:column;gap:10px}
.hd-breadcrumb{display:flex;gap:8px;align-items:center;opacity:.95}
.hd-breadcrumb a{color:#fff;text-decoration:none}
.hd-title{font-family:"Plus Jakarta Sans", Inter, system-ui; font-weight:800; font-size:clamp(22px, 2.6vw, 36px); margin:2px 0}
.hd-sub{display:flex;flex-wrap:wrap;gap:8px}
.hd-metrics{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.hd-metrics .m{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);color:#fff;border-radius:12px;padding:6px 10px}
.hd-metrics .m i{opacity:.9}
.hd-metrics .m span{opacity:.9}
.hd-metrics .m strong{margin-left:4px}
.hd-cta{display:flex;gap:10px;margin-top:6px}
@media (max-width: 575.98px){ .hd-cta{flex-wrap:wrap} }

/* (mobile info remains inline in hero in original design) */

.hd-wrap{display:grid;grid-template-columns:1.4fr .8fr;gap:18px;align-items:start}
.hd-side{ align-self: start; position: relative; }
@media (max-width:991.98px){ .hd-wrap{grid-template-columns:1fr} }

.hd-gallery{margin:8px 0 12px}
.hd-gallery-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.hd-gitem{border:0;background:#fff;border-radius:12px;overflow:hidden;padding:0;cursor:pointer}
.hd-gitem img{width:100%;object-fit:cover;display:block;aspect-ratio:4/3}
@media (max-width:767.98px){ .hd-gallery-row{grid-template-columns:repeat(3,1fr)} .hd-gitem img{height:100px} }

.hd-section{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:12px;box-shadow:0 4px 12px rgba(0,0,0,.04)}
.hd-h2{margin:0 0 10px;font-size:1.2rem;font-weight:800;color:var(--ink)}
.hd-text{color:#334155;line-height:1.6; overflow-wrap:anywhere; word-break:break-word}
.hd-text img, .hd-text iframe{ max-width:100%; height:auto; }
.hd-text table{ display:block; max-width:100%; overflow-x:auto; }

.hd-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.hd-card{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:8px;transition:transform .15s ease, box-shadow .15s ease}
.hd-card{ position: relative; }
.hd-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.08)}
.room-card.has-discount{ border-color: var(--line); background:#fff; box-shadow:0 6px 18px rgba(0,0,0,.06); }
.room-card.has-discount .hd-card-title{ color:var(--ink); }
.room-card.has-discount .hd-card-price .now{ color:#166534; }
.hd-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.hd-card-title{font-weight:800;color:var(--ink)}
.hd-card-price{font-weight:900;color:var(--ink); display:flex; flex-direction:column; align-items:flex-end; gap:2px}
.hd-card-price .old{text-decoration:line-through;color:#9ca3af;font-weight:800}
.hd-card-price .now{ color:#166534; font-weight:900; }
.hd-card-price .unit{color:#64748b;font-weight:700;margin-left:4px}
/* Price badge top-right */
.hd-card .price-badge{ position:absolute; top:8px; right:8px; z-index:5; }
.hd-card .price-flag{ position:absolute; top:8px; left:8px; z-index:5; }
.room-card.has-discount .hd-card-head{ padding-top: 28px; }
.hd-card-meta{display:flex;gap:8px;color:#64748b}
.hd-card-actions{margin-top:auto;display:flex;justify-content:flex-end}
.hd-cards--services .hd-card{gap:4px}

.book-card{position:static;top:auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;box-shadow:0 8px 24px rgba(0,0,0,.06);display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.book-title{font-weight:900;color:var(--ink)}
.f{display:flex;flex-direction:column;gap:6px}
.f>span{font-weight:700;color:#0f172a}
.form-select, .book-card input[type="date"], .book-card input[type="number"]{border:1px solid var(--line);border-radius:10px;padding:8px 10px}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width: 575.98px){ .g2{grid-template-columns:1fr} }
.book-extras{border-top:1px dashed var(--line);padding-top:8px}
.book-sub{font-weight:800;color:var(--ink);margin-bottom:6px}
.book-extras-list{display:flex;flex-wrap:wrap;gap:8px}
.chip-check{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:9999px;padding:6px 10px;cursor:pointer}
.chip-check input{accent-color:var(--primary)}
.book-note{color:#334155;font-size:.95rem;margin-top:6px}
.book-add{ margin-top:8px; display:flex; justify-content:flex-start; }
.book-price{background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;border-radius:12px;padding:8px 10px;font-weight:900}
/* Actions row */
.book-actions{ margin-top:8px; display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.book-actions .book-submit{ padding:10px 16px; font-weight:800; border-radius:10px; }
@media (max-width: 575.98px){
  .book-actions{ justify-content:space-between; }
  .book-actions .book-submit{ flex:1 1 auto; text-align:center; }
}

.hd-info{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.hd-info li{display:flex;gap:8px;align-items:flex-start;color:#334155}
.hd-info .bi{color:#64748b}

.hd-video iframe, .hd-map iframe{width:100%;min-height:300px;border:0;border-radius:10px}

.hd-quick{position:sticky;bottom:10px;display:flex;gap:10px;justify-content:flex-end;margin-top:8px}

.hd-lightbox[hidden]{display:none}
.hd-lightbox{position:fixed;inset:0;z-index:50}
.hd-lb-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.hd-lb-content{position:absolute;inset:10% 8%;background:#000;border-radius:10px;display:flex;align-items:center;justify-content:center}
.hd-lb-content img{max-width:100%;max-height:100%}
.hd-lb-close{position:absolute;top:12px;right:12px;background:#fff;border:0;border-radius:8px;padding:6px 8px;cursor:pointer}

/* (keep original mobile layout without extra refinements) */

/* (keep original grid gallery on mobile) */

/* Links inside hotel detail: corporate (no blue underline) */
.hd a{ color:#0f172a; text-decoration:none; }
.hd a:hover{ color:#1976D2; text-decoration:none; }

/* Corporate polish for reservation box */
.book-card{ position: static; top:auto; border:1px solid #e5e7eb; border-radius:16px; padding:16px; box-shadow:0 12px 30px rgba(0,0,0,.08); }
/* If we ever re-enable sticky, do it only on very large viewports to avoid
   covering map/calendar in the sidebar. Commented out for now. */
/*
@media (min-width: 1400px) and (min-height: 900px){
  .book-card{ position: sticky; top:84px; }
}
*/
.book-title{ display:flex; align-items:center; gap:8px; font-size:18px; }
.book-title::before{ content:""; width:6px; height:18px; background: linear-gradient(180deg,#FF8A5B,#FFB185); border-radius:999px; display:inline-block; }
.book-card .f > span{ color:#0f172a; font-weight:700; }
.book-card .form-select, .book-card input[type="date"], .book-card input[type="number"]{ border:1px solid #cbd5e1; box-shadow: inset 0 1px 2px rgba(0,0,0,.04); }
.book-card .form-select:focus, .book-card input:focus{ outline:none; border-color:#FF8A5B; box-shadow: 0 0 0 3px rgba(255,138,91,.18), inset 0 1px 2px rgba(0,0,0,.04); }
.book-card .btn.btn-primary{ background: linear-gradient(90deg,#FF8A5B,#FFB185); border:0; color:#fff; box-shadow:0 8px 20px rgba(255,138,91,.25); }
.book-card .btn.btn-primary:hover{ filter: brightness(1.03); transform: translateY(-1px); }
.book-card .btn.btn-secondary{ background:#fff; border:1px solid #cbd5e1; color:#0f172a; }
.book-card .btn.btn-secondary:hover{ background:#f8fafc; }
.book-card .book-price{ background:#f8fafc; border:1px solid #e5e7eb; color:#0f172a; }
/* Clear Selection hover: red */
#clear-selection:hover{ background:#ef4444; color:#fff; border-color:#ef4444; box-shadow:0 6px 18px rgba(239,68,68,.25); }

/* Keep map visible when mobile bottom bar exists */
.hd{ padding-bottom: 48px; }
body.has-mobile-bar .hd{ padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
