/* =========================================================
   Treflyn Barn — REFINE v2.1
   Quality polish only — never hide images
   ========================================================= */

/* —— Safer image defaults (always visible) —— */
body.tb-front img {
  opacity: 1;
  visibility: visible;
}

body.tb-front .hero-slide:not(.active) {
  opacity: 0;
}

body.tb-front .hero-slide.active {
  opacity: 1;
}

/* Soft load polish: never start at 0 */
body.tb-front img.tb-img-ready {
  animation: refineImgIn 0.45s ease both;
}

@keyframes refineImgIn {
  from {
    filter: saturate(0.9);
  }
  to {
    filter: none;
  }
}

/* —— Hero: richer depth —— */
body.tb-front .hero-veil {
  background:
    radial-gradient(ellipse 70% 60% at 18% 45%, rgba(8, 14, 11, 0.62), transparent 65%),
    linear-gradient(105deg, rgba(8, 14, 11, 0.88) 0%, rgba(8, 14, 11, 0.42) 48%, rgba(8, 14, 11, 0.2) 72%, rgba(8, 14, 11, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 14, 11, 0.5) 0%, transparent 28%, transparent 55%, rgba(8, 14, 11, 0.78) 100%) !important;
}

body.tb-front .hero-card {
  border-radius: 22px !important;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(240, 215, 176, 0.2) inset !important;
}

body.tb-front .hc-list li {
  border-color: rgba(255, 252, 248, 0.1);
  transition: background 0.25s, padding-left 0.3s;
}

body.tb-front .hc-list li:hover {
  background: rgba(255, 252, 248, 0.06);
  padding-left: 0.35rem;
}

body.tb-front .hero-arrow {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 252, 248, 0.25) !important;
  transition: background 0.25s, transform 0.3s, border-color 0.25s !important;
}

body.tb-front .hero-arrow:hover {
  background: rgba(201, 166, 107, 0.35) !important;
  border-color: rgba(240, 215, 176, 0.6) !important;
  transform: scale(1.06);
}

/* Hero dots: thicker progress feel */
body.tb-front .hero-progress button {
  height: 3px !important;
  border-radius: 2px !important;
  background: rgba(255, 252, 248, 0.28) !important;
}

body.tb-front .hero-progress button.active {
  background: linear-gradient(90deg, #c9a66b, #f0d7b0) !important;
}

/* —— Trust bar —— */
body.tb-front .trust-bar-inner {
  gap: 0.5rem;
}

body.tb-front .tb-item {
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  transition: background 0.3s;
}

body.tb-front .tb-item:hover {
  background: rgba(255, 252, 248, 0.06);
}

/* —— Stats (vertical spacing owned by flow.css) —— */
body.tb-front .stats-band {
  position: relative;
  z-index: 5;
}

body.tb-front .stats-band-inner {
  border-radius: 24px !important;
}

/* —— Promise —— */
body.tb-front .promise {
  margin-top: 0;
}

body.tb-front .promise-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
}

body.tb-front .promise-card p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* —— About: editorial pull —— */
body.tb-front .about-copy .lead-inline {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--forest-soft);
}

body.tb-front .feature-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(15, 28, 22, 0.06);
  transition: padding-left 0.3s, border-color 0.25s;
}

body.tb-front .feature-list li:hover {
  padding-left: 0.35rem;
  border-color: rgba(201, 166, 107, 0.35);
}

body.tb-front .floor-plan {
  gap: 0.75rem;
  margin: 1.35rem 0 1.5rem;
}

body.tb-front .floor-plan > div {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: linear-gradient(160deg, #fffcf8, #f5f0e7);
  border: 1px solid rgba(201, 166, 107, 0.2);
}

/* —— Gallery: captions always readable —— */
body.tb-front .gallery-caption {
  opacity: 0.92 !important;
  transform: none !important;
  padding: 1.5rem 1rem 0.85rem !important;
  background: linear-gradient(transparent, rgba(8, 14, 11, 0.78)) !important;
  font-size: 0.72rem !important;
}

body.tb-front .gallery-item:hover .gallery-caption {
  opacity: 1 !important;
}

body.tb-front .gallery-zoom {
  opacity: 0;
  backdrop-filter: blur(6px);
  background: rgba(15, 28, 22, 0.55) !important;
  border: 1px solid rgba(240, 215, 176, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.85rem !important;
}

body.tb-front .gallery-item:hover .gallery-zoom,
body.tb-front .gallery-item:focus-visible .gallery-zoom {
  opacity: 1;
}

body.tb-front .gallery-item:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

body.tb-front .gallery-item img {
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s !important;
}

/* —— Sleep —— */
body.tb-front .sleep-card {
  border-radius: 18px !important;
  background: var(--paper);
}

body.tb-front .sleep-card-body {
  padding: 1.15rem 1.2rem 1.25rem;
}

body.tb-front .sleep-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  margin-bottom: 0.35rem;
}

/* —— Experience —— */
body.tb-front .exp-card {
  border-radius: 20px !important;
}

body.tb-front .exp-body {
  padding: 1.25rem 1.3rem 1.4rem;
}

body.tb-front .exp-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}

/* —— Day rhythm —— */
body.tb-front .day-rhythm {
  margin-top: 3.5rem;
}

body.tb-front .day-timeline li:hover .dt-dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(201, 166, 107, 0.25);
}

body.tb-front .dt-dot {
  transition: transform 0.3s, box-shadow 0.3s;
}

/* —— Amenities chips —— */
body.tb-front .amenity-cat {
  border-radius: 18px;
  padding: 1.25rem;
  background: linear-gradient(165deg, #fffcf8, #f7f2ea);
  border: 1px solid var(--line);
}

body.tb-front .amenity-chips li {
  border-radius: 999px;
  font-size: 0.78rem;
}

/* —— Location points —— */
body.tb-front .location-point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

body.tb-front .location-point .num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(201, 166, 107, 0.15);
  color: var(--champagne-deep);
}

body.tb-front .location-point h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* Nearby chips */
.nearby-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}

.nearby-chips span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--forest-soft);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.nearby-chips span:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 166, 107, 0.45);
  background: #fffcf8;
}

.nearby-chips strong {
  color: var(--champagne-deep);
  font-weight: 700;
  margin-right: 0.25rem;
}

/* —— Reviews —— */
body.tb-front .review-card {
  border-radius: 18px !important;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s !important;
}

body.tb-front .review-card .stars {
  color: var(--champagne);
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
}

/* —— Rules —— */
body.tb-front .rule-card {
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  height: 100%;
}

body.tb-front .rule-card ul {
  margin-top: 0.75rem;
}

body.tb-front .rule-card li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

body.tb-front .rule-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--champagne);
}

/* —— FAQ —— */
body.tb-front .faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--forest);
}

body.tb-front .faq-q .chev {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 28, 22, 0.05);
  flex-shrink: 0;
  transition: transform 0.35s, background 0.25s;
}

body.tb-front .faq-item.open .faq-q .chev {
  transform: rotate(180deg);
  background: rgba(201, 166, 107, 0.2);
}

body.tb-front .faq-a-inner {
  padding: 0 1.25rem 1.15rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* —— Booking —— */
body.tb-front .booking-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(15, 20, 16, 0.12);
}

body.tb-front .book-panel-title {
  margin-bottom: 0.5rem !important;
}

body.tb-front .wizard-nav {
  margin-top: 0.75rem;
}

/* Book direct reasons */
.book-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 0 0 2rem;
}

.book-reason {
  text-align: center;
  padding: 1.1rem 0.9rem;
  border-radius: 16px;
  background: linear-gradient(165deg, #fffcf8, #f4efe6);
  border: 1px solid rgba(201, 166, 107, 0.22);
  transition: transform 0.35s, box-shadow 0.35s;
}

.book-reason:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 20, 16, 0.07);
}

.book-reason strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 0.25rem;
}

.book-reason span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 700px) {
  .book-reasons {
    grid-template-columns: 1fr;
  }
}

/* —— Host —— */
body.tb-front .host-info h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

body.tb-front .host-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* —— Footer —— */
body.tb-front .footer-about {
  max-width: 36ch;
  line-height: 1.65;
  opacity: 0.78;
}

body.tb-front .footer-col h4 {
  color: var(--champagne-soft);
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

body.tb-front .footer-col a {
  transition: color 0.2s, padding-left 0.25s;
}

body.tb-front .footer-col a:hover {
  color: var(--champagne-soft);
  padding-left: 0.25rem;
}

/* —— Mobile book bar —— */
body.tb-front .mobile-book-bar-inner {
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 40px rgba(8, 14, 11, 0.2);
}

/* —— Back top —— */
body.tb-front .back-top {
  border: 1px solid rgba(201, 166, 107, 0.35) !important;
  box-shadow: 0 10px 28px rgba(15, 20, 16, 0.12) !important;
}

body.tb-front .back-top:hover {
  background: var(--forest) !important;
  color: var(--champagne-soft) !important;
}

/* —— Section spacing rhythm —— */
body.tb-front .section-head {
  margin-bottom: 2.25rem;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

body.tb-front .section-head .lead {
  margin-top: 0.65rem;
}

/* —— Pull quote footer (padding owned by flow.css) —— */
body.tb-front .pull-quote footer {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}

/* —— Filmstrip captions (padding owned by flow.css) —— */

body.tb-front .film-card figcaption {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* —— Selection + focus —— */
body.tb-front a:focus-visible,
body.tb-front button:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

/* —— Sticky header nav active —— */
body.tb-front .nav-links a[data-nav].active {
  color: var(--forest);
  font-weight: 600;
}

body.tb-front .site-header:not(.scrolled) .nav-links a[data-nav].active {
  color: var(--champagne-soft);
}

/* —— Atmosphere strip —— */
body.tb-front .atmosphere-strip {
  padding: 1.5rem 0 2rem;
}

/* —— Reduce motion —— */
@media (prefers-reduced-motion: reduce) {
  body.tb-front .gallery-item img,
  body.tb-front .tb-item,
  body.tb-front .book-reason,
  body.tb-front .nearby-chips span {
    transition: none !important;
  }
}
