/* ==========================================================
   Grand Road listing page (loads after styles.css)
   ========================================================== */

.listing { padding-bottom: 24px; }
.star { color: #A67C2E; }
.muted { color: var(--ink-soft); }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 22px 0 18px; font-size: 13px; color: var(--ink-mute); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--garnet); }
.crumbs [aria-current] { color: var(--ink); }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 8px;
  border-radius: 14px; overflow: hidden;
}
.gallery a { position: relative; display: block; overflow: hidden; background: #E9E0D2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.gallery a:hover img { transform: scale(1.04); filter: brightness(.94); }
.gallery__main { grid-row: 1 / span 2; }
.gallery__badge {
  position: absolute; left: 18px; top: 18px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--ink); font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.gallery__more {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px; background: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 600; box-shadow: 0 8px 20px rgba(0,0,0,.18);
  transition: background-color .25s ease, color .25s ease;
}
.gallery__tile--more:hover .gallery__more { background: var(--garnet); color: var(--white); }

/* Layout */
.listing__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; align-items: start; padding-top: 44px; }

/* Title block */
.listing__head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.listing__kicker { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--garnet); }
.listing__kicker::before { content: ""; width: 36px; height: 1px; background: var(--garnet); opacity: .7; }
.listing__head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.05; }
.listing__facts { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 15px; color: var(--ink-soft); }
.listing__facts li + li::before { content: "·"; margin: 0 10px; color: #B9AC9E; }
.listing__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.trust-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink); text-decoration: none; padding-right: 8px; }
.trust-rating span:last-child { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--white); font-size: 13px; font-weight: 600; color: var(--ink);
}
.trust-pill img { height: 15px; width: auto; }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.highlight { display: flex; gap: 16px; align-items: flex-start; }
.highlight__icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(133,16,47,.08); color: var(--garnet); transition: background-color .3s ease, color .3s ease;
}
.highlight:hover .highlight__icon { background: var(--garnet); color: var(--white); }
.highlight h3 { font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.highlight p { font-size: 14px; color: var(--ink-soft); }

/* Generic listing section */
.l-section { padding: 36px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.l-section:last-child { border-bottom: 0; }
.l-section h2 { font-size: clamp(28px, 2.6vw, 36px); }
.l-section__head { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.lead { font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 680px; }

.readmore summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--garnet); font-size: 15px; }
.readmore summary::-webkit-details-marker { display: none; }
.readmore summary::after { content: " →"; }
.readmore__close { display: none; }
.readmore[open] .readmore__open { display: none; }
.readmore[open] .readmore__close { display: inline; }
.readmore__body { margin-top: 14px; color: var(--ink-soft); max-width: 680px; }

/* Amenities */
.amen-list { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.amen-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.amen-list svg { color: var(--garnet); flex-shrink: 0; }

/* Reviews */
.l-reviews { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.l-review { margin: 0; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; transition: transform .3s ease, box-shadow .3s ease; }
.l-review:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(35,26,23,.08); }
.l-review blockquote { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.l-review figcaption { display: flex; align-items: center; gap: 10px; }
.l-review figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.3; font-size: 14px; }
.l-review small { color: var(--ink-mute); font-size: 12px; }
.l-review__avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cream); color: var(--berry); font-family: var(--font-display); font-weight: 600; font-size: 18px; }

/* Map */
.map { position: relative; width: 100%; height: 340px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #E9E0D2; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.8); }
.map__pin { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: rgba(133,16,47,.16); border: 2px solid rgba(133,16,47,.5); pointer-events: none; }
.nearby { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.nearby li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nearby li:nth-child(odd) { padding-right: 24px; }
.nearby li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.nearby span { color: var(--ink-soft); text-align: right; }

/* Good to know */
.know { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.know h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.know ul li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.know ul li span { color: var(--ink-soft); }
.know__col > p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }

/* Booking card */
.book-card-wrap { position: sticky; top: 100px; }
.book-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  box-shadow: 0 24px 50px rgba(35,26,23,.10); display: flex; flex-direction: column; gap: 16px;
}
.book-card__price { display: flex; justify-content: space-between; align-items: baseline; }
.book-card__price strong { font-family: var(--font-display); font-size: 34px; font-weight: 600; }
.book-card__price p span { color: var(--ink-soft); font-size: 15px; }
.book-card__rating { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.book-card__save {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px;
  background: #FBF3E6; border: 1px solid #EAD9BA; font-size: 13px; line-height: 1.45; color: var(--ink);
}
.book-card__save svg { color: var(--garnet); flex-shrink: 0; margin-top: 1px; }
.book-card__save strong { color: var(--garnet); }
.book-card__fields { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #D9CBB8; border-radius: 10px; overflow: hidden; }
.bf { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; }
.bf + .bf { border-left: 1px solid #D9CBB8; }
.bf--wide { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid #D9CBB8; }
.bf span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.bf input, .bf select { border: 0; padding: 0; background: transparent; font: 400 15px var(--font-body); color: var(--ink); width: 100%; }
.bf input:focus, .bf select:focus { outline: none; }
.bf:focus-within { background: #FBF7F1; box-shadow: inset 0 -2px 0 var(--garnet); }
.book-card__note { text-align: center; font-size: 13px; color: var(--ink-mute); margin-top: -6px; }
.book-card__assure { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.book-card__assure li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink); }
.book-card__assure svg { color: var(--teal); flex-shrink: 0; }
.book-card__alt { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.book-card__alt .text-link { padding: 0; }
.book-card__long { margin-top: 14px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.book-card__long a { font-weight: 600; }

/* Similar homes: three across */
.homes--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Mobile price bar on the listing */
.sticky-cta__text strong { font-family: var(--font-display); font-size: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .listing__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .l-reviews { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 140px; }
  .gallery__main { grid-column: 1 / -1; grid-row: auto; }
  .gallery__tile:nth-of-type(2), .gallery__tile:nth-of-type(3) { display: none; }
  .listing__layout { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .book-card-wrap { position: static; order: 2; margin: 8px 0 24px; }
  .homes--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .crumbs { padding: 14px 0; }
  .crumbs [aria-current], .crumbs span[aria-hidden]:nth-of-type(2) { display: none; }
  .gallery { margin: 0 calc(var(--gutter) * -1); border-radius: 0; grid-template-rows: 250px 120px; }
  .highlights, .amen-list, .know, .nearby { grid-template-columns: 1fr; }
  .nearby li:nth-child(odd), .nearby li:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
  .map { height: 260px; }
  .homes--three { grid-template-columns: none; }
  .listing__kicker { font-size: 16px; }
}

/* Mobile: show the booking card right after the highlights */
@media (max-width: 860px) {
  .listing__content { display: contents; }
  .listing__head { order: 1; }
  .highlights { order: 2; }
  .book-card-wrap { order: 3; }
  .listing__content > .l-section { order: 4; }
}

/* ---------- Accordion sections ---------- */
.l-acc { padding: 0; gap: 0; align-items: stretch; }
.l-acc > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; border-radius: 6px;
}
.l-acc > summary::-webkit-details-marker { display: none; }
.l-acc > summary:focus-visible { outline: 2px solid var(--garnet); outline-offset: 4px; }
.l-acc__title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.l-acc__title h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.l-acc__meta { font-size: 14px; color: var(--ink-mute); }
.l-acc__icon {
  position: relative; flex: 0 0 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  transition: background-color .25s ease, border-color .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.l-acc__icon::before, .l-acc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px;
  background: var(--ink); border-radius: 2px; transition: transform .35s cubic-bezier(.2,.8,.2,1), background-color .25s ease;
}
.l-acc__icon::after { transform: rotate(90deg); }
.l-acc[open] .l-acc__icon::after { transform: rotate(0deg); }
.l-acc > summary:hover .l-acc__icon { background: var(--ink); border-color: var(--ink); }
.l-acc > summary:hover .l-acc__icon::before, .l-acc > summary:hover .l-acc__icon::after { background: var(--white); }
.l-acc[open] .l-acc__meta { opacity: 0; height: 0; margin-top: -6px; overflow: hidden; }
.l-acc__meta { transition: opacity .25s ease; }
.l-acc__body { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding: 0 0 36px; }
@media (prefers-reduced-motion: no-preference) {
  .l-acc[open] .l-acc__body { animation: acc-in .4s cubic-bezier(.2,.8,.2,1); }
  @keyframes acc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  @supports (interpolate-size: allow-keywords) {
    .l-acc { interpolate-size: allow-keywords; }
    .l-acc::details-content { block-size: 0; overflow: clip; transition: block-size .4s cubic-bezier(.2,.8,.2,1), content-visibility .4s allow-discrete; }
    .l-acc[open]::details-content { block-size: auto; }
  }
}
@media (max-width: 600px) {
  .l-acc > summary { padding: 22px 0; }
  .l-acc__icon { flex-basis: 38px; height: 38px; }
}
