/* ══════════════════════════════════════════════════════════
   iStays -Airbnb/Booking.com Inspired Styles
   ══════════════════════════════════════════════════════════ */

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body { font-feature-settings: "ss01", "cv11"; }

.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ── Category Pills (Airbnb-style) ─────────────────────── */
.category-strip-wrapper {
  position: relative;
}

.category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 64px;
  text-decoration: none;
  cursor: pointer;
}
.category-pill:hover {
  color: #4799C1;
}
.category-pill.active {
  color: #4799C1;
}

/* Uniform icon container so all icons render at same visual size */
.cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.cat-icon svg,
.cat-icon .lucide-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
  color: inherit;
}

/* Mobile scroll arrow: hide when scrolled to end */
#cat-scroll-btn {
  opacity: 1;
  transition: opacity 0.2s;
}
#cat-scroll-btn.at-end {
  opacity: 0;
  pointer-events: none;
}

/* Gradient fade behind the scroll arrow on mobile */
.category-strip-wrapper::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to left, white 30%, transparent);
  pointer-events: none;
  transition: opacity 0.2s;
}
@media (min-width: 1024px) {
  .category-strip-wrapper::after { display: none; }
}
.category-strip-wrapper.scrolled-end::after {
  opacity: 0;
}

/* ── Property Card (Airbnb-style) ──────────────────────── */
.property-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.property-card-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
}
.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

/* Carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-size: 14px;
  font-weight: 600;
  color: #222;
  z-index: 2;
}
.property-card-image:hover .carousel-arrow { opacity: 0.95; }
.carousel-arrow:hover { transform: translateY(-50%) scale(1.05); }
.carousel-arrow:active { transform: translateY(-50%) scale(0.95); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

/* Heart/save button */
.save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s;
  z-index: 3;
  background: transparent;
  border: none;
  padding: 0;
}
.save-btn:hover { transform: scale(1.1); }
.save-btn svg {
  width: 24px;
  height: 24px;
  fill: rgba(0,0,0,0.45);
  stroke: white;
  stroke-width: 2;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  transition: fill 0.2s;
}
.save-btn.saved svg {
  fill: #FF385C;
}

/* Featured badge */
.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: white;
  color: #222;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Property card text content */
.property-card-info {
  padding-top: 12px;
}
.property-card-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: #222;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.property-card-subtitle {
  font-size: 14px;
  color: #717171;
  margin-top: 2px;
  line-height: 1.3;
}
.property-card-dates {
  font-size: 14px;
  color: #717171;
  margin-top: 2px;
}
.property-card-price {
  margin-top: 4px;
  font-size: 15px;
  color: #222;
}
.property-card-price strong {
  font-weight: 600;
}
.property-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #222;
  font-weight: 500;
}

/* ── Photo Gallery (Property Detail) ──────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  border-radius: 16px;
  overflow: hidden;
  max-height: 520px;
  position: relative;
}
.photo-grid .photo-main {
  grid-row: 1 / 3;
  grid-column: 1;
}
.photo-grid > div {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.2s;
}
.photo-grid > div:hover img {
  filter: brightness(0.92);
}

.show-all-photos-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: white;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: background 0.15s;
}
.show-all-photos-btn:hover { background: #f7f7f7; }

/* Mobile photo gallery -horizontal swipe carousel (all photos preserved) */
@media (max-width: 768px) {
  .photo-grid {
    display: flex;
    grid-template-columns: none;
    grid-template-rows: none;
    max-height: none;
    border-radius: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
    padding: 0;
  }
  .photo-grid::-webkit-scrollbar { display: none; }
  .photo-grid > div {
    flex: 0 0 100%;
    aspect-ratio: 4/3;
    scroll-snap-align: start;
  }
  .photo-grid .photo-main { grid-row: auto; grid-column: auto; }
  .show-all-photos-btn {
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* ── Lightbox ─────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.1);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-counter {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 14px;
  font-weight: 500;
}

/* ── Filter Bar Pills ─────────────────────────────────── */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid #ddd;
  background: white;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 32px;
}
.filter-pill:hover {
  border-color: #222;
}
.filter-pill:focus {
  outline: none;
  border-color: #222;
  box-shadow: 0 0 0 2px rgba(34,34,34,0.08);
}

/* Toggle button pills (used for boolean filters) */
.filter-toggle {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid #ddd;
  background: white;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-toggle:hover {
  border-color: #222;
}
.filter-toggle.active {
  background: #222;
  color: white;
  border-color: #222;
}

/* ── Amenity Items ────────────────────────────────────── */
.amenity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-size: 15px;
  color: #222;
}
.amenity-item svg,
.amenity-item .lucide-icon {
  width: 22px;
  height: 22px;
  color: #4799C1;
  flex-shrink: 0;
  stroke-width: 1.5;
}

.amenity-section + .amenity-section {
  border-top: 1px solid #ebebeb;
  padding-top: 24px;
}

/* ── Skeleton Loading ─────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e8e8e8 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 12px;
}
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Booking Card (Property Detail) ───────────────────── */
.booking-card {
  position: sticky;
  top: 120px;
  background: white;
  border: 1px solid #dddddd;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.date-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #b0b0b0;
  border-radius: 10px;
  overflow: hidden;
}
.date-input-grid > div {
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.1s;
}
.date-input-grid > div:first-child {
  border-right: 1px solid #b0b0b0;
}
.date-input-grid > div:hover {
  background: #f7f7f7;
}
.date-input-grid label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #222;
  display: block;
  margin-bottom: 2px;
}
.date-input-grid input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: #222;
  background: transparent;
  padding: 0;
}

.guest-input-wrapper {
  margin-top: 8px;
  border: 1px solid #b0b0b0;
  border-radius: 10px;
  padding: 10px 12px;
}
.guest-input-wrapper label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #222;
  display: block;
  margin-bottom: 2px;
}
.guest-input-wrapper select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: #222;
  background: transparent;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* ── Custom Dropdown (replaces native <select>) ───────── */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  cursor: pointer;
  font-family: inherit;
}
.custom-select-chevron {
  width: 14px;
  height: 14px;
  color: #6b7280;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.custom-select.open .custom-select-chevron {
  transform: rotate(180deg);
  color: #4799C1;
}
.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  right: -12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 6px;
  margin: 0;
  list-style: none;
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}
.custom-select.open .custom-select-menu {
  display: block;
}
.custom-select-option {
  padding: 10px 14px;
  font-size: 14px;
  color: #222;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.1s, color 0.1s;
  font-family: 'Poppins', system-ui, sans-serif;
}
.custom-select-option:hover {
  background: #f3f4f6;
}
.custom-select-option.active {
  background: #4799C1;
  color: white;
  font-weight: 600;
}
.custom-select-option.active:hover {
  background: #3a7fa3;
}
/* Pad the options inside the dropdown popup */
.guest-input-wrapper select option,
.filter-pill option {
  padding: 8px 14px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 14px;
  color: #222;
  background: white;
}
.guest-input-wrapper select option:checked,
.filter-pill option:checked {
  background: #4799C1;
  color: white;
}

/* ── Star Rating ──────────────────────────────────────── */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}
.star-rating svg {
  width: 14px;
  height: 14px;
  fill: #222;
}

/* ── Highlight cards (Property detail) ────────────────── */
.highlight-card {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid #ebebeb;
}
.highlight-card:last-child { border-bottom: none; }
.highlight-card .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #222;
}
.highlight-card .text {
  flex: 1;
}
.highlight-card .title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}
.highlight-card .desc {
  font-size: 14px;
  color: #717171;
  line-height: 1.4;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: linear-gradient(135deg, #4799C1, #3a7fa3);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.05s;
}
.btn-primary:hover { opacity: 0.92; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Responsive helpers ───────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Prose (host-entered HTML descriptions) ──────────── */
.prop-prose p {
  margin: 0 0 1em 0;
}
.prop-prose p:last-child { margin-bottom: 0; }
.prop-prose strong, .prop-prose b {
  font-weight: 600;
  color: #111827;
}
.prop-prose em, .prop-prose i { font-style: italic; }
.prop-prose h1, .prop-prose h2, .prop-prose h3, .prop-prose h4 {
  font-weight: 600;
  color: #111827;
  margin: 1.5em 0 0.5em 0;
  line-height: 1.3;
}
.prop-prose h1 { font-size: 1.25em; }
.prop-prose h2 { font-size: 1.15em; }
.prop-prose h3 { font-size: 1.05em; }
.prop-prose h4 { font-size: 1em; }
.prop-prose h1:first-child,
.prop-prose h2:first-child,
.prop-prose h3:first-child,
.prop-prose h4:first-child { margin-top: 0; }
.prop-prose ul, .prop-prose ol {
  margin: 0 0 1em 0;
  padding-left: 1.5em;
}
.prop-prose ul { list-style: disc; }
.prop-prose ol { list-style: decimal; }
.prop-prose li { margin-bottom: 0.25em; }
.prop-prose a {
  color: #4799C1;
  text-decoration: underline;
}
.prop-prose a:hover { color: #3a7fa3; }
.prop-prose br { display: block; content: ""; margin-top: 0.5em; }
.prop-prose hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.5em 0;
}
.prop-prose blockquote {
  border-left: 3px solid #e5e7eb;
  padding-left: 1em;
  margin: 1em 0;
  color: #6b7280;
  font-style: italic;
}

/* ── Video Tour ───────────────────────────────────────── */
.video-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.video-player-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.2s, transform 0.3s;
}
.video-player-wrapper:hover img {
  filter: brightness(0.85);
  transform: scale(1.02);
}
.video-player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.video-play-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}
.video-play-btn svg {
  width: 100%;
  height: 100%;
}

/* ── Flatpickr — custom iStays theme ──────────────────── */
.flatpickr-calendar {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  padding: 22px 28px 24px !important;
  margin-top: 8px;
  font-family: 'Poppins', system-ui, sans-serif !important;
  font-size: 13px;
  width: 372px !important;
  max-width: calc(100vw - 32px);
}

/* Center the inner content horizontally inside the calendar */
.flatpickr-innerContainer {
  justify-content: center !important;
}
.flatpickr-rContainer {
  margin: 0 auto !important;
}
.flatpickr-calendar::before,
.flatpickr-calendar::after {
  display: none; /* hide the default arrow pointer */
}

/* Months bar */
.flatpickr-months {
  position: relative; /* anchor the absolutely-positioned arrows */
  padding: 4px 4px 16px;
  align-items: center;
}
.flatpickr-month {
  height: 38px;
  color: #111827;
  fill: #111827;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flatpickr-current-month {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  padding: 0;
  height: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-family: inherit;
  font-weight: 600;
  color: #111827;
  font-size: 15px;
  background: transparent;
  border: none;
  outline: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month input.cur-year:hover {
  background: #f3f4f6;
}
.flatpickr-current-month .numInputWrapper:hover {
  background: transparent;
}

/* Nav arrows — solid blue circles, vertically centered with month text */
.flatpickr-prev-month,
.flatpickr-next-month {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #4799C1 !important;
  color: #ffffff !important;
  fill: #ffffff !important;
  padding: 0 !important;
  top: 6px !important;
  transform: none !important;
  margin-top: 0 !important;
  box-shadow: 0 1px 3px rgba(71, 153, 193, 0.35);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  z-index: 5;
}
.flatpickr-prev-month { left: -2px !important; }
.flatpickr-next-month { right: -2px !important; }
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: #3a7fa3 !important;
  color: #ffffff !important;
  fill: #ffffff !important;
  transform: scale(1.06) !important;
  box-shadow: 0 2px 6px rgba(71, 153, 193, 0.5);
}
.flatpickr-prev-month:active,
.flatpickr-next-month:active {
  transform: scale(0.96) !important;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  width: 12px !important;
  height: 12px !important;
  fill: #ffffff !important;
}
.flatpickr-prev-month svg path,
.flatpickr-next-month svg path {
  fill: #ffffff !important;
}

/* Weekday header */
.flatpickr-weekdays {
  height: 36px;
  padding: 0;
  margin-bottom: 4px;
  width: 294px !important;
}
.flatpickr-weekdaycontainer {
  padding: 0;
  width: 100% !important;
}
span.flatpickr-weekday {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: inherit;
}

/* Day grid */
.dayContainer {
  padding: 0 !important;
  width: 294px !important;
  min-width: 294px !important;
  max-width: 294px !important;
  gap: 0;
}
.flatpickr-day {
  max-width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  border-radius: 50%;
  margin: 2px !important;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  border: none;
  transition: background 0.12s, color 0.12s, transform 0.08s;
  flex-basis: 14.2857% !important;
}
.flatpickr-day:hover {
  background: #4799C1;
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.04);
}
.flatpickr-day.today {
  border: 1.5px solid #4799C1;
  color: #4799C1;
  background: transparent;
  font-weight: 600;
}
.flatpickr-day.today:hover {
  background: #4799C1;
  color: #ffffff;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: #4799C1;
  color: #ffffff;
  border-color: #4799C1;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(71, 153, 193, 0.35);
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #d1d5db;
}
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
  color: #ffffff;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: #d1d5db;
  background: transparent;
  cursor: not-allowed;
  text-decoration: line-through;
  transform: none;
}

/* Range mode (in case we use it later) */
.flatpickr-day.inRange {
  background: #e8f4fa;
  color: #2d6585;
  border-radius: 0;
  box-shadow: -5px 0 0 #e8f4fa, 5px 0 0 #e8f4fa;
}
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #4799C1;
  color: #ffffff;
  border-radius: 50%;
}
.flatpickr-day.startRange { border-radius: 50% 0 0 50%; }
.flatpickr-day.endRange { border-radius: 0 50% 50% 0; }

/* Time inputs (in case we use them later) */
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
  font-family: inherit;
  font-weight: 500;
  color: #111827;
}

/* Year arrows tighter */
.numInputWrapper span.arrowUp::after { border-bottom-color: #6b7280; }
.numInputWrapper span.arrowDown::after { border-top-color: #6b7280; }

/* ── Flatpickr — mobile responsive overrides ─────────── */
@media (max-width: 480px) {
  .flatpickr-calendar {
    width: calc(100vw - 24px) !important;
    max-width: 360px !important;
    padding: 18px 14px 18px !important;
  }
  .flatpickr-prev-month { left: 12px !important; }
  .flatpickr-next-month { right: 12px !important; }
  .dayContainer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: space-around;
  }
  .flatpickr-weekdays {
    width: 100% !important;
  }
  .flatpickr-day {
    max-width: 13.2% !important;
    flex-basis: 13.2% !important;
    height: 38px !important;
    line-height: 38px !important;
    font-size: 13px !important;
    margin: 1px !important;
  }
  .flatpickr-current-month {
    font-size: 15px !important;
  }
}

/* ── Map ──────────────────────────────────────────────── */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: 380px; /* desktop fixed height */
}
.map-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .map-container {
    height: 280px;
  }
}

/* ── Sticky search shadow on scroll ───────────────────── */
.site-header-shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

/* ── Locale Picker (footer) ───────────────────────────── */
.locale-picker {
  position: relative;
  display: inline-block;
}
.locale-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #06182b;  /* brand-900, deep navy */
  color: white;
  border: none;
  border-radius: 9999px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.locale-picker-trigger:hover {
  background: #133249;  /* brand-800 */
}
.locale-picker-trigger:active {
  transform: scale(0.98);
}
.locale-flag {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.locale-currency {
  opacity: 0.7;
  font-weight: 400;
}
.locale-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.15s;
  opacity: 0.8;
}
.locale-picker.open .locale-chevron {
  transform: rotate(180deg);
}

/* Dropdown menu - opens UPWARD */
.locale-picker-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
  list-style: none;
  padding: 8px;
  margin: 0;
  min-width: 240px;
  z-index: 50;
  display: none;
}
.locale-picker.open .locale-picker-menu {
  display: block;
  animation: locale-fade-in 0.15s ease-out;
}
@keyframes locale-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.locale-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.1s;
  color: #222;
}
.locale-option:hover {
  background: #f3f4f6;
}
.locale-option .locale-flag {
  font-size: 22px;
  flex-shrink: 0;
}
.locale-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.3;
}
.locale-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}
.locale-sub {
  font-size: 12px;
  color: #6b7280;
}
.locale-check {
  width: 16px;
  height: 16px;
  color: #4799C1;
  opacity: 0;
  flex-shrink: 0;
}
.locale-option.active .locale-check {
  opacity: 1;
}
.locale-option.active .locale-name {
  color: #4799C1;
}

/* ── Header Search Dropdown Panel ─────────────────────── */
.search-panel-overlay[hidden] { display: none !important; }
.search-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.search-panel-inner {
  background: white;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}
@media (min-width: 768px) {
  .search-panel-overlay {
    position: absolute;
    inset: auto;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    display: block;
  }
  .search-panel-inner {
    width: 640px;
    max-width: calc(100vw - 2rem);
    height: auto;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  }
}

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE OVERRIDES
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  /* Booking card -full width, non-sticky below content on tablet/mobile */
  .booking-card {
    position: static;
    top: auto;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  /* Prevent iOS auto-zoom by ensuring inputs are ≥16px */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="number"],
  input[type="search"],
  input[type="url"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }

  .booking-card {
    padding: 20px 18px;
    border-radius: 12px;
  }

  /* Filter pills -more comfortable touch targets on mobile */
  .filter-pill {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }

  /* Highlight cards -tighter spacing */
  .highlight-card {
    padding: 18px 0;
    gap: 14px;
  }
  .highlight-card .title { font-size: 15px; }
  .highlight-card .desc { font-size: 13px; }

  /* Amenity items -touch-friendly */
  .amenity-item {
    padding: 12px 0;
    font-size: 14px;
    min-height: 44px;
  }

  /* Category pills -natural left-align scroll */
  .category-pill {
    flex: 0 0 auto;
    min-width: auto;
    padding: 8px 2px;
    font-size: 11px;
  }
  .category-pill svg {
    width: 22px;
    height: 22px;
  }

  /* Carousel arrows always visible on mobile (no hover) */
  .property-card-image .carousel-arrow {
    opacity: 0;  /* hide them on mobile -swipe is the native behavior */
  }

  /* Property card text sizing */
  .property-card-title { font-size: 14px; }
  .property-card-subtitle,
  .property-card-dates,
  .property-card-price { font-size: 13px; }

  /* Lightbox tweaks */
  .lightbox-overlay img {
    max-width: 96vw;
    max-height: 80vh;
  }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-close { top: 12px; left: 12px; }
  .lightbox-counter { bottom: 16px; top: auto; }

  /* Show-all-photos button repositioned */
  .show-all-photos-btn {
    bottom: 16px;
    right: 16px;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 20px;
  }

  /* Buttons -ensure minimum 44px touch target */
  .btn-primary {
    min-height: 48px;
    font-size: 15px;
  }

  /* Prose adjustments */
  .prop-prose { font-size: 14px; }
}

/* Very small phones (≤ 380px) */
@media (max-width: 380px) {
  /* Hide logo text on tiny screens to save space for search */
  .property-card-info { padding-top: 10px; }

  /* Mobile bottom bar tighter */
  #mobile-booking-bar {
    padding: 10px 12px;
  }
  #mobile-bar-price { font-size: 15px; }
  #mobile-booking-bar .btn-primary {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 42px;
  }
}

/* Accessibility -respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print styles */
@media print {
  #site-header, #mobile-booking-bar, footer, .booking-card { display: none !important; }
}

/* iOS safe area for bottom bar (notch-aware) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #mobile-booking-bar {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* Touch-friendly tap highlight color */
* { -webkit-tap-highlight-color: rgba(71, 153, 193, 0.1); }

/* Disable text selection on UI chrome */
.category-pill, .filter-pill, .btn-primary, .carousel-arrow, .save-btn {
  -webkit-user-select: none;
  user-select: none;
}
