.listing-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
}

/* ----------------------------------------
   Listing page section rhythm
---------------------------------------- */
.inquiry-feedback {
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 14px;
}

.inquiry-feedback.is-error {
    background: #ffe5e5;
    border: 1px solid #d93025;
    color: #b00020;
}

.inquiry-feedback.is-success {
    background: #e6f4ea;
    border: 1px solid #34a853;
    color: #1e7e34;
}
.listing-page .listing-detail section {
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.listing-page .listing-detail section:not(:last-of-type) {
  border-bottom: 1px solid #cccaca;
}
.listing-detail h1 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.listing-detail h2 {
    font-size: 1.2rem;
    margin-bottom: 8px
}

.listing-detail h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.listing-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #eaeaea;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
}
.listing-hero-trigger {
  position: relative;
  display: block;
}
/* Force image to be a lower layer */
.listing-hero-trigger img {
    display: block;
    width: 100%;
    height: auto;

    position: relative;
    z-index: 1;
}
.listing-location {
  color: #555;
  margin-top: 0.25rem;
}
/* ----------------------------------------
   Listing inquiry form – fieldset cleanup
---------------------------------------- */

.listing-page .listing-inquiry fieldset {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem 1rem 1rem;
  margin: 1rem 0;
}

.listing-page .listing-inquiry legend {
  padding: 0 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}
/* ----------------------------------------
   Logged-in inquiry option rows
---------------------------------------- */

.listing-page .listing-inquiry fieldset label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.listing-page .listing-inquiry fieldset input[type="checkbox"],
.listing-page .listing-inquiry fieldset input[type="radio"] {
  margin: 0;
}
.listing-page .listing-inquiry .form-field {
  margin-top: 1.25rem;
}
.listing-page .listing-inquiry button.btn-primary {
  margin-top: 1rem;
}
.listing-page .listing-inquiry fieldset {
  background: #fafafa;
}
.availability {
  font-weight: 600;
  margin-top: 0.5rem;
}
.cost-rent .cost-value {
  font-size: 1.2rem;
  font-weight: 700;
}
.available-now {
  color: #1f7a1f;
}
.basics-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem 1rem;
}
.cost-items,
.basics-list {
    margin: 8px 0;
}
.listing-contact-cta {
    margin: 16px 0;
    text-align: center;
}
.hero-pill {
    position: absolute;
    top: 12px;
    right: 12px;

    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;

    z-index: 3;
}
.listing-hero img {
    width: 100%;
    height: auto;
    display: block;

    position: relative;
    z-index: 1;  /* explicitly set lower */
}
.listing-summary {
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 6px;
}

.listing-price {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.listing-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.listing-flags li {
    font-size: 0.9rem;
    color: #444;
}
.listing-basics ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}
.listing-description p {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 1rem;
}
.listing-description,
.listing-amenities,
.listing-map,
.listing-inquiry {
    margin-top: 16px;
}
.basics-item {
  display: flex;
  align-items: center;
}

.basics-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.basics-icon svg {
  width: 20px;
  height: 20px;
}

.basics-text {
  line-height: 1.2;
}
.listing-amenities h2 {
    margin-bottom: 1rem;
}
.amenities-group {
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.amenities-group:first-of-type {
    border-top: none;
}

.amenities-group ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.amenities-group li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}
@media (max-width: 767px) {
    .listing-summary {
        padding: 1rem;
    }

    .listing-detail section {
         margin-bottom: 16px;
    }
}
body.modal-open {
    overflow: hidden;
}

.photo-modal {
    display: none;
}
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.photo-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-modal-images {
  display: flex;
  flex-direction: row;
  position: relative;
  width: 100%;
  height: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  -webkit-overflow-scrolling: touch;
}
/* Individual image wrapper */
.photo-modal-item {
  position: relative;
  flex: 0 0 100%;
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  scroll-snap-align: center;
}
.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}
/* The image itself */
.photo-modal-images img {
  max-width: 100%;
  max-height: 85vh;

  width: auto;
  height: auto;

  object-fit: contain;
}
/* Caption stays inside */
.photo-modal-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  padding: 0.6rem 0.75rem;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0)
  );

  color: #fff;
  font-size: 0.85rem;
  text-align: center;

  pointer-events: none;
}
.photo-modal-content {
  position: relative;
  z-index: 2; /* ← THIS IS THE KEY */
  width: 95vw;
  height: 90vh;
  max-width: 95vw;
  max-height: 90vh;

  margin: auto;
  padding: 0;

  overflow: hidden;
  border-radius: 10px;
}
.photo-modal-images::-webkit-scrollbar {
  display: none;
}
.photo-modal-images {
  scrollbar-width: none;
}
.photo-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;

  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 5;
}
@media (hover: hover) {
  .photo-swipe-hint {
    display: none !important;
  }
}
.photo-swipe-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);

  padding: 0.35rem 0.75rem;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.55);
  color: #fff;

  font-size: 0.8rem;
  opacity: 0;               /* ← START HIDDEN */
  visibility: hidden;       /* ← IMPORTANT */
  pointer-events: none;

  z-index: 5;
  transition: opacity 0.4s ease;
}
.photo-position-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);

  padding: 0.25rem 0.6rem;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.6);
  color: #fff;

  font-size: 0.85rem;
  line-height: 1;

  z-index: 5;
  pointer-events: none;
}
/* Arrow buttons */
.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
display: flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;

  font-size: 1.25rem;
  cursor: pointer;

  z-index: 5;
}

.photo-nav.prev {
  left: 0.75rem;
}

.photo-nav.next {
  right: 0.75rem;
}

/* Hide arrows on touch devices */
@media (hover: none) {
  .photo-nav {
    display: none;
  }
}
/* Amenities base */
.listing-amenities {
      margin-bottom: 1.75rem;

}

.amenities-group {
    margin-bottom: 1rem;
}
.amenity-group {
  margin-bottom: 1.5rem;
}
.amenity-group h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.amenity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 0.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.4rem 1rem;
}
@media (max-width: 600px) {
  .amenity-list {
    columns: 2;
  }
}
.listing-house-rules {
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 8px;
}
.amenity-list li {
  font-size: 0.95rem;
}
/* Remove default disclosure triangle */
.amenities-group summary {
    list-style: none;
    cursor: pointer;
}

.amenities-group summary::-webkit-details-marker {
    display: none;
}

/* Add subtle affordance */
.amenities-group summary h3::after {
    content: ' ▾';
    font-size: 0.9em;
    opacity: 0.6;
}

/* Rotate arrow when open */
.amenities-group[open] summary h3::after {
    content: ' ▴';
}

/* Mobile-first: collapsed by default */
.amenities-group details {
    margin-top: 0.5rem;
}

/* Desktop: expand by default */
@media (min-width: 768px) {
    .amenities-group {
        open: true;
    }
}
.listing-inquiry {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.inquiry-note {
  color: #555;
  margin-bottom: 1rem;
}
.inquiry-form button {
  margin-top: 0.5rem;
}
.inquiry-form .form-field {
  margin-bottom: 12px;
}
.inquiry-form label {
  display: block;
  font-weight: 500;
  margin-bottom: .25rem;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: .6rem;
  font-size: 1rem;
}

.inquiry-helper-text {
  margin-top: .75rem;
  font-size: 0.9rem;
  color: #666;
}
.inquiry-feedback {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #006400;
}

.inquiry-feedback.is-error {
  color: #b00020;
}

.inquiry-feedback.is-success {
  color: #0a7a33;
}
.inquiry-divider {
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.10);
  margin: 14px 0;
}

.inquiry-soft-prompt {
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
}

.inquiry-soft-title {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
}

.inquiry-soft-body {
  margin: 0 0 10px 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
}

.inquiry-soft-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.inquiry-soft-actions .btn-link {
  font-size: 0.9rem;
  text-decoration: underline;
}
/* ----------------------------------------
   Fix checkbox & radio sizing in inquiry form
---------------------------------------- */

.listing-page .listing-inquiry input[type="checkbox"],
.listing-page .listing-inquiry input[type="radio"] {
  width: auto;
  padding: 0;
  flex-shrink: 0;
}
.contact-hint {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.verified-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 999px;
    background: #e6f7ec;
    color: #1f7a3f;
    font-weight: 600;
}
.listing-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}


/* Property map container */
#property-map {
  width: 100%;
  height: 400px;   /* REQUIRED */
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
}

.listing-distance-note {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #555;
}
.listing-sleeping-setup {
  margin-top: 14px;
}

.listing-sleeping-setup h2 {
  margin-bottom: 8px;
}

/* tighter “cards” */
.listing-sleeping-setup .sleeping-room {
  padding: 10px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  margin-bottom: 8px; /* was 12 */
}

/* make the room label less tall */
.listing-sleeping-setup .sleeping-room h3 {
  margin: 0 0 4px 0; /* was 0 0 6 */
  font-size: 14px;   /* slightly smaller */
  line-height: 1.2;
}

/* kill default list “wasted” space */
.listing-sleeping-setup .sleeping-beds {
  margin: 0;
  padding: 0;          /* remove indent */
  list-style: none;    /* remove bullet */
}

.listing-sleeping-setup .sleeping-beds li {
  margin: 0;           /* was 2px */
  line-height: 1.25;
  color: #333;
}

/* make each bed line a compact “pill row” */
.listing-sleeping-setup .sleeping-beds li::before {
  content: "•";
  display: inline-block;
  margin-right: 8px;
  color: #888;
}

/* mobile: even tighter */
@media (max-width: 640px) {
  .listing-sleeping-setup .sleeping-room {
    padding: 9px 10px;
    margin-bottom: 7px;
  }

  .listing-sleeping-setup .sleeping-room h3 {
    font-size: 13.5px;
  }
}
.listing-video {
  margin: 32px auto;
  max-width: 800px; /* 👈 key */
  text-align: center;
}

.listing-video h2 {
  margin-bottom: 12px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08); /* subtle lift */
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.photo-modal-item.video-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.photo-modal-item.video-item .video-wrapper {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
}

.photo-modal-item.video-item iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 70px;
  height: 70px;
  border-radius: 50%;

  background: rgba(0,0,0,0.6);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;
  z-index: 2;

  pointer-events: none; /* important so button still clicks */
}

.video-play-overlay::before {
  content: '▶';
  margin-left: 3px; /* optical centering */
}
.video-play-overlay {
  transition: transform 0.2s ease, background 0.2s ease;
}

.listing-hero-trigger:hover .video-play-overlay {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(0,0,0,0.75);
}
.listing-preview-banner {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 6px;
  font-size: 14px;
}