﻿/* Single property — one professional layout */
:root {
  --hb-sp-ink: #14212b;
  --hb-sp-muted: #5c6b76;
  --hb-sp-line: #e4e9ed;
  --hb-sp-soft: #f4f7f8;
  --hb-sp-bg: #ffffff;
  --hb-sp-accent: #1f6f5b;
  --hb-sp-accent-hover: #185a4a;
  --hb-sp-radius: 16px;
  --hb-sp-shadow: 0 12px 36px rgba(20, 33, 43, 0.1);
  --hb-sp-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --hb-sp-display: "Fraunces", Georgia, serif;
  --hb-sp-max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body.hb-single-property--native {
  background: var(--hb-sp-soft);
}

.hb-property {
  color: var(--hb-sp-ink);
  font-family: var(--hb-sp-font);
  background: var(--hb-sp-bg);
}

.hb-property__shell {
  width: min(var(--hb-sp-max), calc(100% - 32px));
  margin: 20px auto 0;
  padding-bottom: 96px;
}

.hb-property__header {
  margin-bottom: 18px;
}

.hb-property__header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.hb-property__title {
  font-family: var(--hb-sp-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

.hb-property__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.hb-property__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--hb-sp-ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hb-property__action:hover {
  background: var(--hb-sp-soft);
}

.hb-property__action.is-saved svg {
  fill: var(--hb-sp-accent);
  stroke: var(--hb-sp-accent);
}

.hb-property__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 15px;
  color: var(--hb-sp-muted);
  font-weight: 500;
}

.hb-property__meta-item--location {
  color: var(--hb-sp-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hb-property__meta-dot {
  opacity: 0.5;
}

/* Gallery injected above Elementor single content */
.hb-elementor-single__gallery {
  width: min(var(--hb-sp-max), calc(100% - 32px));
  margin: 20px auto 0;
}

.hb-elementor-single__gallery .hb-gallery {
  margin-bottom: 24px;
}

/* Gallery — real <img> mosaic */
.hb-gallery {
  position: relative;
  margin-bottom: 28px;
}

.hb-gallery__mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  border-radius: var(--hb-sp-radius);
  overflow: hidden;
  background: #dbe3e8;
  min-height: 260px;
}

.hb-gallery__tile {
  display: block !important;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #dbe3e8 !important;
  box-shadow: none !important;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}

.hb-gallery__tile--main {
  min-height: 260px;
  aspect-ratio: 16 / 10;
}

.hb-gallery__img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  transition: transform 0.35s ease, filter 0.2s ease;
}

.hb-gallery__tile:hover .hb-gallery__img {
  transform: scale(1.03);
  filter: brightness(0.96);
}

.hb-gallery__thumbs {
  display: none;
}

@media (min-width: 768px) {
  .hb-gallery__mosaic--full,
  .hb-gallery__mosaic--three,
  .hb-gallery__mosaic--two {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 420px;
    min-height: 420px;
    height: 420px;
  }

  .hb-gallery__mosaic--single {
    grid-template-columns: 1fr;
    height: 420px;
    min-height: 420px;
  }

  .hb-gallery__mosaic--single .hb-gallery__tile--main {
    aspect-ratio: auto;
    min-height: 420px;
    height: 420px;
  }

  .hb-gallery__tile--main {
    aspect-ratio: auto;
    min-height: 100%;
    height: 100%;
  }

  .hb-gallery__thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    height: 100%;
    min-height: 0;
  }

  .hb-gallery__mosaic--two .hb-gallery__thumbs {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .hb-gallery__mosaic--three .hb-gallery__thumbs {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .hb-gallery__tile--thumb {
    min-height: 0;
    height: 100%;
  }
}

.hb-gallery__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border-radius: var(--hb-sp-radius);
  overflow: hidden;
}

.hb-gallery__empty--icon {
  padding: 0;
  border: 0;
  background: transparent;
}

.hb-gallery__empty .hb-media-fallback--gallery {
  width: 100%;
  min-height: 320px;
}

@media (min-width: 768px) {
  .hb-gallery__empty .hb-media-fallback--gallery {
    min-height: 420px;
  }
}

.hb-gallery__all {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--hb-sp-ink);
  border-radius: 10px;
  color: var(--hb-sp-ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hb-gallery__all:hover {
  transform: translateY(-1px);
}

/* Subnav */
.hb-property__subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hb-sp-line);
  margin: 0 0 28px;
}

.hb-property__subnav-inner {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}

.hb-property__subnav-inner::-webkit-scrollbar {
  display: none;
}

.hb-property__subnav-link {
  font-size: 14px;
  font-weight: 650;
  color: var(--hb-sp-muted);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.hb-property__subnav-link:hover,
.hb-property__subnav-link.is-active {
  color: var(--hb-sp-ink);
  border-bottom-color: var(--hb-sp-ink);
}

.hb-property__subnav-link--book {
  margin-left: auto;
  color: var(--hb-sp-accent);
}

/* Layout */
.hb-property__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

@media (min-width: 1024px) {
  .hb-property__layout {
    grid-template-columns: minmax(0, 1fr) min(360px, 34%);
    gap: 7%;
  }
}

.hb-property__section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hb-sp-line);
}

.hb-property__section:last-child {
  border-bottom: 0;
}

.hb-property__section h2 {
  font-family: var(--hb-sp-display);
  font-size: 1.35rem;
  font-weight: 650;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.hb-property__content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--hb-sp-muted);
}

.hb-property__content[data-hb-clamp] {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hb-property__more {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hb-sp-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}

.hb-property__amenities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 28px;
}

@media (min-width: 640px) {
  .hb-property__amenities {
    grid-template-columns: 1fr 1fr;
  }
}

.hb-property__amenities li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.hb-property__amenities svg {
  flex-shrink: 0;
  color: var(--hb-sp-accent);
}

.hb-property__btn-outline {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--hb-sp-ink);
  border-radius: 10px;
  background: transparent;
  color: var(--hb-sp-ink);
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}

.hb-property__btn-outline:hover {
  background: var(--hb-sp-soft);
}

.hb-property__sleep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.hb-property__sleep-card {
  padding: 18px 16px;
  border: 1px solid var(--hb-sp-line);
  border-radius: 14px;
  background: var(--hb-sp-bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hb-property__sleep-card strong {
  font-size: 15px;
}

.hb-property__sleep-card span {
  font-size: 13px;
  color: var(--hb-sp-muted);
}

.hb-property__extras {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hb-property__extras li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--hb-sp-line);
  border-radius: 12px;
}

.hb-property__extras small {
  font-weight: 500;
  color: var(--hb-sp-muted);
  margin-left: 4px;
}

.hb-property__policies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.hb-property__policies > div {
  padding: 14px 16px;
  background: var(--hb-sp-soft);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hb-property__policies strong {
  font-size: 14px;
}

.hb-property__policies span {
  font-size: 14px;
  color: var(--hb-sp-muted);
}

.hb-property__address {
  margin: 0 0 12px;
  color: var(--hb-sp-muted);
  font-size: 1.05rem;
}

.hb-property__map-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--hb-sp-line);
  color: var(--hb-sp-ink);
  font-weight: 650;
  text-decoration: none;
  background: var(--hb-sp-soft);
}

.hb-property__map-link:hover {
  border-color: var(--hb-sp-accent);
  color: var(--hb-sp-accent);
}

.hb-property__aside {
  position: sticky;
  top: 72px;
  z-index: 30;
  overflow: visible;
}

.hb-property__aside .hb-booking-widget-wrapper,
.hb-property__aside .hb-booking-form {
  box-shadow: var(--hb-sp-shadow);
  overflow: visible;
}

.hb-property__aside .hb-booking-form__submit,
.hb-property__aside .hb-book-btn {
  background: var(--hb-sp-accent) !important;
  border-color: var(--hb-sp-accent) !important;
}

.hb-property__aside .hb-booking-form__submit:hover,
.hb-property__aside .hb-book-btn:hover {
  background: var(--hb-sp-accent-hover) !important;
}

/* Reveal */
.hb-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.hb-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Airbnb-style Photo tour (Show all photos) */
.hb-photo-tour {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #222;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hb-photo-tour:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hb-photo-tour__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
}

.hb-photo-tour__close {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #222;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hb-photo-tour__close:hover {
  background: #f7f7f7;
}

.hb-photo-tour__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.hb-photo-tour__heading strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hb-photo-tour__heading span {
  font-size: 13px;
  color: #717171;
  font-weight: 500;
}

.hb-photo-tour__bar-spacer {
  justify-self: end;
  width: 1px;
  height: 1px;
}

.hb-photo-tour__nav {
  position: sticky;
  top: 64px;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
}

.hb-photo-tour__nav-track {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.hb-photo-tour__nav-track::-webkit-scrollbar {
  display: none;
}

.hb-photo-tour__pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #dddddd;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hb-photo-tour__pill span {
  color: #717171;
  font-weight: 500;
}

.hb-photo-tour__pill:hover {
  border-color: #222;
}

.hb-photo-tour__pill.is-active {
  background: #222;
  border-color: #222;
  color: #fff;
}

.hb-photo-tour__pill.is-active span {
  color: rgba(255, 255, 255, 0.75);
}

.hb-photo-tour__scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.hb-photo-tour__content {
  width: min(1120px, calc(100% - 48px));
  margin: 8px auto 64px;
}

.hb-photo-tour__section {
  margin: 28px 0 40px;
  scroll-margin-top: 140px;
}

.hb-photo-tour__section-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #222;
}

.hb-photo-tour__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hb-photo-tour__grid--flat {
  margin-top: 16px;
}

.hb-photo-tour__tile {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 3 / 2;
}

.hb-photo-tour__tile--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.hb-photo-tour__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hb-photo-tour__tile:hover img {
  transform: scale(1.02);
}

.hb-photo-tour__tile.is-target {
  outline: 3px solid #222;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .hb-photo-tour__bar {
    padding: 10px 12px;
  }

  .hb-photo-tour__close span {
    display: none;
  }

  .hb-photo-tour__nav {
    top: 56px;
  }

  .hb-photo-tour__nav-track,
  .hb-photo-tour__content {
    width: calc(100% - 24px);
  }

  .hb-photo-tour__section {
    scroll-margin-top: 120px;
    margin: 20px 0 28px;
  }

  .hb-photo-tour__section-title {
    font-size: 18px;
  }

  .hb-photo-tour__grid {
    gap: 6px;
  }

  .hb-photo-tour__tile,
  .hb-photo-tour__tile--wide {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Shared modal shell (amenities / description) */
.hb-single__lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 16, 22, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hb-single__lightbox:not([hidden]) {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.hb-single__lightbox-close,
.hb-single__lightbox .hb-icon-btn.hb-single__lightbox-close {
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
  transition: background 0.2s;
}

.hb-single__lightbox-close svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  stroke: currentColor !important;
  fill: none !important;
  pointer-events: none !important;
}

.hb-single__lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}

/* Panels */
.hb-amenities-panel {
  background: rgba(20, 33, 43, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: flex-end;
}

.hb-amenities-panel__content {
  background: var(--hb-sp-bg);
  width: min(720px, 100%);
  max-height: 86vh;
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--hb-sp-shadow);
}

@media (min-width: 768px) {
  .hb-amenities-panel {
    align-items: center;
  }
  .hb-amenities-panel__content {
    border-radius: 20px;
  }
}

.hb-amenities-panel__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--hb-sp-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hb-amenities-panel__header h2 {
  margin: 0;
  font-family: var(--hb-sp-display);
  font-size: 1.35rem;
}

.hb-amenities-panel__header .hb-single__lightbox-close {
  position: static;
  width: 40px;
  height: 40px;
  background: var(--hb-sp-soft);
  color: var(--hb-sp-ink);
  border: 1px solid var(--hb-sp-line);
}

.hb-amenities-panel__list,
.hb-description-full {
  padding: 24px;
  overflow-y: auto;
}

.hb-description-full {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--hb-sp-ink);
}

.hb-amenity-category {
  margin-bottom: 28px;
}

.hb-amenity-category h3 {
  font-family: var(--hb-sp-display);
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.hb-amenity-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .hb-amenity-category ul {
    grid-template-columns: 1fr 1fr;
  }
}

.hb-amenity-category li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.hb-amenity-category svg {
  color: var(--hb-sp-accent);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hb-property__action span {
    display: none;
  }

  .hb-property__shell {
    width: calc(100% - 24px);
  }
}

/* Reviews */
.hb-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--hb-sp-accent, #1f6f5b);
  letter-spacing: 0;
  line-height: 1;
}

.hb-stars__star {
  font-size: 14px;
}

.hb-stars__star--empty {
  opacity: 0.28;
}

.hb-stars__star--half {
  opacity: 0.7;
}

.hb-property__meta-item--rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hb-sp-ink);
  text-decoration: none;
  font-weight: 650;
}

.hb-property__meta-item--rating:hover {
  color: var(--hb-sp-accent);
}

.hb-reviews__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.hb-reviews__header h2 {
  margin: 0;
}

.hb-reviews__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hb-sp-muted);
  font-size: 14px;
  font-weight: 600;
}

.hb-reviews__average {
  color: var(--hb-sp-ink);
  font-size: 1.15rem;
  font-weight: 750;
}

.hb-reviews__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.hb-reviews__item {
  padding: 18px 18px 16px;
  border: 1px solid var(--hb-sp-line);
  border-radius: var(--hb-sp-radius);
  background: var(--hb-sp-bg);
}

.hb-reviews__item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.hb-reviews__author {
  font-weight: 700;
  color: var(--hb-sp-ink);
}

.hb-reviews__date {
  color: var(--hb-sp-muted);
  font-size: 13px;
}

.hb-reviews__title {
  display: block;
  margin-bottom: 6px;
  color: var(--hb-sp-ink);
}

.hb-reviews__body {
  margin: 0;
  color: var(--hb-sp-muted);
  line-height: 1.55;
  font-size: 15px;
}
