﻿/* ============================================
   HOTEL DETAIL — BOOKING.COM STYLE
   ============================================ */
body { background: #f5f5f5; }

.hd-breadcrumb {
  font-size: 13px;
  color: #555;
  padding: 16px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.hd-breadcrumb a { color: #003580; text-decoration: none; }
.hd-breadcrumb a:hover { text-decoration: underline; }
.hd-breadcrumb .sep { margin: 0 6px; opacity: 0.4; font-size: 11px; }
.hd-breadcrumb .current { color: #1a1a2e; font-weight: 600; }

/* --- Header --- */
.hd-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  align-items: flex-start;
}
.hd-header-left { flex: 1; min-width: 0; }
.hd-name { font-size: 24px; font-weight: 800; color: #1a1a2e; margin: 0; line-height: 1.3; }
.hd-stars { color: #ffc107; font-size: 14px; margin-left: 8px; letter-spacing: 1px; }
.hd-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.hd-rating-badge { display: inline-flex; align-items: center; gap: 8px; }
.hd-score { background: #003580; color: #fff; font-size: 14px; font-weight: 700; padding: 4px 8px; border-radius: 4px; display: inline-block; }
.hd-score-label { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.hd-reviews-count { font-size: 13px; color: #888; }
.hd-location-text { font-size: 13px; color: #003580; }
.hd-price-block { text-align: right; flex-shrink: 0; }
.hd-price-from { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.hd-price { font-size: 28px; font-weight: 800; color: #008009; line-height: 1; }
.hd-price-original { font-size: 14px; color: #888; text-decoration: line-through; margin-right: 4px; }
.hd-price-night { font-size: 13px; color: #888; font-weight: 400; }
.hd-book-top-btn {
  display: block; margin-top: 8px; padding: 10px 24px;
  background: #e94560; color: #fff; border-radius: 6px;
  font-weight: 700; text-decoration: none; text-align: center;
  font-size: 14px; transition: background 0.2s;
}
.hd-book-top-btn:hover { background: #d13350; color: #fff; }

/* --- Gallery --- */
.hd-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.hd-gallery-main { grid-row: 1 / 3; overflow: hidden; cursor: pointer; }
.hd-gallery-thumb { overflow: hidden; cursor: pointer; }
.hd-gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.hd-gallery-main:hover img,
.hd-gallery-thumb:hover img { transform: scale(1.03); }
.hd-gallery-overlay {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.7); color: #fff;
  padding: 8px 16px; border-radius: 4px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  z-index: 2; transition: background 0.2s;
}
.hd-gallery-overlay:hover { background: rgba(0,0,0,0.85); }

/* --- Lightbox --- */
.hd-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); align-items: center;
  justify-content: center; flex-direction: column;
}
.hd-lightbox.active { display: flex; }
.hd-lightbox-close {
  position: absolute; top: 16px; right: 20px; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 22px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.hd-lightbox-close:hover { background: rgba(255,255,255,0.25); }
.hd-lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.hd-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 20px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.hd-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.hd-lightbox-prev { left: 16px; }
.hd-lightbox-next { right: 16px; }
.hd-lightbox-counter { color: rgba(255,255,255,0.7); font-size: 13px; margin-top: 12px; }

/* --- Highlights Strip --- */
.hd-highlights {
  display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.hd-highlight-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 6px; font-size: 13px; font-weight: 600; color: #1a1a2e;
}
.hd-highlight-badge .hl-icon { font-size: 16px; }

/* --- Two Column Layout --- */
.hd-content {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 24px;
  align-items: start;
  align-items: start;
}
.hd-main { min-width: 0; }

/* --- Card Wrapper --- */
.hd-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px; padding: 24px; margin-bottom: 20px;
}
.hd-card-title {
  font-size: 18px; font-weight: 700; color: #1a1a2e;
  margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

/* --- Description --- */
.hd-desc { font-size: 14px; line-height: 1.7; color: #333; }
.hd-desc p { margin: 0 0 12px; }
.hd-desc p:last-child { margin-bottom: 0; }

/* --- Property Info Row --- */
.hd-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 16px;
}
.hd-info-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #333;
}
.hd-info-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.hd-info-label { color: #888; }
.hd-info-value { font-weight: 600; }

/* --- Amenities --- */
.hd-amenities {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.hd-amenity {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; font-size: 13px; color: #333;
}
.hd-amenity-check { color: #008009; font-size: 13px; font-weight: 700; flex-shrink: 0; }

/* --- Reviews --- */
.hd-reviews-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.hd-review-badge {
  background: #003580; color: #fff; font-size: 18px; font-weight: 700;
  padding: 8px 12px; border-radius: 6px 6px 6px 0; min-width: 44px;
  text-align: center; line-height: 1;
}
.hd-review-info {}
.hd-review-label-text { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.hd-review-count-text { font-size: 13px; color: #888; }

.hd-review-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hd-review-rlabel { width: 100px; font-size: 13px; color: #555; }
.hd-review-bar-bg { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.hd-review-bar-fill { height: 100%; background: #003580; border-radius: 4px; transition: width 1s ease-out; width: 0; }
.hd-review-rscore { width: 30px; font-size: 13px; font-weight: 700; color: #003580; text-align: right; }

/* --- Location / Map --- */
.hd-map-wrap { border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; }
.hd-map-wrap iframe { width: 100%; height: 280px; border: none; display: block; }
.hd-address-text { font-size: 13px; color: #555; margin-top: 12px; display: flex; align-items: flex-start; gap: 6px; }
.hd-nearby { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.hd-nearby-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #f9f9f9; border-radius: 6px;
  font-size: 13px; border: 1px solid #f0f0f0;
}
.hd-nearby-item-icon { font-size: 18px; flex-shrink: 0; }
.hd-nearby-item-name { font-weight: 600; color: #1a1a2e; }
.hd-nearby-item-dist { color: #888; font-size: 12px; }

/* --- Sidebar Booking Card --- */
.hd-book-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px; padding: 20px;
  position: sticky; top: 80px;
}
.hd-book-card-title { font-size: 16px; font-weight: 700; color: #1a1a2e; margin: 0 0 4px; }
.hd-book-source { font-size: 12px; color: #888; margin-bottom: 16px; }
.hd-book-source strong { color: #003580; }
.hd-book-pricing { text-align: center; padding: 16px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px; }
.hd-book-original { font-size: 14px; color: #888; text-decoration: line-through; display: block; margin-bottom: 4px; }
.hd-book-price { font-size: 24px; font-weight: 800; color: #008009; }
.hd-book-per { font-size: 13px; color: #888; font-weight: 400; }
.hd-book-savings { display: inline-block; background: #e8f5e9; color: #008009; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; margin-top: 6px; }
.hd-book-btn {
  display: block; width: 100%; padding: 14px; background: #e94560; color: #fff;
  font-size: 16px; font-weight: 700; border: none; border-radius: 6px;
  cursor: pointer; text-align: center; text-decoration: none; margin-top: 16px;
  transition: background 0.2s;
}
.hd-book-btn:hover { background: #d13350; color: #fff; }
.hd-book-trust { font-size: 13px; color: #008009; margin-top: 8px; }
.hd-book-trust::before { content: '\2713  '; }
.hd-book-footer { font-size: 11px; color: #aaa; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0f0f0; text-align: center; line-height: 1.5; }

/* --- Sidebar Date Picker & Guest Count --- */
.hd-datepick { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px }
.hd-datepick-field { border:1px solid #e5e7eb;border-radius:6px;padding:8px 10px;cursor:pointer;transition:border-color .2s }
.hd-datepick-field:focus-within { border-color:#003580 }
.hd-datepick-label { display:block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#9ca3af;margin-bottom:2px }
.hd-datepick-field input { width:100%;border:none;font-size:13px;font-weight:600;color:#1a1a2e;outline:none;background:transparent;cursor:pointer;padding:0 }
.hd-guest-bar { display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border:1px solid #e5e7eb;border-radius:6px;margin-bottom:12px;font-size:13px }
.hd-guest-ctrl { display:flex;align-items:center;gap:8px }
.hd-g-btn { width:26px;height:26px;border-radius:50%;border:1px solid #e5e7eb;background:#fff;font-size:14px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all .2s;line-height:1 }
.hd-g-btn:hover { background:#f0f4ff;border-color:#003580 }
/* --- Urgency Signals --- */
.hd-urgency { display:flex;flex-direction:column;gap:6px;margin-bottom:12px;padding:10px 12px;background:#fff8f0;border:1px solid #fed7aa;border-radius:8px }
.hd-urgency-item { display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:#92400e }
.hd-urgency-dot { width:7px;height:7px;border-radius:50%;background:#e94560;flex-shrink:0;animation:hd-pulse 1.6s infinite }
@keyframes hd-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.85)} }
.hd-fire-dot { background:#f97316 }
/* --- Cancellation Policy --- */
.hd-cancel { display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:6px;font-size:12px;font-weight:600;margin-bottom:10px }
.hd-cancel-free { background:#d1fae5;color:#065f46 }
.hd-cancel-unknown { background:#f3f4f6;color:#4b5563 }
/* --- Compare Prices Table --- */
.hd-compare { margin-top:14px;padding-top:14px;border-top:1px solid #f0f0f0 }
.hd-compare-ttl { font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px }
.hd-cmp-row { display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f5f5f5;font-size:13px }
.hd-cmp-row:last-child { border-bottom:none }
.hd-cmp-platform { font-weight:600;color:#1a1a2e;display:flex;align-items:center;gap:6px }
.hd-cmp-badge { font-size:10px;font-weight:700;padding:2px 6px;border-radius:3px;background:#e8f5e9;color:#2e7d32 }
.hd-cmp-price { font-size:14px;font-weight:700;color:#008009 }
.hd-cmp-link { font-size:12px;font-weight:700;color:#003580;text-decoration:none;padding:4px 10px;border:1px solid #003580;border-radius:4px;transition:all .15s }
.hd-cmp-link:hover { background:#003580;color:#fff }

/* --- Quick Facts --- */
.hd-facts { margin-top: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px; }
.hd-facts-title { font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 0 0 12px; }
.hd-fact-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.hd-fact-row:last-child { border-bottom: none; }
.hd-fact-k { color: #888; }
.hd-fact-v { color: #1a1a2e; font-weight: 600; }

/* --- More Hotels --- */
.hd-more { margin-top: 40px; margin-bottom: 60px; }
.hd-more-title { font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 0 0 20px; }
.hd-more-scroll {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #ccc transparent;
}
.hd-more-scroll::-webkit-scrollbar { height: 6px; }
.hd-more-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.hd-more-scroll > * { flex: 0 0 280px; scroll-snap-align: start; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hd-content { grid-template-columns: 60% 40%; gap: 20px; }
  .hd-name { font-size: 22px; }
}
@media (max-width: 768px) {
  /* Header */
  .hd-header { flex-direction: column; gap: 12px; }
  .hd-price-block { text-align: left; width: 100%; }
  .hd-book-top-btn { display: inline-block; width: auto; padding: 10px 20px; }

  /* Gallery: 2-col with main spanning full width */
  .hd-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 120px;
  }
  .hd-gallery-main { grid-column: 1 / -1; grid-row: 1; }

  /* Single column layout */
  .hd-content { grid-template-columns: 1fr; }

  /* Booking card: NOT sticky, goes above content on mobile */
  .hd-book-card {
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
    order: -1;
    margin-bottom: 20px;
  }

  /* Amenities 2-col on mobile */
  .hd-amenities { grid-template-columns: 1fr 1fr; }

  /* Nearby places: 1-col */
  .hd-nearby { grid-template-columns: 1fr; }

  /* Review bars: full width labels */
  .hd-review-rlabel { width: 80px; font-size: 12px; }

  /* More hotels scroll */
  .hd-more-scroll > * { flex: 0 0 240px; }

  /* Highlights: wrap */
  .hd-highlights { gap: 8px; }
  .hd-highlight-badge { font-size: 12px; padding: 6px 12px; }

  /* Container padding */
  .hd-card { padding: 16px; }
  .hd-card-title { font-size: 16px; }
}
@media (max-width: 480px) {
  /* Gallery: single image only */
  .hd-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 240px;
  }
  .hd-gallery-main { grid-row: 1; grid-column: 1; }
  .hd-gallery-thumb { display: none; }

  /* Amenities: 1 col */
  .hd-amenities { grid-template-columns: 1fr; }

  /* Info grid: 1 col */
  .hd-info-grid { grid-template-columns: 1fr; }

  /* Name */
  .hd-name { font-size: 20px; }
  .hd-price { font-size: 24px; }

  /* Review bars label narrower */
  .hd-review-rlabel { width: 70px; font-size: 11px; }

  /* More hotels scroll */
  .hd-more-scroll > * { flex: 0 0 220px; }
}

/* === Price Alert Widget === */
.hd-alert-box { margin-top: 12px; }
.hd-alert-btn {
  display: block;
  width: 100%;
  padding: 9px 16px;
  background: #f0f4ff;
  border: 1px dashed #6b7280;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f3460;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.hd-alert-btn:hover { border-color: #0f3460; background: #e0e7ff; }
.hd-alert-btn-guest { color: #6b7280; background: #f9fafb; }
.hd-alert-form { margin-top: 10px; }
.hd-alert-label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.hd-alert-row { display: flex; align-items: center; gap: 6px; }
.hd-alert-sym { font-size: 15px; font-weight: 600; color: #1a1a2e; }
.hd-alert-input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 14px;
  outline: none;
}
.hd-alert-input:focus { border-color: #0f3460; }
.hd-alert-save {
  background: #0f3460;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.hd-alert-save:hover { background: #1a4a7a; }

/* === Hotel + Flight Package Upsell === */
.hd-pkg-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}
.hd-pkg-ttl {
  font-size: 13px;
  font-weight: 700;
  color: #0f3460;
  margin-bottom: 12px;
}
.hd-pkg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.hd-pkg-row:hover { border-color: #0f3460; background: #f0f4ff; }
.hd-pkg-info { display: flex; flex-direction: column; gap: 2px; }
.hd-pkg-airline { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.hd-pkg-route { font-size: 12px; color: #6b7280; }
.hd-pkg-direct { font-size: 11px; color: #22c55e; font-weight: 600; }
.hd-pkg-price { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.hd-pkg-combined { font-size: 12px; font-weight: 700; color: #e94560; }
.hd-pkg-flight { font-size: 12px; color: #6b7280; }
.hd-pkg-all {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #0f3460;
  text-decoration: none;
  padding-top: 8px;
}
.hd-pkg-all:hover { color: #e94560; }

/* === B1: Gallery Strip + Lightbox (touch/keyboard) === */
.hd-gallery-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: -12px;
  margin-bottom: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hd-gallery-strip::-webkit-scrollbar { display: none; }
.hd-gallery-strip .hd-gallery-thumb {
  flex: 0 0 110px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
}
.hd-gallery-strip .hd-gallery-thumb:hover { border-color: #e94560; transform: scale(1.03); }
.hd-gallery-strip .hd-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-gallery-more-btn {
  flex: 0 0 auto;
  padding: 0 16px;
  height: 72px;
  background: rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.15s;
}
.hd-gallery-more-btn:hover { background: rgba(0,0,0,0.15); }

/* === B2: Price note + "from" label === */
.hd-price-note {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
  margin: 8px 0 0;
  line-height: 1.5;
}

/* === B3: Verified owner badge === */
.hd-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-top: 6px;
}

/* === B4: Exit-intent modal === */
.hd-exit-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
}
.hd-exit-modal.active { display: flex; }
.hd-exit-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 28px;
  max-width: 420px;
  width: calc(100% - 40px);
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: hd-modal-in 0.22s ease-out;
}
@keyframes hd-modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hd-exit-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 32px; height: 32px;
  border: none; background: #f3f4f6;
  border-radius: 50%; cursor: pointer;
  font-size: 18px; color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.hd-exit-modal-close:hover { background: #e5e7eb; color: #1a1a2e; }
.hd-exit-modal-icon { font-size: 36px; margin-bottom: 10px; }
.hd-exit-modal-headline {
  font-size: 20px; font-weight: 800; color: #1a1a2e;
  margin: 0 0 6px;
}
.hd-exit-modal-sub {
  font-size: 13px; color: #6b7280; margin: 0 0 20px; line-height: 1.5;
}
.hd-exit-save-btn {
  display: block; width: 100%;
  padding: 13px; background: #e94560; color: #fff;
  border: none; border-radius: 8px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-align: center; text-decoration: none;
  margin-bottom: 14px; transition: background 0.2s;
}
.hd-exit-save-btn:hover { background: #d13350; color: #fff; }
.hd-exit-divider {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; color: #9ca3af; font-size: 12px;
}
.hd-exit-divider::before, .hd-exit-divider::after {
  content: ''; flex: 1; height: 1px; background: #e5e7eb;
}
.hd-exit-alert-label {
  font-size: 13px; font-weight: 600; color: #1a1a2e; margin-bottom: 8px;
}
.hd-exit-alert-row {
  display: flex; align-items: center; gap: 8px;
}
.hd-exit-alert-sym { font-size: 15px; font-weight: 700; color: #1a1a2e; }
.hd-exit-alert-input {
  flex: 1; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 9px 12px; font-size: 14px; outline: none;
}
.hd-exit-alert-input:focus { border-color: #0f3460; }
.hd-exit-alert-set {
  background: #0f3460; color: #fff; border: none;
  border-radius: 8px; padding: 9px 16px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background 0.15s; white-space: nowrap;
}
.hd-exit-alert-set:hover { background: #1a4a7a; }
.hd-exit-dismiss {
  display: block; text-align: center; margin-top: 14px;
  font-size: 12px; color: #9ca3af; cursor: pointer; text-decoration: underline;
}
.hd-exit-dismiss:hover { color: #6b7280; }

/* === A1: Best Price Guarantee Bar === */
.hd-guarantee-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12px;
  color: #059669;
  background: #f0fdf4;
  border-radius: 6px;
  padding: 8px 14px;
  margin-top: 8px;
  margin-bottom: 10px;
  align-items: center;
}
.hd-guarantee-sep { color: #a7f3d0; }

/* === A2: OTA Compare Box (main column) === */
.hd-compare-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.hd-compare-title {
  font-weight: 700;
  font-size: 15px;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.hd-compare-note {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 12px;
}
.hd-compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.hd-compare-row:last-child { border-bottom: none; }
.hd-compare-row:hover { background: #fafafa; }
.hd-compare-site {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a2e;
  min-width: 120px;
}
.hd-compare-price {
  color: #059669;
  font-weight: 700;
  font-size: 14px;
  flex: 1;
  text-align: center;
}
.hd-compare-btn {
  background: #e94560;
  color: #fff;
  padding: 6px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* === A4: Amenity Tooltips === */
.htl-tooltip-wrap {
  position: relative;
  cursor: help;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.htl-tooltip-text {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  width: 200px;
  line-height: 1.4;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}
.htl-tooltip-wrap:hover .htl-tooltip-text { opacity: 1; }

/* === Message host button === */
.hd-msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 16px;
  background: #fff;
  border: 1px solid #1a3c6e;
  color: #1a3c6e;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.hd-msg-btn:hover { background: #1a3c6e; color: #fff; }

/* === A5: Guest-type Tags === */
.hd-guest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 14px;
}
.hd-guest-tag {
  background: #f0f4ff;
  color: #1e40af;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* === Polish pass: review breakdown bars === */
.hd-review-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  row-gap: 6px;
  margin: 4px 0 18px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 8px;
}
@media (max-width: 640px) {
  .hd-review-breakdown { grid-template-columns: 1fr; padding: 14px; }
}

/* === Polish pass: highlights list === */
.hd-highlights-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #fff8f3;
  border: 1px solid #fde4d3;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hd-highlights-item {
  font-size: 13px;
  line-height: 1.5;
  color: #6b3a1f;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.hd-highlights-quote {
  color: #e94560;
  font-size: 22px;
  line-height: 0.9;
  font-weight: 700;
  flex-shrink: 0;
}

/* === Polish pass: reviewer chip + read-all link (palette aligned) === */
.hd-rev-chip {
  background: #0f3460;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}
.hd-read-all-reviews {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: #0f3460;
  font-weight: 600;
  text-decoration: none;
}
.hd-read-all-reviews:hover { color: #e94560; }

/* === Polish pass: amenities expand === */
.hd-amenity-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.hd-amenities.is-collapsed .hd-amenity.is-hidden { display: none; }
.hd-amenities.is-expanded .hd-amenity.is-hidden { display: flex; }
.hd-amenities-toggle {
  margin-top: 12px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid #0f3460;
  color: #0f3460;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.hd-amenities-toggle:hover { background: #0f3460; color: #fff; }

/* === Polish pass: sticky sidebar guard against tall content === */
@media (min-width: 769px) {
  aside .hd-book-card {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  aside .hd-book-card::-webkit-scrollbar { width: 6px; }
  aside .hd-book-card::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
}

/* === Polish pass: gallery — prevent CLS, smooth fallback when <5 photos === */
.hd-gallery-main img,
.hd-gallery-thumb img {
  background: #f1f5f9;
}
.hd-gallery:not(:has(.hd-gallery-thumb)) {
  grid-template-columns: 1fr;
  grid-template-rows: 360px;
}

/* === Polish pass: mobile sticky bottom CTA bar === */
.hd-mobile-cta { display: none; }
@media (max-width: 768px) {
  .hd-mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px env(safe-area-inset-bottom, 10px);
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 14px rgba(15, 52, 96, 0.08);
  }
  .hd-mobile-cta-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }
  .hd-mobile-cta-from {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6b7280;
    font-weight: 700;
  }
  .hd-mobile-cta-price {
    font-size: 18px;
    font-weight: 800;
    color: #008009;
    line-height: 1;
  }
  .hd-mobile-cta-per {
    font-size: 12px;
    color: #6b7280;
    margin-left: 2px;
  }
  .hd-mobile-cta-score {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
  }
  .hd-mobile-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: #e94560;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
  }
  .hd-mobile-cta-btn:hover { background: #d13350; color: #fff; }
  /* Avoid the mobile CTA covering page footer content */
  body { padding-bottom: 76px; }
}
