/* VRBO Santa Cruz — exact replica styles */
:root {
  --vrbo-teal: #00394D;
  --vrbo-blue: #1668E3;
  --vrbo-blue-hover: #0f56c4;
  --text-primary: #1B1B1B;
  --text-secondary: #616161;
  --text-muted: #727483;
  --border: #CBCBCB;
  --border-light: #E0E0E0;
  --bg-white: #FFFFFF;
  --bg-gray: #F5F5F5;
  --bg-blue-light: #E8F4FD;
  --bg-beige: #F5F3EF;
  --rating-green: #227950;
  --rating-green-bg: #E6F4EC;
  --header-height: 64px;
  --max-width: 1160px;
  --sidebar-width: 360px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--vrbo-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; top: -100px; left: 0; padding: 8px 16px; background: var(--vrbo-blue); color: white; z-index: 9999; }
.skip-link:focus { top: 0; }

/* ===== HEADER ===== */
.site-header {
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  background: var(--bg-white);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-svg { height: 28px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 8px 10px;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover { background: #f0f3f5; text-decoration: none; }

/* "Abrir aplicación" — outlined pill button, blue text */
.nav-app {
  color: var(--vrbo-blue);
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  margin-right: 4px;
}

.nav-app:hover { background: #f0f3f5; }

.nav-currency { gap: 6px; }
.flag { font-size: 16px; }

/* ===== TOP BAR ===== */
.top-bar { padding: 12px 0; }

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--vrbo-blue);
}

.top-actions { display: flex; gap: 8px; }

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-white);
}

.action-btn:hover { background: var(--bg-gray); }

/* ===== GALLERY ===== */
.gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
}

.gallery-main { grid-row: 1 / 3; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.gallery-thumb { overflow: hidden; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.gallery-thumb:hover img { transform: scale(1.03); }

.gallery-show-all {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-white);
  border: 1px solid var(--text-primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 2;
}

.gallery-show-all:hover { background: var(--bg-gray); }

/* ===== TAB NAV ===== */
.tab-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  margin-top: 24px;
}

.tab-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tab-nav { display: flex; }

.tab-link {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.tab-link:hover { color: var(--text-primary); text-decoration: none; }
.tab-link.active { color: var(--text-primary); font-weight: 600; border-bottom-color: var(--vrbo-blue); }

.tab-nav-actions { display: flex; align-items: center; gap: 8px; }

.btn-reserve-sticky {
  padding: 10px 24px;
  background: var(--vrbo-blue);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
}

.btn-reserve-sticky:hover { background: var(--vrbo-blue-hover); }

/* ===== MAIN LAYOUT ===== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 48px;
  padding-top: 32px;
  padding-bottom: 64px;
  align-items: start;
}

.content-column { min-width: 0; }
.section { padding: 28px 0; border-bottom: 1px solid var(--border-light); }
.section:last-child { border-bottom: none; }

.property-type { font-size: 14px; color: var(--text-secondary); display: block; margin-bottom: 4px; }

.property-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-heading-sm {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-heading-spaced { margin-top: 32px; }

/* Rating */
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  background: var(--rating-green);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px 6px 6px 0;
}

.rating-info { display: flex; flex-direction: column; gap: 2px; }
.rating-label { font-size: 15px; font-weight: 600; }
.rating-link { font-size: 14px; font-weight: 500; }

/* Stats icons */
.stats-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
}

.stat-item svg { color: var(--text-secondary); flex-shrink: 0; }

/* Highlights */
.highlights-list { display: flex; flex-direction: column; gap: 16px; }

.highlight-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--vrbo-blue);
}

.highlight-item strong { display: block; font-size: 15px; margin-bottom: 2px; }
.highlight-item p { font-size: 14px; color: var(--text-secondary); margin: 0; }

.highlight-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-blue-light);
  border-radius: 8px;
  margin-bottom: 28px;
  color: var(--vrbo-blue);
}

.highlight-banner strong { display: block; font-size: 14px; }
.highlight-banner span { font-size: 14px; }

/* Amenities 2-col */
.amenities-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 12px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.amenity-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--text-primary); }

.link-arrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--vrbo-blue);
  margin-top: 8px;
}

.link-btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--vrbo-blue);
  padding: 0;
  margin-top: 8px;
}

.link-btn:hover { text-decoration: underline; }

/* Location */
.location-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-bottom: 12px;
}

.map-thumb .map-placeholder {
  height: 160px;
  background: var(--bg-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.map-thumb .map-placeholder.has-map {
  background: none;
  padding: 0;
}

.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-location { font-size: 14px; font-weight: 600; margin-bottom: 4px; }

.nearby-list { list-style: none; }

.nearby-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

.nearby-list li:last-child { border-bottom: none; }
.nearby-time { color: var(--text-secondary); white-space: nowrap; flex-shrink: 0; }

.nearby-left { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.nearby-left svg { width: 18px; height: 18px; color: var(--text-secondary); flex-shrink: 0; margin-top: 1px; }

/* Rooms */
.rooms-text, .rooms-heading { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.rooms-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.section-divider { border: none; border-top: 1px solid var(--border-light); margin: 16px 0; }

.other-spaces { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }

.space-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.space-item svg { width: 20px; height: 20px; color: var(--text-secondary); }

/* About */
.about-subtitle { font-size: 16px; font-weight: 700; margin-bottom: 8px; }

.description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.description.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Host */
.host-card {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.host-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.host-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.host-role { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }

.host-scores {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  width: fit-content;
}

.host-score {
  padding: 10px 20px;
  text-align: center;
  border-right: 1px solid var(--border-light);
}

.host-score:last-child { border-right: none; }
.host-score-value { font-size: 18px; font-weight: 700; display: block; }
.host-score-label { font-size: 12px; color: var(--text-secondary); }

.host-languages { font-size: 14px; margin-bottom: 12px; }

.btn-contact {
  padding: 10px 24px;
  border: 1px solid var(--vrbo-blue);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vrbo-blue);
  background: var(--bg-white);
}

.btn-contact:hover { background: var(--bg-blue-light); }

.security-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-beige);
  border-radius: 8px;
  font-size: 14px;
}

.security-banner svg { flex-shrink: 0; color: var(--text-secondary); margin-top: 2px; }
.security-banner strong { display: block; margin-bottom: 4px; font-size: 14px; }
.security-banner p { color: var(--text-secondary); font-size: 13px; margin: 0; }
.security-banner .link-arrow { margin-left: auto; white-space: nowrap; flex-shrink: 0; font-size: 13px; }

/* Reviews */
.reviews-top {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.reviews-overall { flex-shrink: 0; }
.reviews-score-big { font-size: 36px; font-weight: 700; color: var(--rating-green); line-height: 1; }
.reviews-score-big span { font-size: 20px; }
.reviews-label { font-size: 15px; font-weight: 600; }
.reviews-count { font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }

.review-categories { display: flex; flex-direction: column; gap: 6px; }
.review-cat { font-size: 14px; }
.review-cat strong { font-weight: 700; }

.reviews-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 4px;
}

.review-card {
  flex: 0 0 280px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-white);
}

.review-card-score { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.review-card-score span { color: var(--text-secondary); font-weight: 400; }
.review-card-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.review-card-author { font-size: 13px; color: var(--text-secondary); }
.review-card-source { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* reviews carousel (horizontal, with arrows like the real Vrbo) */
.reviews-carousel-wrap { position: relative; }
.reviews-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.reviews-carousel::-webkit-scrollbar { display: none; }
.reviews-carousel .review-card { flex: 0 0 320px; scroll-snap-align: start; display: flex; flex-direction: column; }
.review-card-text.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-more {
  align-self: flex-start;
  background: none; border: none; padding: 4px 0; margin-bottom: 4px;
  color: var(--vrbo-blue, #1668e3); font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit;
}
.review-card-author { font-weight: 600; }
.review-card-stay { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.reviews-nav {
  position: absolute; top: 38%;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  cursor: pointer; font-size: 20px; line-height: 1; color: var(--text-primary);
  z-index: 2; display: flex; align-items: center; justify-content: center;
}
.reviews-prev { left: -8px; }
.reviews-next { right: -8px; }
.reviews-nav[hidden] { display: none; }
@media (max-width: 560px) { .reviews-carousel .review-card { flex: 0 0 86%; } }

/* reviews modal */
.reviews-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.reviews-modal[hidden] { display: none; }
.reviews-modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.reviews-modal-card {
  position: relative; background: #fff; border-radius: 14px;
  width: 100%; max-width: 1000px; max-height: 90vh;
  display: flex; flex-direction: column; padding: 22px 26px 26px;
}
.reviews-modal-close { position: absolute; top: 16px; left: 18px; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--vrbo-blue, #1668e3); line-height: 1; }
.reviews-modal-title { text-align: center; font-size: 18px; margin: 0 0 18px; }
.reviews-modal-body { display: grid; grid-template-columns: 250px 1fr; gap: 28px; overflow: hidden; min-height: 0; }
.rm-big { font-size: 34px; font-weight: 700; color: #176c3a; }
.rm-big span { font-size: 18px; color: var(--text-secondary); }
.rm-label { font-weight: 600; }
.rm-count { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.rm-cats { display: flex; flex-direction: column; gap: 8px; }
.rm-cat { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px solid var(--border-light); padding-bottom: 8px; }
.reviews-modal-right { overflow-y: auto; padding-right: 8px; min-height: 0; }
.reviews-modal-right h3 { font-size: 18px; margin: 0 0 14px; }
.reviews-modal-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.rm-search { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; color: var(--text-secondary); }
.rm-search input { border: none; outline: none; font-family: inherit; font-size: 13px; width: 110px; background: none; }
.rm-chip { border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--text-secondary); cursor: default; }
.rm-review { border-top: 1px solid var(--border-light); padding: 18px 0; }
.rm-review:first-of-type { border-top: none; }
.rm-score { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.rm-score span { color: var(--text-secondary); font-weight: 400; }
.rm-title { font-weight: 600; margin-bottom: 6px; }
.rm-text { font-size: 14px; line-height: 1.55; margin: 0 0 8px; }
.rm-positives { font-size: 13px; color: var(--text-secondary); margin: 0 0 8px; }
.rm-author { font-weight: 600; font-size: 14px; }
.rm-meta, .rm-source { font-size: 12px; color: var(--text-muted); }
@media (max-width: 720px) {
  .reviews-modal-body { grid-template-columns: 1fr; overflow-y: auto; }
  .reviews-modal-right { overflow: visible; }
}
.review-card-text { font-size: 13.5px; line-height: 1.5; color: var(--text-primary); margin: 0 0 10px; }
.review-card-reply {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-gray, #f3f5f7);
  border-radius: 8px;
}
.review-reply-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-reply-head img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-reply-head strong { display: block; font-size: 13px; }
.review-reply-head span { font-size: 12px; color: var(--text-muted); }
.review-card-reply p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }

.btn-outline-full {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--vrbo-blue);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vrbo-blue);
  background: var(--bg-white);
}

.btn-outline-full:hover { background: var(--bg-blue-light); }

/* Policies */
.policy-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.policy-block:last-child { border-bottom: none; }

.policy-title {
  font-size: 20px;
  font-weight: 700;
}

.policy-content { font-size: 14px; line-height: 1.6; color: var(--text-primary); }

.cancellation-timeline { margin-bottom: 16px; }

.timeline-bar {
  position: relative;
  background: var(--bg-beige);
  border-radius: 8px;
  padding: 28px 20px 16px;
}

.timeline-track {
  position: relative;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 18px 0 30px;
}

.timeline-track::before,
.timeline-track::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--text-primary);
  border-radius: 50%;
}

.timeline-track::before { left: 0; }
.timeline-track::after { right: 0; }

.timeline-no-refund {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.timeline-label { font-size: 13px; color: var(--text-secondary); }
.timeline-start { position: absolute; left: 20px; bottom: 14px; }
.timeline-end { position: absolute; right: 20px; bottom: 14px; }

.cancellation-detail { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: start; }
.cancellation-date { font-size: 14px; color: var(--text-secondary); }
.cancellation-text strong { display: block; font-size: 15px; margin-bottom: 4px; }
.cancellation-text p { font-size: 14px; color: var(--text-secondary); margin: 0; }

.policy-info-sub { font-weight: 700; margin-bottom: 8px; }
.policy-info-id { margin-bottom: 12px; }
.policy-info-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; white-space: pre-line; }

/* ===== BOOKING SIDEBAR ===== */
.booking-sidebar { position: relative; }

.booking-card {
  position: sticky;
  top: 72px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: var(--bg-white);
  overflow: visible;
  isolation: isolate;
}

.availability-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rating-green);
  margin-bottom: 16px;
}

.booking-inputs { margin-bottom: 16px; }

.booking-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.booking-field {
  padding: 10px 12px;
}

.booking-field:first-child { border-right: 1px solid var(--border); }

.booking-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.field-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
}

.field-value svg { color: var(--text-secondary); flex-shrink: 0; }

.booking-guests {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.booking-price { margin-bottom: 16px; }

.price-total {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 2px;
}

.price-detail, .price-nightly { font-size: 14px; color: var(--text-primary); }
.price-taxes { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.btn-reserve {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--vrbo-blue);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 24px;
  margin-bottom: 10px;
}

.btn-reserve:hover { background: var(--vrbo-blue-hover); }

.booking-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.link-no-refund {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.contact-link {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  color: var(--vrbo-blue);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  font-size: 36px;
  color: white;
  z-index: 2;
}

.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: white;
  z-index: 2;
  width: 48px;
  height: 48px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 14px;
  z-index: 2;
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 104, 227, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.is-active {
  opacity: 1;
  visibility: visible;
}

.page-loader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: pageLoaderSpin 0.8s linear infinite;
}

@keyframes pageLoaderSpin {
  to { transform: rotate(360deg); }
}

/* ===== SIMILAR PROPERTIES ===== */
.similar-section {
  padding: 32px 0 24px;
  border-top: 1px solid var(--border-light);
}

.similar-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.similar-card {
  flex: 0 0 252px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.similar-img {
  width: 100%;
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--bg-gray);
}

.similar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.similar-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.similar-loc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.similar-amenities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
}

.similar-amenities li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
}

.similar-amenities svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.similar-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.similar-score {
  background: var(--rating-green);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 2px 7px;
  border-radius: 6px;
}

.similar-score.beige {
  background: var(--rating-green-bg);
  color: var(--text-primary);
}

.similar-rating strong {
  color: var(--text-primary);
  font-weight: 600;
}

.similar-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.similar-old {
  text-decoration: line-through;
  color: var(--text-secondary);
  font-size: 14px;
}

.similar-new {
  font-size: 18px;
  font-weight: 700;
}

.similar-price-detail,
.similar-nightly,
.similar-taxes {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.similar-price-detail {
  margin-top: 2px;
}

.report-row {
  display: flex;
  justify-content: center;
  padding: 16px 0 48px;
  border-top: 1px solid var(--border-light);
}

.report-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vrbo-blue);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  /* Date selector / booking card stays at the TOP on mobile (above the title)
     so guests pick dates straight away. */
  .booking-sidebar { order: -1; }
  .booking-card { position: static; }
  .tab-nav-actions { display: none; }
  .header-nav .nav-link:not(.nav-signin):not(.nav-app) { display: none; }
}

@media (max-width: 768px) {
  .gallery { grid-template-columns: 1fr; height: auto; }
  .gallery-main { grid-row: auto; height: 260px; }
  .gallery-grid { display: none; }
  .location-block { grid-template-columns: 1fr; }
  .policy-block { grid-template-columns: 1fr; }
  .amenities-grid-2col { grid-template-columns: 1fr; }
  .property-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .top-actions .action-btn span { display: none; }
}

/* ===== LANGUAGE / CURRENCY SWITCHER ===== */
.lang-switch, .cur-switch { position: relative; display: inline-flex; }
.cur-switch .lang-switch-menu li { justify-content: flex-start; }
.cur-sym { margin-left: auto; opacity: .55; font-size: 13px; }

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.lang-switch-btn:hover { background: #f0f3f5; }
.lang-switch-label { font-weight: 600; }
.lang-switch-caret { opacity: .7; }

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border, #dadfe4);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
  padding: 6px;
  margin: 0;
  list-style: none;
  z-index: 2000;
}
.lang-switch-menu[hidden] { display: none; }
.lang-switch-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}
.lang-switch-menu li:hover { background: #f0f3f5; }
.lang-switch-menu li.is-active { background: #eaf1fd; color: var(--vrbo-blue, #1668e3); font-weight: 600; }
.lang-switch-menu .lang-flag { font-size: 18px; line-height: 1; }

/* switcher inside the slim checkout header */
.checkout-header-actions { display: flex; align-items: center; gap: 4px; }
.checkout-header-inner .lang-switch-btn { color: var(--vrbo-blue, #1668e3); font-weight: 600; }

/* keep the switchers visible on small screens even when other nav links hide */
@media (max-width: 1024px) {
  .header-nav .lang-switch,
  .header-nav .cur-switch { display: inline-flex !important; }
}

/* ===== TOAST ===== */
.vrbo-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #1b1b1b;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 5000;
}
.vrbo-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* saved (heart) button active state */
.action-btn.saved { color: var(--vrbo-blue, #1668e3); }
.action-btn.saved svg { fill: var(--vrbo-blue, #1668e3); stroke: var(--vrbo-blue, #1668e3); }

/* ===========================================================================
   MOBILE — stop the "infernal" auto-zoom on tap.
   iOS Safari zooms the page whenever a focused form control has a font-size
   below 16px. (pointer: coarse) targets touch devices (phones/tablets) only, so
   desktop is untouched. 16px on every text field kills the zoom on tap — on the
   listing, on checkout, on name/email/phone, everywhere.
   =========================================================================== */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}
/* No iOS text auto-resizing; kill double-tap-to-zoom & the 300ms tap delay. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { touch-action: manipulation; }

/* ===========================================================================
   MOBILE — no sideways scroll + a tidy header.
   The page must never be wider than the screen (that's the empty strip / "zoom"
   on the right when you drag). And the top menu has to fit without overflowing.
   =========================================================================== */
html, body { overflow-x: hidden; max-width: 100%; }

@media (max-width: 600px) {
  .header-inner { padding: 0 14px; }
  .header-nav { gap: 4px; }
  .header-nav .nav-app { display: none; }       /* drop the wide "open app" pill */
  .nav-link { padding: 7px 8px; font-size: 14px; }
  .nav-app, .nav-signin { padding: 7px 10px; }
  .lang-switch-btn { padding: 6px 8px; }

  /* Compact, tidy date selector / booking card on phones. */
  .booking-sidebar { margin-bottom: 18px; }
  .booking-card { padding: 14px; border-radius: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
  .availability-badge { font-size: 13px; margin-bottom: 10px; }
  .booking-inputs { margin-bottom: 10px; }
  .booking-field { padding: 8px 12px; }
  .booking-field label { font-size: 10px; margin-bottom: 1px; }
  .field-value { font-size: 15px; }
  .booking-price { margin-bottom: 10px; }
  .price-total { font-size: 18px; }
  .price-detail, .price-nightly { font-size: 13px; }
  .btn-reserve { padding: 13px; font-size: 16px; border-radius: 22px; margin-bottom: 8px; }
  .booking-note { font-size: 12px; margin-bottom: 4px; }
  .contact-link { font-size: 14px; }
}
