/* ============================================================
   guest.css — Sardegna Mia Bella Guest Web App
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font-family: var(--font-body); }

::-webkit-scrollbar { display: none; }

/* ---------- Screen system ---------- */
.screen { display: none; }
.screen--active { display: block; }

/* ---------- Primary button ---------- */
.btn-primary {
  background: linear-gradient(135deg, #0E7490, #0A5F78);
  color: #fff;
  border: none;
  border-radius: var(--radius-button);
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s var(--ease-premium), box-shadow .25s var(--ease-premium), filter .2s;
  box-shadow: 0 4px 16px rgba(14,116,144,.36);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(14,116,144,.46); filter: brightness(1.04); }
.btn-primary:active { transform: translateY(0); }

/* ---------- Lang toggle ---------- */
.hero__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 2px;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:hover { color: #fff; }
.lang-btn--active { background: rgba(255,255,255,.25); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #0A2A3A 0%, #0E7490 50%, #06B6D4 100%);
  padding: 44px 20px 80px;
  position: relative;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(6,182,212,.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero__wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  opacity: 1;
}
.hero__wave svg { width: 100%; height: 100%; display: block; }
.hero__inner { max-width: var(--max-width); margin: 0 auto; }

.hero__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}
.hero__brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #fff;
  letter-spacing: .01em;
}
.hero__brand-name span { color: #67E8F9; }
.hero__brand-sub {
  font-size: 9px;
  color: rgba(255,255,255,.55);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: 2px;
}

.hero__call {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 7px 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.hero__call span { font-size: 12px; font-weight: 700; color: #fff; }

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(26px, 6.5vw, 38px);
  color: #fff;
  line-height: 1.18;
  letter-spacing: var(--tracking-heading);
  margin-bottom: 12px;
  font-weight: 400;
}
.hero__headline em { color: #67E8F9; font-style: italic; }

.hero__tagline {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-bottom: 26px;
  line-height: 1.55;
}

.hero__search {
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 36px rgba(0,0,0,.25);
}
.search-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.search-row--stay { border-top: 1px solid var(--color-border); padding-top: 8px; flex-wrap: wrap; }
.hero__search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--color-text);
  background: transparent;
  min-width: 0;
}
.hero__search input::placeholder { color: #8ab0c4; }
.hero__search .btn-primary { padding: 10px 16px; font-size: 13px; border-radius: 10px; flex-shrink: 0; align-self: flex-end; }
.search-stay { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-stay__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #8ab0c4;
}
.search-stay input[type="date"],
.search-stay select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--color-text);
  padding: 0;
  min-width: 0;
}
/* Sized by content (longest option), never clipped — fixed widths truncated
   the "Any guests" label (e.g. "Bilo koji" → "Bilo k…"). */
.search-stay--guests { flex: 0 0 auto; min-width: 52px; }
.search-stay--guests select { width: auto; max-width: 110px; }

/* ---------- Home body ---------- */
.home-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px 80px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 14px 2px 2px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4E8BA0;
}
.trust-item svg { color: #2E9E6B; flex-shrink: 0; }

/* ---------- Filter Chips ---------- */
#filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0 8px;
  scrollbar-width: none;
}
#filter-chips::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.filter-chip--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ---------- Result count ---------- */
.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  min-height: 28px;
  gap: 10px;
}

#result-count {
  font-size: 12px;
  color: #64B5C4;
  min-height: 18px;
}

.sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230E7490' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  padding: 5px 30px 5px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
  flex-shrink: 0;
}

.sort-select:focus { border-color: var(--color-accent); }

/* ---------- Property Grid ---------- */
#properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 480px) {
  #properties-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
}

/* ---------- Property Card ---------- */
.property-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s var(--ease-premium), box-shadow .35s var(--ease-premium);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
}
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.property-card:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.property-card__image-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}
.property-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease-premium);
}
.property-card:hover .property-card__image { transform: scale(1.045); }

/* Progressive blur-up: image fades in over its blurred LQIP backdrop once
   decoded. Transform is kept in the transition so the hover scale stays smooth. */
.blur-up { opacity: 0; transition: opacity .6s ease, transform .3s ease; }
.blur-up--loaded { opacity: 1; }

.property-card__type-chip {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(14,116,144,.88);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.property-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.property-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
  letter-spacing: var(--tracking-heading);
}
.property-card__location {
  font-size: 12px;
  color: #64B5C4;
  display: flex;
  align-items: center;
  gap: 4px;
}
.property-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}
.property-card__price { font-weight: 700; font-size: 16px; color: var(--color-primary); }
.property-card__rating { font-size: 13px; color: var(--color-accent); font-weight: 600; }
.property-card__badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-chip);
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  align-self: flex-start;
  margin-top: 2px;
}

/* ---------- Empty state ---------- */
#empty-state {
  text-align: center;
  padding: 60px 0;
  color: #64B5C4;
}
.empty-icon { font-size: 36px; margin-bottom: 12px; }

/* ---------- Listing screen ---------- */
#s-listing { background: var(--color-bg); min-height: 100vh; }

.listing-hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #0A4A5A;
}
.listing-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .3s;
}
.listing-hero__image { cursor: default; }
.listing-hero__image--active { cursor: zoom-in; }

.listing-hero__back,
.listing-hero__like {
  position: absolute;
  top: 18px;
  background: rgba(255,255,255,.93);
  border: none;
  border-radius: 10px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}
.listing-hero__back { left: 18px; }
.listing-hero__like { right: 18px; }
.listing-hero__like.liked svg { fill: #e5263b; stroke: #e5263b; }

.listing-hero__dots {
  position: absolute;
  bottom: 14px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 10;
}
.listing-hero__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: background .15s, transform .15s;
  border: none;
  padding: 0;
}
.listing-hero__dot--active { background: #fff; transform: scale(1.35); }

.listing-badge {
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
#badge-wrap {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 10;
}

.listing-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 18px 140px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.listing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.listing-title {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: var(--tracking-heading);
  font-weight: 600;
  flex: 1;
}
.listing-price-wrap { text-align: right; flex-shrink: 0; }
.listing-price { font-size: 22px; font-weight: 700; color: var(--color-primary); }
.listing-price-label { font-size: 12px; color: #64B5C4; }

.listing-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -8px;
}
.listing-location { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #64B5C4; }
.listing-meta__sep { color: var(--color-border); }
.listing-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--color-text); }

.listing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(14,116,144,.08);
}
.listing-stat { text-align: center; }
.listing-stat svg { margin: 0 auto 6px; display: block; }
.listing-stat__value { font-size: 18px; font-weight: 700; color: var(--color-text); }
.listing-stat__label { font-size: 11px; color: #64B5C4; }

.listing-proximity {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
  background: #E0F7FA;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: 14px 16px;
}
.prox-item__icon { font-size: 20px; margin-bottom: 3px; }
.prox-item__value { font-size: 11px; font-weight: 700; color: var(--color-text); }
.prox-item__label { font-size: 10px; color: #64B5C4; }

.listing-section__heading {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-text);
  letter-spacing: var(--tracking-heading);
  margin-bottom: 10px;
}
.listing-desc { font-size: 14px; color: #2A6070; line-height: 1.78; }

.listing-amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 12px;
}
.amenity-item__icon { font-size: 16px; flex-shrink: 0; }

/* ---------- House Rules ---------- */
.listing-rules {
  background: #E0F7FA;
  border-radius: var(--radius-card);
  padding: 16px 18px;
  border: 1px solid var(--color-border);
}
.listing-rules__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; color: #2A6070; }
.listing-rules__label { font-weight: 700; color: var(--color-text); margin-bottom: 2px; font-size: 13px; }
.listing-rules__value { font-size: 13px; }

/* ---------- Host ---------- */
.listing-host {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(14,116,144,.08);
}
.listing-host__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0E7490, #06B6D4);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.listing-host__name { font-size: 14px; font-weight: 700; color: var(--color-text); }
.listing-host__sub { font-size: 12px; color: #64B5C4; margin-top: 2px; }
.listing-host__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.listing-host__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  padding: 11px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: opacity .15s;
}
.listing-host__btn:hover { opacity: .88; }
.listing-host__btn--call { background: #E0F7FA; border: 1px solid var(--color-border); color: var(--color-primary); }
.listing-host__btn--wa { background: #25D366; color: #fff; }

/* ---------- Listing footer ---------- */
.listing-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -6px 24px rgba(14,116,144,.12);
  z-index: 100;
}
.listing-footer__price-row { display: flex; align-items: baseline; gap: 4px; }
.listing-footer__price { font-size: 20px; font-weight: 700; color: var(--color-primary); }
.listing-footer__per { font-size: 12px; color: #64B5C4; }
.listing-footer__rating { display: flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--color-text); }
.listing-footer__cta { padding: 14px 28px; font-size: 15px; }

/* ---------- Loading text ---------- */
.loading-text {
  text-align: center;
  color: #8ab0c4;
  font-size: 15px;
  padding: 40px 0;
  grid-column: 1 / -1;
}

/* ---------- Site footer ---------- */
.site-footer {
  margin-top: 48px;
  padding: 28px 20px 32px;
  background: linear-gradient(135deg, #0A3D52 0%, #0E5F78 100%);
  color: rgba(255,255,255,.7);
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-footer__logo {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}
.site-footer__logo em { font-style: italic; color: var(--color-light); }
.site-footer__tagline {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.site-footer__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.site-footer__sep { color: rgba(255,255,255,.25); }
.site-footer__link {
  color: var(--color-light);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.site-footer__link:hover { color: #fff; }

/* ---------- Phone card overlay ---------- */
.phone-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,40,55,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 900;
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.phone-backdrop--visible {
  opacity: 1;
  pointer-events: auto;
}
.phone-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -44%) scale(.93);
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(10,40,55,.35);
  padding: 28px 24px 24px;
  z-index: 901;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  text-align: center;
}
.phone-card--visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.phone-card__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  background: #f0f4f6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #556;
  transition: background .15s;
}
.phone-card__close:hover { background: #dce8ee; }
.phone-card__icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #0E7490, #06B6D4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.phone-card__label {
  font-family: var(--font-heading);
  font-size: 15px;
  color: #7a9aaa;
  margin-bottom: 4px;
}
.phone-card__number {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: .5px;
  margin-bottom: 20px;
}
.phone-card__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}
.phone-card__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: #f6fafc;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.phone-card__btn:hover { background: #e8f4f8; border-color: var(--color-accent); }
.phone-card__btn--share { border-color: #c3e8f5; }
.phone-card__btn--done {
  background: #edfcf3;
  border-color: #6ee7b7;
  color: #059669;
}
.phone-card__dial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  background: linear-gradient(135deg, #0E7490, #0A5F78);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: filter .15s;
}
.phone-card__dial:hover { filter: brightness(1.1); }

/* ---------- Reviews ---------- */
.reviews-count {
  font-family: var(--font-body);
  font-size: 13px;
  color: #64B5C4;
  font-weight: 400;
  margin-left: 6px;
}

.rv-empty {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.review-card__author {
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text);
}

.review-card__stars {
  color: #F59E0B;
  font-size: 13px;
  letter-spacing: 1px;
}

.review-card__date {
  font-size: 11px;
  color: #94a3b8;
  margin-left: auto;
}

.review-card__comment {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

/* Review form */
.review-form {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.review-form__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.review-form__input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: #fff;
  outline: none;
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: border-color .2s;
}

.review-form__input:focus { border-color: var(--color-accent); }

.review-form__textarea {
  resize: vertical;
  min-height: 80px;
}

.star-picker {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .15s, transform .1s;
}

.star-btn:hover,
.star-btn--active { color: #F59E0B; }

.star-btn:active { transform: scale(1.2); }

.review-form__submit {
  width: 100%;
  padding: 13px;
  font-size: 0.9375rem;
}

.rv-msg {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-button);
  font-size: 0.875rem;
}

.rv-msg--success {
  background: #f0fdf4;
  color: #16A34A;
  border: 1px solid #bbf7d0;
}

.rv-msg--error {
  background: #fef2f2;
  color: #EF4444;
  border: 1px solid #fecaca;
}

/* ---------- Booking Modal ---------- */
.bk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,42,58,.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 520px) {
  .bk-overlay { align-items: center; padding: 20px; }
}

.bk-modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 24px 32px;
  position: relative;
}

@media (min-width: 520px) {
  .bk-modal { border-radius: 20px; }
}

.bk-close {
  position: absolute;
  top: 16px; right: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 14px;
  cursor: pointer;
  color: #475569;
  transition: background .15s;
}
.bk-close:hover { background: #e2e8f0; }

.bk-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.bk-subtitle {
  font-size: 13px;
  color: #64B5C4;
  margin-bottom: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bk-form { display: flex; flex-direction: column; gap: 12px; }

.bk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bk-group { display: flex; flex-direction: column; gap: 5px; }

.bk-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.bk-input {
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: #fff;
  outline: none;
  width: 100%;
  transition: border-color .2s;
}
.bk-input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(6,182,212,.1); }

/* ---------- International phone field ---------- */
.tel-field { position: relative; display: flex; align-items: stretch; }
.tel-cc {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 12px;
  border: 1.5px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-button) 0 0 var(--radius-button);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.tel-cc:hover { background: var(--color-bg-soft, #F0F8FF); }
.tel-cc__flag { font-size: 1.05rem; line-height: 1; }
.tel-cc__dial { font-weight: 700; }
.tel-cc__caret { color: var(--color-muted, #5B7886); font-size: 0.7rem; }
.tel-num.bk-input {
  border-radius: 0 var(--radius-button) var(--radius-button) 0;
  flex: 1; width: auto; min-width: 0;
}

.tel-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-button);
  box-shadow: 0 10px 28px rgba(13,42,58,.16);
  overflow: hidden;
}
.tel-dropdown[hidden] { display: none; }
.tel-search {
  width: 100%; padding: 10px 12px;
  border: none; border-bottom: 1px solid var(--color-border);
  outline: none; font-family: var(--font-body); font-size: 0.9rem;
  color: var(--color-text); background: #fff;
}
.tel-list { list-style: none; margin: 0; padding: 4px; max-height: 220px; overflow-y: auto; }
.tel-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 0.875rem;
}
.tel-opt:hover { background: var(--color-bg-soft, #F0F8FF); }
.tel-opt__flag { font-size: 1.1rem; line-height: 1; }
.tel-opt__name { flex: 1; color: var(--color-text); }
.tel-opt__dial { color: var(--color-muted, #5B7886); font-variant-numeric: tabular-nums; }

.bk-textarea { resize: none; min-height: 72px; }

.bk-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f8ff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}
/* Minimum-stay warning shown in place of the total when the stay is too short */
.bk-total-label--warn { color: #B45309; }

.bk-error {
  font-size: 13px;
  color: #EF4444;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-button);
  padding: 10px 14px;
}

.bk-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.bk-success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 16px 0 8px;
}

.bk-success__icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #0E7490, #06B6D4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.bk-success__msg {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
}

.bk-wa-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  font-size: 0.9375rem;
}

/* Optional "Add to Google Calendar" — secondary/outline so it reads as the
   lighter, optional action next to the primary WhatsApp button. */
.bk-cal-btn {
  width: 100%;
  padding: 12px;
  margin-top: -4px;
  background: #fff;
  color: var(--color-primary, #0E7490);
  border: 1.5px solid var(--color-border, #BAE6FD);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.bk-cal-btn:hover {
  background: var(--color-bg-soft, #F0F8FF);
  border-color: var(--color-accent, #06B6D4);
}

/* ---------- Lightbox ---------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 25, .95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.lb-overlay[hidden] { display: none; }

.lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  padding: 60px 56px 0;
  overflow: hidden;
}

.lb-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}

.lb-close {
  position: fixed;
  top: 16px; right: 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: background .15s;
  line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,.25); }

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-arrow:hover { background: rgba(255,255,255,.22); }
.lb-arrow--prev { left: 10px; }
.lb-arrow--next { right: 10px; }

.lb-counter {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-family: var(--font-body);
  padding-bottom: 20px;
  letter-spacing: .05em;
}

@media (min-width: 520px) {
  .lb-arrow--prev { left: 20px; }
  .lb-arrow--next { right: 20px; }
}

/* ---------- Map ---------- */
.property-map {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--color-border);
}

.map-address {
  font-size: 13px;
  color: #64B5C4;
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-directions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-button);
  background: linear-gradient(135deg, #0E7490, #06B6D4);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(14,116,144,.28);
  transition: transform .15s, box-shadow .15s;
}
.map-directions:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(14,116,144,.4); }
.map-directions:active { transform: translateY(0); }
.map-directions:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.map-directions svg { flex-shrink: 0; }

.how-to-reach { margin-top: 18px; }
.how-to-reach__heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 6px;
}
.how-to-reach__text p {
  font-size: 13px;
  line-height: 1.6;
  color: #64B5C4;
  margin: 0 0 6px;
}
.how-to-reach__text a {
  color: #0E7490;
  font-weight: 600;
  text-decoration: underline;
}

.map-marker {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0E7490, #06B6D4);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14,116,144,.4);
}

.map-marker svg {
  transform: rotate(45deg);
}

.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(14,116,144,.2) !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
}

.leaflet-popup-tip { background: #fff !important; }

/* ---------- Reviews block (redesign) ---------- */
.reviews-block {
  margin: 0 -18px;
  padding: 28px 18px;
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.reviews-block__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.reviews-block__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.review-form-block {
  margin-top: 24px;
  padding: 20px;
  background: var(--color-bg);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-form-block .review-form__heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.review-form-block .review-form__input {
  margin-bottom: 0;
}

/* ---------- Detail Tabs ---------- */
.detail-tabs {
  display: flex;
  gap: 6px;
  margin: 20px 0 4px;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0;
}

.detail-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}

.detail-tab:hover { color: var(--color-primary); }

.detail-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ---------- Reviews summary ---------- */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #0E7490 0%, #06B6D4 100%);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin: 16px 0 20px;
}

.reviews-summary__score {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.reviews-summary__stars {
  font-size: 18px;
  color: #FDE68A;
  letter-spacing: 2px;
  line-height: 1;
}

.reviews-summary__count {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  margin-top: 2px;
}

/* ---------- Contact CTA tab ---------- */
.contact-cta {
  padding: 20px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-cta__host {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-cta__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.contact-cta__sub {
  font-size: 12px;
  color: #64B5C4;
  margin-top: 2px;
}

.contact-cta__prompt {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.contact-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: filter .15s, transform .1s;
}

.contact-cta__btn:active { transform: scale(.98); }

.contact-cta__btn--call {
  background: #f0f8ff;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}

.contact-cta__btn--call:hover { filter: brightness(.96); }

.contact-cta__btn--wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
}

.contact-cta__btn--wa:hover { filter: brightness(1.06); }

/* ---------- PWA Install button ---------- */
.pwa-install-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.pwa-install-btn:hover { background: rgba(255,255,255,.25); }

/* ---------- PWA Install hint banner ---------- */
.pwa-hint-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0A2A3A;
  color: #fff;
  border: 1px solid rgba(14,116,144,.5);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  max-width: min(92vw, 420px);
  width: max-content;
  pointer-events: none;
}
.pwa-hint-banner--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.pwa-hint-banner__icon {
  flex-shrink: 0;
  color: #0E7490;
  display: flex;
  align-items: center;
}
.pwa-hint-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}
.pwa-hint-banner__text strong { font-size: 13px; font-weight: 700; }
.pwa-hint-banner__text span { color: rgba(255,255,255,.8); font-size: 12px; }
.pwa-hint-banner__install {
  flex-shrink: 0;
  background: #0E7490;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.pwa-hint-banner__close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  line-height: 1;
}
.pwa-hint-banner__close:hover { color: #fff; }

.bk-daterange { text-align: center; font-size: 0.85rem; color: #374151; margin: 8px 0 4px; min-height: 1.1em; }
#bk-calendar { margin-bottom: 4px; }

/* ── Partner cross-promo carousel ─────────────────────────────────────── */
.partners {
  max-width: 760px;
  margin: 48px auto 20px;
  padding: 0 20px;
}
.partners__title {
  font-size: 22px;
  font-weight: 600;
  color: #0D2A3A;
  text-align: center;
  margin: 0 0 8px;
}
.partners__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: #1B7A99;
  margin: 10px auto 18px;
}
.partners__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.partners__track::-webkit-scrollbar { display: none; }

.partner-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: stretch;
  min-height: 150px;
  background: #fff;
  border: 1px solid #E3ECF0;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: box-shadow .35s var(--ease-premium), transform .35s var(--ease-premium);
}
.partner-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.partner-card__image-wrap {
  flex: 0 0 210px;
  background: #F2F6F8;
  background-size: cover;
  background-position: center;
}
.partner-card__image { width: 100%; height: 100%; object-fit: cover; display: block; }

.partner-card__body {
  flex: 1 1 auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.partner-card__line { margin: 0; font-size: 16px; line-height: 1.5; color: #0D2A3A; font-weight: 500; }
.partner-card__cta {
  align-self: flex-start;
  padding: 9px 18px;
  border-radius: 999px;
  background: #1B7A99;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.partner-card__cta::after { content: ' \2192'; }

.partners__dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.partners__dot { width: 7px; height: 7px; border-radius: 50%; background: #C9D8DF; transition: background .2s; }
.partners__dot--active { background: #1B7A99; }

@media (max-width: 560px) {
  .partner-card { flex-direction: column; }
  .partner-card__image-wrap { flex-basis: 150px; }
  .partner-card__body { padding: 16px 18px; }
}

/* ── Weather strip (property listing, above the map) ──────────────────── */
.weather-strip { margin: 0 0 14px; }

.weather-strip__heading {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(13, 42, 58, .6);          /* --color-text at 60% */
  margin-bottom: 8px;
}

.weather-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;                      /* long stays scroll on phones */
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.weather-cell {
  flex: 0 0 auto;
  min-width: 64px;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

.weather-cell__day   { font-size: .72rem; color: rgba(13, 42, 58, .6); }
.weather-cell__icon  { font-size: 1.3rem; line-height: 1.6; }
.weather-cell__temps { font-size: .78rem; font-weight: 600; color: var(--color-text); }

.weather-strip__more {
  font-size: .75rem;
  color: rgba(13, 42, 58, .6);
  margin-top: 6px;
}
