/* ================= HOTEL DETAIL PAGE ================= */

/* -------- Hero Gallery -------- */
.hotel-hero {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.hotel-hero .hero-img { position: relative; overflow: hidden; cursor: pointer; background: #e2e8f0; }
.hotel-hero .hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hotel-hero .hero-img:hover img { transform: scale(1.04); }
.hotel-hero .main { grid-row: 1 / 3; grid-column: 1 / 2; }
.hotel-hero .tile:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.hotel-hero .tile:nth-child(3) { grid-column: 3 / 4; grid-row: 1 / 2; }
.hotel-hero .tile:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 3; }
.hotel-hero .tile:nth-child(5) { grid-column: 3 / 4; grid-row: 2 / 3; }
.hotel-hero .view-all {
  position: absolute; right: 16px; bottom: 16px;
  background: rgba(255,255,255,.95); padding: 10px 18px;
  border-radius: 99px; font-weight: 600; font-size: 13.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15); cursor: pointer; border: 0;
}

/* -------- Lightbox -------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-counter { position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%); color: #fff; font-size: 13.5px;
  background: rgba(0,0,0,.5); padding: 6px 16px; border-radius: 99px; }

/* -------- Header -------- */
.hotel-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; flex-wrap: wrap; margin-top: 22px;
}
.hotel-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.hotel-head .addr { display: flex; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.hotel-head .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hotel-head .rating-pill { background: #16a34a; color: #fff; padding: 8px 14px;
  border-radius: 10px; display: inline-flex; align-items: center;
  gap: 6px; font-weight: 700; font-size: 15px; }
.hotel-head .rating-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* -------- Book Bar -------- */
.book-bar {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  box-shadow: var(--shadow); display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr auto; gap: 10px; margin: 20px 0 26px;
}
.book-bar .cell { display: flex; flex-direction: column; }
.book-bar label { font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.book-bar input, .book-bar select { border: 1px solid var(--line); padding: 10px 12px;
  border-radius: 8px; font-size: 14px; width: 100%; background: #fff; }
.book-bar .btn { padding: 12px 22px; white-space: nowrap; }

/* -------- Sections -------- */
.hotel-section { margin: 40px 0; }
.hotel-section h2 { font-size: 22px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.3px; }

/* -------- Overview -------- */
.overview-card { background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; font-size: 15px; line-height: 1.7; color: #334155; }
.overview-card p { margin: 0 0 12px; }
.overview-card p:last-child { margin-bottom: 0; }

/* -------- Amenities -------- */
.amen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.amen-item { display: flex; gap: 10px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.amen-item .ic { font-size: 20px; width: 34px; height: 34px;
  background: var(--brand-soft); color: var(--brand); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* -------- Room Card -------- */
.room-card { background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin-bottom: 16px; }
.room-card .head { padding: 16px 20px; background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; }
.room-card .head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.room-card .head .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.room-card .plans { padding: 0; }

/* -------- Rate Plan Row -------- */
.plan-row {
  display: grid;
  grid-template-columns: 1fr 1fr 220px;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.plan-row:last-child { border-bottom: 0; }
.plan-row:hover { background: #f8fafc; }

.plan-name { font-weight: 700; font-size: 15px; margin: 0 0 8px; }
.plan-inc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #334155; }
.plan-inc .inc { display: inline-flex; gap: 5px; align-items: center; }
.plan-inc .tick { color: var(--success); font-weight: 700; }
.plan-cancel { font-size: 12.5px; margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.plan-cancel.free { color: #15803d; font-weight: 600; }
.plan-cancel.partial { color: #b45309; font-weight: 600; }
.plan-cancel.non_refundable { color: #b91c1c; font-weight: 600; }

.plan-price-cell {
  text-align: right;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.plan-price-cell .strike { color: var(--muted); text-decoration: line-through; font-size: 13px; margin-right: 6px; }
.plan-price-cell .amount { font-size: 22px; font-weight: 800; color: var(--ink); }
.plan-price-cell .tax { font-size: 12px; color: var(--muted); }
.plan-price-cell .badge-off { display: inline-block; background: #dcfce7;
  color: #166534; padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; }
.plan-price-cell .btn {
  margin-top: 8px;
  width: 100%;
  max-width: 200px;
  padding: 11px 18px;
}

/* -------- Map -------- */
.map-wrap { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* -------- Policy -------- */
.policy-item { background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden; }
.policy-item summary { padding: 16px 20px; cursor: pointer; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; align-items: center; }
.policy-item summary::-webkit-details-marker { display: none; }
.policy-item summary::after { content: '＋'; color: var(--muted); font-size: 18px; transition: transform .2s; }
.policy-item[open] summary::after { content: '－'; color: var(--brand); }
.policy-item .body { padding: 0 20px 20px; color: #334155; font-size: 14px; line-height: 1.7; }

/* -------- Reviews -------- */
.review-summary { display: grid; grid-template-columns: 240px 1fr; gap: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.review-score { text-align: center; border-right: 1px solid var(--line); padding-right: 26px; }
.review-score .num { font-size: 52px; font-weight: 800; color: #16a34a; line-height: 1; }
.review-score .stars { color: #f59e0b; font-size: 18px; letter-spacing: 2px; margin: 8px 0; }
.review-score .lbl { color: var(--muted); font-size: 13px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.bar-row .cat { width: 130px; color: #334155; }
.bar-row .bar { flex: 1; height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.bar-row .bar > div { height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); }
.bar-row .val { width: 34px; text-align: right; font-weight: 700; }

.review-item { background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 12px; }
.review-item .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-item .who { font-weight: 700; font-size: 14.5px; }
.review-item .when { color: var(--muted); font-size: 12.5px; }
.review-item .stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; margin-bottom: 6px; }
.review-item p { margin: 0; color: #334155; font-size: 14px; line-height: 1.65; }

/* -------- Similar Hotels -------- */
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.similar-card { background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: transform .2s, box-shadow .2s; }
.similar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.similar-card .img { height: 150px; background: #e2e8f0; overflow: hidden; }
.similar-card .img img { width: 100%; height: 100%; object-fit: cover; }
.similar-card .body { padding: 12px 14px; }
.similar-card .nm { font-weight: 700; font-size: 14.5px; margin-bottom: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.similar-card .cty { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.similar-card .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.similar-card .pr { font-weight: 800; color: var(--brand); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  /* Hero shrinks and removes right column tiles */
  .hotel-hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 260px;
  }
  .hotel-hero .main { grid-row: 1 / 3; grid-column: 1 / 2; }
  .hotel-hero .tile:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
  .hotel-hero .tile:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
  .hotel-hero .tile:nth-child(4),
  .hotel-hero .tile:nth-child(5) { display: none; }

  .hotel-head h1 { font-size: 22px; }

  /* Book bar stacks */
  .book-bar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .book-bar .cell:nth-child(3) { grid-column: 1 / 2; }
  .book-bar .cell:nth-child(4) { grid-column: 2 / 3; }
  .book-bar .cell:last-child { grid-column: 1 / 3; }
  .book-bar .btn { width: 100%; }

  /* Plan rows stack */
  .plan-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .plan-price-cell {
    text-align: left;
    align-items: flex-start;
    width: 100%;
  }
  .plan-price-cell .btn { max-width: none; }

  .review-summary {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .review-score {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 18px;
  }
}

@media (max-width: 560px) {
  .hotel-hero { height: 220px; grid-template-columns: 1fr; }
  .hotel-hero .main { grid-row: 1 / 2; grid-column: 1 / 2; }
  .hotel-hero .tile { display: none; }
  .hotel-head h1 { font-size: 20px; }
  .hotel-section h2 { font-size: 18px; }
  .container { padding: 0 14px; }
}