/* Main column: photos, videos, copy — matches area guide content width */
.showcase-section-title {
  font-family: "Lora", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #1a1a18;
  margin-bottom: 1.25rem;
  text-align: center;
}

.showcase-body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #2c2c28;
}

.showcase-body p {
  margin-bottom: 1rem;
}

/* Responsive media from the rich text editor */
.showcase-body img,
.showcase-body video,
.showcase-body iframe {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 1.25rem auto;
}

.showcase-body iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 200px;
}

.showcase-body figure {
  margin: 1.5rem 0;
}

.showcase-body figcaption {
  font-size: 0.88rem;
  color: #6b6a66;
  text-align: center;
  margin-top: 0.5rem;
}

/* Simple two-column grid when editors use wrapping divs / consecutive imgs */
.showcase-body .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.showcase-body .gallery-grid img {
  margin: 0;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (min-width: 720px) {
  .showcase-section-title {
    text-align: left;
  }
}

/* ── Filtered gallery (category chips + quick tags; rental slugs are custom, not area-guide cats) ── */
.ps-gallery-filter-block {
  margin-bottom: 1rem;
}
.ps-filter-heading {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.ps-gallery-section .toolbar {
  margin-bottom: 0;
}
.chip.ps-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.chip.ps-chip .chip-ic {
  font-size: 1.05em;
  line-height: 1;
}
/* area-guide.css .chip.active sets white text without background for unknown data-cat — fix for rental slugs */
.ps-gallery-section .chip.ps-chip {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}
.ps-gallery-section .chip.ps-chip:hover {
  border-color: #aaa;
  color: var(--text);
}
.ps-gallery-section .chip.ps-chip.active {
  background: var(--navy);
  color: #fff !important;
  border-color: transparent;
}

.ps-gallery-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.ps-gallery-search-row input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.ps-gallery-search-row input:focus {
  border-color: var(--blue);
}

.ps-gallery-grid .ps-gallery-card .card-accent {
  height: 4px;
  background: var(--navy);
}
.ps-gallery-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}
.ps-gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}

.ps-gallery-card .badge-zone {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 12px;
  background: #e6f1fb;
  color: #185fa5;
  white-space: nowrap;
}

.ps-gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Column count from admin: --ps-gallery-cols on #ps-gallery-grid (1–3; mobile stacks to 1) */
.ps-gallery-grid.grid {
  grid-template-columns: repeat(var(--ps-gallery-cols, 3), minmax(0, 1fr));
}

@media (max-width: 640px) {
  .ps-gallery-grid.grid {
    grid-template-columns: 1fr;
  }
}

/* ── Rental showcase FAQ (same Q&A pattern as Netfusion; light theme like area-guide body) ── */
.ps-faq {
  max-width: 100%;
}

.ps-faq__kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8b2323;
  border: 1px solid rgba(139, 35, 35, 0.35);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.75rem;
}

.ps-faq .ps-faq__title.showcase-section-title {
  margin-bottom: 1.25rem;
}

.ps-faq__list {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.35rem 1.15rem 0.5rem;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.06);
}

.ps-faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ps-faq__item:last-child {
  border-bottom: none;
}

.ps-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 2rem 0.95rem 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  user-select: none;
}

.ps-faq__q::-webkit-details-marker {
  display: none;
}

.ps-faq__q::after {
  content: "›";
  position: absolute;
  right: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.2s;
}

.ps-faq__item[open] .ps-faq__q::after {
  transform: translateY(-50%) rotate(90deg);
}

.ps-faq__q:hover {
  color: #8b2323;
}

.ps-faq__q:focus-visible {
  outline: 2px solid #8b2323;
  outline-offset: 2px;
  border-radius: 4px;
}

.ps-faq__a {
  padding: 0 2rem 1rem 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.ps-faq__a-line {
  margin: 0 0 0.55rem;
  padding: 0;
}

.ps-faq__a-line:last-child {
  margin-bottom: 0;
}

.ps-faq__a-line strong {
  font-weight: 600;
  color: var(--text);
}

/* ── Airbnb iCal availability (rental showcase home) ── */
/* Optional house photo: --rental-availability-bg on <section> (admin). Photo is ::before; cream wash is ::after
   so it is not hidden behind the section’s own background (parent BG paints above ::before in most browsers). */
.rental-availability {
  /* Photo sits in ::before; keep strong enough to read through ::after wash */
  --rental-availability-bg-opacity: 0.35;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #f5f3ef;
  border-top: 1px solid rgba(28, 26, 23, 0.1);
  border-bottom: 1px solid rgba(28, 26, 23, 0.1);
  padding: 2rem 1.25rem 2.25rem;
}

.rental-availability::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--rental-availability-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--rental-availability-bg-opacity);
}

.rental-availability::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Lighter wash so the house photo stays visible; text stays readable via inner content on z-index 2 */
  background: linear-gradient(
    180deg,
    rgba(248, 246, 242, 0.62) 0%,
    rgba(255, 255, 255, 0.72) 100%
  );
}

.rental-availability__inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.rental-availability__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 400;
  color: #1a1a18;
  text-align: center;
  margin-bottom: 0.35rem;
}

.rental-availability__lead {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5c5a56;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.rental-availability__swipe-hint {
  display: none;
}

.rental-availability__months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
  gap: 1.5rem 1.25rem;
  justify-content: center;
}

/* Light panel behind each month grid for contrast over section BG / optional photo */
.av-month {
  box-sizing: border-box;
  width: 100%;
  min-width: 0; /* allow shrinking inside CSS grid columns so inner 7-col grid does not overflow */
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 12px;
  padding: 0.85rem 0.7rem 0.75rem;
  box-shadow: 0 2px 14px rgba(28, 26, 23, 0.07);
}

.av-month__title {
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a18;
  text-align: center;
  margin-bottom: 0.5rem;
}

.av-month__dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8884;
  text-align: center;
}

.av-month__week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  min-width: 0;
}

.av-day {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  background: #fff;
  border: 1px solid rgba(28, 26, 23, 0.08);
  color: #2c2c28;
}

.av-day--outside {
  opacity: 0.35;
  background: transparent;
  border-color: transparent;
}

.av-day--past:not(.av-day--outside) {
  opacity: 0.45;
  background: #f3f1ed;
}

.av-day--booked:not(.av-day--outside) {
  background: rgba(139, 35, 35, 0.14);
  border-color: rgba(139, 35, 35, 0.28);
  color: #6e1b1b;
  font-weight: 600;
}

.rental-availability__legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  color: #5c5a56;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(28, 26, 23, 0.07);
}

.rental-availability__legend li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.av-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(28, 26, 23, 0.12);
}

.av-legend-swatch--free {
  background: #fff;
}

.av-legend-swatch--booked {
  background: rgba(139, 35, 35, 0.14);
  border-color: rgba(139, 35, 35, 0.28);
}

.av-legend-swatch--past {
  background: #f3f1ed;
}

.rental-availability__error {
  text-align: center;
  color: #6b6a66;
  font-size: 0.92rem;
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Narrow screens: one month per view, horizontal swipe / scroll */
@media (max-width: 639px) {
  .rental-availability__swipe-hint {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: #8a8884;
    margin: 0 0 0.65rem;
    letter-spacing: 0.02em;
  }

  .rental-availability__months {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }

  .rental-availability__months .av-month {
    box-sizing: border-box;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

