/* Apartment detail — Booking.com inspired layout */

.page-apartment-bk {
  --bk-blue: #003580;
  --bk-blue-btn: #0071c2;
  --bk-blue-hover: #005999;
  --bk-bg: #f5f5f5;
  --bk-surface: #ffffff;
  --bk-border: #e7e7e7;
  --bk-text: #262626;
  --bk-muted: #6b6b6b;
  --bk-green: #008009;
  --bk-radius: 8px;
}

.page-apartment-bk,
.page-apartment-bk .site-main {
  background: var(--bk-bg);
}

.page-apartment-bk .site-header {
  background: var(--bk-blue);
  border-bottom: none;
}

.page-apartment-bk .logo-main,
.page-apartment-bk .nav a,
.page-apartment-bk .nav-toggle {
  color: #fff;
}

.page-apartment-bk .nav a:hover {
  color: #febb02;
}

.page-apartment-bk .logo-sub {
  color: rgba(255, 255, 255, 0.75);
}

.apt-bk {
  padding: calc(4.5rem + var(--safe-top, 0px)) 0 calc(2rem + var(--safe-bottom, 0px));
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--bk-text);
}

.apt-bk-wrap {
  width: min(1140px, 94%);
  margin: 0 auto;
}

.apt-bk-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bk-blue-btn);
  text-decoration: none;
}

.apt-bk-back:hover {
  color: var(--bk-blue);
  text-decoration: underline;
}

/* Photo mosaic — desktop (Booking style) */
.apt-bk-mosaic {
  display: none;
  position: relative;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 4px;
  border-radius: var(--bk-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.apt-bk-mosaic-item {
  position: relative;
  overflow: hidden;
  background: #ddd;
  cursor: pointer;
}

.apt-bk-mosaic-item--hero {
  grid-row: 1 / 3;
  grid-column: 1;
}

.apt-bk-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.apt-bk-mosaic-item:hover img {
  transform: scale(1.03);
}

.apt-bk-mosaic-all {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.55rem 1rem;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius);
  background: var(--bk-surface);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bk-blue-btn);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.apt-bk-mosaic-all:hover {
  background: #f0f6ff;
}

/* Mobile slider */
.apt-bk-slider-wrap {
  margin: 0 -3% 1.25rem;
}

.apt-bk-slider .gallery-slider-viewport {
  border-radius: 0;
  aspect-ratio: 4/3;
}

.apt-bk-slider .gallery-slider-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--bk-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 1;
}

.apt-bk-slider .gallery-slider-counter {
  background: rgba(0, 0, 0, 0.65);
  font-weight: 500;
}

/* Header */
.apt-bk-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.apt-bk-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--bk-text);
}

.apt-bk-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--bk-blue-btn);
  font-weight: 500;
}

.apt-bk-type {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: #e7f0ff;
  color: var(--bk-blue);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Score badge — Booking style */
.apt-bk-score {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.apt-bk-score-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  border-radius: 8px 8px 8px 0;
  background: var(--bk-blue);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.apt-bk-score-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.apt-bk-score-text strong {
  font-size: 0.95rem;
  color: var(--bk-text);
}

.apt-bk-score-text span {
  font-size: 0.82rem;
  color: var(--bk-muted);
}

/* Highlights row */
.apt-bk-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius);
  font-size: 0.88rem;
  color: var(--bk-text);
}

.apt-bk-highlights li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.apt-bk-highlights li::before {
  content: '•';
  color: var(--bk-blue-btn);
  font-weight: 700;
}

/* Two-column layout */
.apt-bk-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.apt-bk-main {
  min-width: 0;
}

.apt-bk-block {
  background: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
}

.apt-bk-block-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--bk-text);
}

.apt-bk-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--bk-text);
}

/* Facilities — Booking checklist */
.apt-bk-facilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.apt-bk-facilities li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--bk-text);
}

.apt-bk-facilities svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--bk-green);
}

/* Property info cards */
.apt-bk-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.apt-bk-info-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem;
  background: #f9f9f9;
  border-radius: var(--bk-radius);
  border: 1px solid var(--bk-border);
}

.apt-bk-info-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.apt-bk-info-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--bk-text);
}

.apt-bk-info-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--bk-muted);
}

/* Deals */
.apt-bk-deals-sub {
  margin: -0.5rem 0 1rem;
  font-size: 0.88rem;
  color: var(--bk-muted);
}

.apt-bk-deals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.apt-bk-deals-list li {
  font-size: 0.9rem;
  color: var(--bk-text);
}

.apt-bk-deal-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #e7f6e8;
  color: var(--bk-green);
  font-weight: 700;
  font-size: 0.82rem;
  margin-right: 0.35rem;
}

/* Calendar & map */
.apt-bk-calendar {
  max-width: 100%;
}

.apt-bk-map {
  height: 320px;
  border-radius: var(--bk-radius);
  overflow: hidden;
  border: 1px solid var(--bk-border);
}

/* Reviews */
.apt-bk-reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.apt-bk-reviews-head .apt-bk-block-title {
  margin: 0;
}

.apt-bk-reviews-badge {
  padding: 0.5rem 0.85rem;
  border-radius: var(--bk-radius);
  background: #003580;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.3;
}

.apt-bk-reviews-badge strong {
  display: block;
}

.apt-bk-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.apt-bk-reviews-grid .review-card {
  background: #f9f9f9;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius);
  padding: 1rem;
  margin: 0;
  box-shadow: none;
}

.apt-bk-reviews-grid .review-score {
  color: var(--bk-blue);
}

.apt-bk-reviews-grid .review-rating-num {
  color: var(--bk-blue);
  font-weight: 700;
}

.apt-bk-reviews-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* Similar */
.apt-bk-similar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.apt-bk-similar-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.apt-bk-similar-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.apt-bk-similar-card img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.apt-bk-similar-card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--bk-blue-btn);
  margin-bottom: 0.15rem;
}

.apt-bk-similar-card span {
  font-size: 0.78rem;
  color: var(--bk-muted);
}

/* Booking widget sidebar */
.apt-bk-sidebar {
  position: relative;
}

.apt-bk-widget {
  position: sticky;
  top: calc(5rem + var(--safe-top, 0px));
  background: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius);
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.apt-bk-widget-from {
  font-size: 0.82rem;
  color: var(--bk-muted);
}

.apt-bk-widget-amount {
  margin: 0.15rem 0 0.5rem;
}

.apt-bk-widget-amount strong {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bk-text);
}

.apt-bk-widget-amount span {
  font-size: 0.95rem;
  color: var(--bk-muted);
  margin-left: 0.15rem;
}

.apt-bk-widget-month {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--bk-muted);
}

.apt-bk-widget-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bk-text);
}

.apt-bk-widget-field input {
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius);
  font-size: 1rem;
  font-family: inherit;
}

.apt-bk-widget-field input:focus {
  outline: 2px solid var(--bk-blue-btn);
  border-color: var(--bk-blue-btn);
}

.apt-bk-widget-total {
  min-height: 1.2rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bk-green);
}

.apt-bk-widget-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--bk-muted);
  text-align: center;
}

/* Buttons */
.apt-bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--bk-radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.apt-bk-btn--reserve {
  width: 100%;
  background: var(--bk-blue-btn);
  color: #fff;
}

.apt-bk-btn--reserve:hover {
  background: var(--bk-blue-hover);
  color: #fff;
}

.apt-bk-btn--outline {
  background: var(--bk-surface);
  color: var(--bk-blue-btn);
  border: 1px solid var(--bk-blue-btn);
}

.apt-bk-btn--outline:hover {
  background: #f0f6ff;
}

/* Mobile bottom bar */
.apt-bk-mobile-bar {
  display: none;
}

/* Desktop: show mosaic, hide mobile-only slider when mosaic exists */
@media (min-width: 769px) {
  .apt-bk-mosaic {
    display: grid;
  }

  .apt-bk-slider-wrap--mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  .apt-bk {
    padding-bottom: calc(5.5rem + var(--safe-bottom, 0px));
  }

  .apt-bk-wrap {
    width: 100%;
    padding: 0 1rem;
  }

  .apt-bk-slider-wrap {
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .apt-bk-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .apt-bk-sidebar {
    display: none;
  }

  .apt-bk-facilities {
    grid-template-columns: 1fr;
  }

  .apt-bk-info-grid {
    grid-template-columns: 1fr;
  }

  .apt-bk-block {
    padding: 1.15rem 1rem;
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }

  .apt-bk-highlights {
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }

  .page-apartment-bk .sticky-cta-mobile {
    display: none;
  }

  .apt-bk-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    padding: 0.75rem 1rem calc(0.75rem + var(--safe-bottom, 0px));
    background: var(--bk-surface);
    border-top: 1px solid var(--bk-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  }

  .apt-bk-mobile-bar-price strong {
    font-size: 1.15rem;
    color: var(--bk-text);
  }

  .apt-bk-mobile-bar-price span {
    font-size: 0.78rem;
    color: var(--bk-muted);
    margin-left: 0.15rem;
  }

  .apt-bk-mobile-bar .apt-bk-btn--reserve {
    width: auto;
    min-width: 9rem;
    flex-shrink: 0;
  }

  .page-apartment-bk .whatsapp-float,
  .page-apartment-bk .ai-chat-root {
    bottom: calc(5.25rem + var(--safe-bottom, 0px));
  }

  .page-apartment-bk.has-sticky-cta {
    padding-bottom: calc(5.5rem + var(--safe-bottom, 0px));
  }
}

@media (min-width: 900px) {
  .apt-bk-facilities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.apt-bk-services-sub {
  margin: 0 0 1rem;
  color: var(--bk-muted);
  font-size: 0.95rem;
}

.apt-bk-services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.apt-bk-service-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--bk-border, rgba(61, 58, 53, 0.12));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.apt-bk-service-copy strong {
  display: block;
  margin-bottom: 0.2rem;
}

.apt-bk-service-copy p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--bk-muted);
}

.apt-bk-service-price {
  white-space: nowrap;
  font-weight: 600;
  color: var(--sage-dark, #5c6b52);
}

.apt-bk-services-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--bk-muted);
}

.apt-bk-services-note a {
  color: var(--sage-dark, #5c6b52);
  font-weight: 500;
}
