/*
Theme Name:   TerraForte (Zante child)
Template:     zante
Description:  TerraForte Rentals redesign based on the former Lodgify site. Child theme of Zante; keeps Eagle Booking.
Version:      0.1.0
Text Domain:  terraforte
*/

/* ==========================================================================
   0. Roboto – self-hosted (variable font 400–700, Apache License 2.0); no Google Fonts requests
   ========================================================================== */
@font-face {
  font-family: "Roboto"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("assets/fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("assets/fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --tf-yellow: #FAD000;
  --tf-yellow-dark: #E6BF00;
  --tf-orange: #DE9931;
  --tf-text: #333333;
  --tf-text-2: #555555;
  --tf-muted: #999999;
  --tf-border: #DDDDDD;
  --tf-bg: #FFFFFF;
  --tf-bg-soft: #F7F7F5;
  --tf-dark: #1F1F1F;
  --tf-footer: #8C7D69;      /* Lodgify footer taupe, rgb(140,125,105) */
  --tf-footer-text: #000000; /* 5.3:1 on taupe (white would be 4.0:1, orange 1.7:1) */
  --tf-radius: 8px;
  --tf-pill: 999px;
  --tf-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --tf-container: 1200px;
  --tf-gutter: 24px;
  --tf-section: 80px;
  --tf-header-h: 96px;
  --tf-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
@media (max-width: 767px) {
  :root { --tf-section: 48px; --tf-gutter: 16px; --tf-header-h: 70px; }
}

/* ==========================================================================
   2. Base typography (overrides Zante's Nunito/Lato mix)
   ========================================================================== */
body, body p, body li, body input, body select, body textarea, body button,
h1, h2, h3, h4, h5, h6, .btn, .eb-btn {
  font-family: var(--tf-font) !important;
}
body { color: var(--tf-text); background: var(--tf-bg); font-size: 16px; line-height: 1.65; }
body p { color: var(--tf-text-2); font-size: 16px; line-height: 1.7; }
h1, h2, h3, h4 { color: var(--tf-text); font-weight: 600; letter-spacing: -.01em; }
a { color: var(--tf-text); }
a:hover, a:focus { color: var(--tf-orange); text-decoration: none; }

.tf-container { width: 100%; max-width: var(--tf-container); margin: 0 auto; padding: 0 var(--tf-gutter); box-sizing: border-box; }
.tf-section { padding: var(--tf-section) 0; }
.tf-section--soft { background: var(--tf-bg-soft); }
.tf-eyebrow { display: block; color: var(--tf-orange); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.tf-h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; margin: 0 0 16px; }
.tf-lead { font-size: 18px; color: var(--tf-text-2); max-width: 760px; }
.tf-center { text-align: center; }
.tf-center .tf-lead { margin-left: auto; margin-right: auto; }

/* Buttons: Lodgify pill, yellow with black text */
.tf-btn, body .eb-btn, body .btn.eb-btn, body #eb_search_form, body .eb-search-form .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border: 0; border-radius: var(--tf-pill) !important;
  background: var(--tf-yellow) !important; color: #000 !important;
  font-size: 16px; font-weight: 500; text-transform: none; letter-spacing: 0;
  box-shadow: none; cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.tf-btn:hover, body .eb-btn:hover, body #eb_search_form:hover { background: var(--tf-yellow-dark) !important; color: #000 !important; }
.tf-btn:focus-visible, body .eb-btn:focus-visible { outline: 3px solid var(--tf-dark); outline-offset: 2px; }
.tf-btn--ghost { background: transparent !important; border: 1.5px solid currentColor; color: inherit !important; }
.tf-btn--ghost:hover { background: rgba(255,255,255,.15) !important; }
.tf-btn--dark { background: var(--tf-dark) !important; color: #fff !important; }
.tf-link { font-weight: 500; border-bottom: 2px solid var(--tf-yellow); }

/* ==========================================================================
   3. Header (replaces Zante top bar + header)
   ========================================================================== */
/* Zante gives every <header> element font-weight 900; reset it for our header blocks */
header.tf-header, header.tf-room__head { font-weight: 400; }

.tf-header {
  position: sticky; top: 0; z-index: 1000; height: var(--tf-header-h);
  background: #fff; box-shadow: 0 1px 0 var(--tf-border);
  transition: box-shadow .25s ease;
}
.admin-bar .tf-header { top: 32px; }
.tf-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tf-brand { display: flex; align-items: center; gap: 12px; color: var(--tf-text); }
.tf-brand img { height: 68px; width: auto; display: block; }
.tf-brand__tag { font-size: 13px; font-weight: 400; line-height: 1.2; max-width: 120px; color: var(--tf-text-2); }
.tf-nav { display: flex; align-items: center; gap: 8px; }
.tf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.tf-nav li { position: relative; }
.tf-nav a { display: block; white-space: nowrap; line-height: 1.3; padding: 10px 14px; font-size: 16px; font-weight: 500; color: var(--tf-text); border-radius: var(--tf-pill); }
.tf-nav a:hover { color: var(--tf-text); background: rgba(0,0,0,.05); }
.tf-header a, .tf-header img { transition: none !important; }
.tf-nav .current-menu-item > a, .tf-nav .current-menu-ancestor > a { box-shadow: inset 0 -3px 0 var(--tf-yellow); border-radius: 0; }
.tf-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.tf-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px; flex-direction: column; align-items: stretch;
  background: #fff; border-radius: var(--tf-radius); box-shadow: var(--tf-shadow); padding: 8px;
}
.tf-nav li:hover > .sub-menu, .tf-nav li:focus-within > .sub-menu { display: flex; }
.tf-nav .sub-menu a { color: var(--tf-text) !important; border-radius: 6px; font-size: 15px; }
.tf-header__cta { margin-left: 8px; min-height: 42px; padding: 0 22px; }
.tf-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: inherit; }
.tf-burger span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .2s; }

/* Transparent header over a hero (home + house pages) */
.tf-has-hero .tf-header { position: fixed; left: 0; right: 0; background: transparent; box-shadow: none; color: #fff; }
.tf-has-hero .tf-header .tf-brand, .tf-has-hero .tf-header .tf-brand__tag,
.tf-has-hero .tf-header .tf-nav > ul > li > a, .tf-has-hero .tf-header .tf-burger { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.tf-has-hero .tf-header .tf-nav > ul > li > a:hover { background: rgba(255,255,255,.15); }
.tf-has-hero.tf-scrolled .tf-header { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.tf-has-hero.tf-scrolled .tf-header .tf-brand, .tf-has-hero.tf-scrolled .tf-header .tf-brand__tag,
.tf-has-hero.tf-scrolled .tf-header .tf-nav > ul > li > a, .tf-has-hero.tf-scrolled .tf-header .tf-burger { color: var(--tf-text); text-shadow: none; }
.tf-has-hero .tf-brand__logo--dark, .tf-brand__logo--light { display: none !important; }
.tf-has-hero .tf-brand__logo--light { display: block !important; }
.tf-has-hero.tf-scrolled .tf-brand__logo--light { display: none !important; }
.tf-has-hero.tf-scrolled .tf-brand__logo--dark { display: block !important; }

@media (max-width: 991px) {
  .tf-burger { display: block; }
  .tf-nav {
    position: fixed; inset: var(--tf-header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px var(--tf-gutter) 32px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease;
  }
  .admin-bar .tf-nav { top: calc(var(--tf-header-h) + 46px); }
  .tf-nav-open .tf-nav { transform: none; }
  .tf-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .tf-nav a, .tf-has-hero .tf-header .tf-nav > ul > li > a { color: var(--tf-text) !important; text-shadow: none !important; font-size: 18px; padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--tf-border); }
  .tf-nav .sub-menu { display: flex; position: static; box-shadow: none; padding: 0 0 0 16px; }
  .tf-nav .sub-menu a { font-size: 16px; }
  .tf-header__cta { margin: 24px 0 0; }
  .tf-nav-open .tf-header { background: #fff !important; }
  .tf-nav-open .tf-header .tf-brand, .tf-nav-open .tf-header .tf-burger { color: var(--tf-text) !important; text-shadow: none !important; }
  .tf-nav-open .tf-brand__logo--light { display: none !important; }
  .tf-nav-open .tf-brand__logo--dark { display: block !important; }
  .tf-nav-open .tf-burger span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .tf-nav-open .tf-burger span:nth-child(3) { opacity: 0; }
  .tf-nav-open .tf-burger span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .tf-nav .tf-header__cta { display: flex; justify-content: center; border-radius: var(--tf-pill) !important; border-bottom: 0 !important; color: #000 !important; text-shadow: none !important; }
  .tf-brand img { height: 50px; }
  .tf-brand__tag { display: none; }
}

/* Hide Zante preloader and top bar remnants if any template still prints them */
#loading, .loading, .topbar { display: none !important; }
body .wrapper { overflow: visible; }

/* Zante pads <main> on some templates; the redesign controls its own spacing */
body #tf-main { padding-top: 0 !important; margin-top: 0 !important; }

/* ==========================================================================
   4. Hero (home)
   ========================================================================== */
.tf-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; background: #3b3b30; }
.tf-hero__slides, .tf-hero__slide { position: absolute; inset: 0; }
.tf-hero__slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.tf-hero__slide.is-active { opacity: 1; animation: tf-kenburns 9s ease-out forwards; }
@keyframes tf-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tf-hero__slide.is-active { animation: none; transform: none; } }
.tf-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.45) 100%); }
.tf-hero__content { position: relative; z-index: 2; width: 100%; text-align: center; padding-top: var(--tf-header-h); }
.tf-hero__title { color: #fff; font-size: clamp(34px, 5.2vw, 56px); font-weight: 600; line-height: 1.1; margin: 0 0 12px; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.tf-hero__sub { color: #fff; font-size: clamp(16px, 1.6vw, 20px); margin: 0 0 32px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.tf-hero__dots { position: absolute; z-index: 2; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.tf-hero__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.tf-hero__dots button.is-active { background: var(--tf-yellow); }

/* Eagle Booking search form restyled as the Lodgify search box */
.tf-search { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 12px; color: var(--tf-text); text-align: left; }
.tf-search .eb-search-form, .tf-search form { margin: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
.tf-search form { display: flex !important; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.tf-search .eb-field-group, .tf-search .eb-col, .tf-search [class*="eb-col"] { flex: 1 1 200px; margin: 0 !important; padding: 0 !important; width: auto !important; position: relative; }
.tf-search label { display: block; font-size: 12px; font-weight: 500; color: var(--tf-text-2); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px 14px; }
.tf-search .eb-field, .tf-search input.eb-datepicker { height: 48px !important; line-height: 48px !important; border: 1px solid var(--tf-border) !important; border-radius: 10px !important; padding: 0 14px !important; font-size: 15px !important; color: var(--tf-text) !important; background: #fff !important; width: 100%; box-sizing: border-box; }
.tf-search button[type="submit"], .tf-search .btn { flex: 0 0 auto; align-self: flex-end; height: 48px; min-width: 160px; margin: 0 !important; }
/* Eagle Booking's horizontal form is a grid of 3 equal columns that does not fill the box:
   give the dates the most room, the button only what it needs, and use the full width. */
.tf-search form { width: 100%; }
.tf-search .eb-form-fields {
  display: grid !important; flex: 1 1 auto; width: 100%;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto !important; gap: 12px !important; align-items: end;
}
.tf-search .eb-form-fields .eb-field-group { min-width: 0; width: auto !important; }
.tf-search .eb-form-fields .eb-btn { width: auto !important; min-width: 180px; white-space: nowrap; }
.tf-search input.eb-datepicker { text-overflow: clip; }
@media (max-width: 767px) {
  .tf-search .eb-form-fields { grid-template-columns: minmax(0, 1fr) !important; }
  .tf-search .eb-form-fields .eb-field-group, .tf-search .eb-form-fields .eb-btn { width: 100% !important; grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .tf-search { margin: 0 var(--tf-gutter); }
  .tf-search form { flex-direction: column; }
  .tf-search .eb-field-group { flex: 1 1 auto; }
  .tf-search button[type="submit"], .tf-search .btn { width: 100%; }
}

/* ==========================================================================
   5. Home sections
   ========================================================================== */
.tf-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.tf-intro__img { border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--tf-shadow); }
.tf-intro__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 991px) { .tf-intro { grid-template-columns: 1fr; gap: 32px; } .tf-intro__img { aspect-ratio: 4/3; } }

.tf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 991px) { .tf-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tf-cards { grid-template-columns: 1fr; } }
.tf-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--tf-shadow); transition: transform .25s ease, box-shadow .25s ease; color: var(--tf-text); }
.tf-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.12); color: var(--tf-text); }
.tf-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.tf-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.tf-card:hover .tf-card__img img { transform: scale(1.04); }
.tf-card__badge { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--tf-text); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: var(--tf-pill); }
.tf-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tf-card__title { font-size: 22px; margin: 0 0 4px; }
.tf-card__loc { font-size: 14px; color: var(--tf-muted); margin-bottom: 12px; }
.tf-card__text { font-size: 15px; margin: 0 0 18px; flex: 1; }
.tf-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--tf-border); padding-top: 16px; }
.tf-price { font-size: 14px; color: var(--tf-text-2); }
.tf-price strong { font-size: 22px; color: var(--tf-text); font-weight: 600; }
.tf-card .tf-btn { min-height: 40px; padding: 0 20px; font-size: 15px; }

.tf-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; color: var(--tf-text-2); }
.tf-facts li { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.tf-facts svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--tf-orange); }

.tf-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
@media (max-width: 991px) { .tf-reviews { grid-template-columns: 1fr; } }
.tf-review { background: #fff; border-radius: 14px; padding: 26px; box-shadow: var(--tf-shadow); display: flex; flex-direction: column; gap: 10px; }
.tf-review__stars { color: var(--tf-yellow); font-size: 18px; letter-spacing: 2px; }
.tf-review__text { font-size: 15px; font-style: italic; margin: 0; }
.tf-review__who { font-size: 14px; color: var(--tf-muted); }
.tf-airbnb { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.tf-hosts { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.tf-hosts__img { border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; max-height: 620px; }
.tf-hosts__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
@media (max-width: 991px) { .tf-hosts { grid-template-columns: 1fr; gap: 28px; } }

.tf-cta { background: var(--tf-dark); color: #fff; border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.tf-cta h2 { color: #fff; margin: 0 0 6px; font-size: clamp(24px, 2.6vw, 32px); }
.tf-cta p { color: rgba(255,255,255,.8); margin: 0; }
@media (max-width: 767px) { .tf-cta { padding: 32px 24px; } }
/* CTA with photo: a gradient instead of flat black keeps the text readable */
.tf-cta--photo { position: relative; overflow: hidden; min-height: 220px; background: #3b3b30 center/cover no-repeat; }
.tf-cta--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.38) 55%, rgba(0,0,0,.12) 100%); }
.tf-cta--photo > * { position: relative; z-index: 1; }
.tf-cta--photo h2, .tf-cta--photo p { text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.tf-cta--photo p { color: rgba(255,255,255,.92); }
@media (max-width: 767px) { .tf-cta--photo::before { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.35) 100%); } }

/* "Check availability" jump: stop below the fixed header with room to spare */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#search { scroll-margin-top: calc(var(--tf-header-h) + 32px); }

/* ==========================================================================
   6. House page (Eagle Booking single room override)
   ========================================================================== */
.tf-room-hero { position: relative; height: 78vh; min-height: 460px; max-height: 760px; background: #333 center/cover no-repeat; }
.tf-room-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.35) 100%); }
.tf-room-hero__btn { position: absolute; z-index: 2; right: max(var(--tf-gutter), calc((100vw - var(--tf-container)) / 2 + var(--tf-gutter))); bottom: 28px; }
.tf-room-hero__btn svg { width: 18px; height: 18px; }

.tf-subnav { position: sticky; top: var(--tf-header-h); z-index: 900; background: #fff; border-bottom: 1px solid var(--tf-border); }
.admin-bar .tf-subnav { top: calc(var(--tf-header-h) + 32px); }
.tf-subnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.tf-subnav ul::-webkit-scrollbar { display: none; }
.tf-subnav a { display: block; white-space: nowrap; padding: 16px 14px; font-size: 16px; font-weight: 500; color: var(--tf-text-2); border-bottom: 3px solid transparent; }
.tf-subnav a.is-active, .tf-subnav a:hover { color: var(--tf-text); border-bottom-color: var(--tf-yellow); }

.tf-room { padding-bottom: 120px; }
.tf-room__head { padding: 36px 0 8px; }
.tf-room__type { display: inline-block; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--tf-orange); margin-bottom: 6px; }
.tf-room__title { font-size: clamp(32px, 4vw, 48px); margin: 0 0 8px; }
.tf-room__loc { color: var(--tf-muted); margin: 0 0 20px; }
.tf-room__facts { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.tf-room__facts li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--tf-border); border-radius: var(--tf-pill); font-size: 15px; font-weight: 400; color: var(--tf-text); margin: 0; }
.tf-room__facts svg { width: 20px; height: 20px; color: var(--tf-orange); }

.tf-block { padding: 48px 0; border-bottom: 1px solid var(--tf-border); scroll-margin-top: calc(var(--tf-header-h) + 70px); }
.tf-block:last-child { border-bottom: 0; }
.tf-block > h2 { font-size: 28px; margin: 0 0 24px; }

.tf-desc { position: relative; max-width: 820px; }
.tf-desc h3 { font-size: 20px; margin: 28px 0 10px; }
.tf-desc h3:first-child { margin-top: 0; }
.tf-desc.is-collapsed { max-height: 420px; overflow: hidden; }
.tf-desc.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.tf-more { margin-top: 16px; background: none; border: 0; padding: 0; font-weight: 600; color: var(--tf-text); border-bottom: 2px solid var(--tf-yellow); cursor: pointer; font-size: 15px; }

.tf-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 10px; }
.tf-gallery a { position: relative; display: block; overflow: hidden; border-radius: 10px; background: #eee; }
.tf-gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.tf-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tf-gallery a:hover img { transform: scale(1.04); }
.tf-gallery a.is-extra { display: none; }
.tf-gallery__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.5); color: #fff; font-weight: 600; font-size: 18px; }
@media (max-width: 767px) { .tf-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; } }

.tf-amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 24px; list-style: none; margin: 0; padding: 0; }
.tf-amenities li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; }
.tf-amenities i { width: 22px; text-align: center; color: var(--tf-orange); font-size: 18px; }
.tf-amenities img { width: 22px; height: 22px; object-fit: contain; }
@media (max-width: 767px) { .tf-amenities { grid-template-columns: 1fr 1fr; } }
.tf-amenity-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 40px; margin-top: 32px; }
.tf-amenity-groups h3 { font-size: 16px; margin: 0 0 6px; }
.tf-amenity-groups p { font-size: 15px; margin: 0; }
@media (max-width: 767px) { .tf-amenity-groups { grid-template-columns: 1fr; } }

.tf-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tf-rule { background: var(--tf-bg-soft); border-radius: 12px; padding: 18px 20px; }
.tf-rule strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--tf-text-2); margin-bottom: 4px; font-weight: 500; }
.tf-rule span { font-size: 17px; font-weight: 500; color: var(--tf-text); }

.tf-rates { width: 100%; max-width: 560px; border-collapse: collapse; }
.tf-rates th, .tf-rates td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--tf-border); font-size: 16px; }
.tf-rates td:last-child { text-align: right; font-weight: 600; }
.tf-policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.tf-policy h3 { font-size: 16px; margin: 0 0 6px; }
.tf-policy p { font-size: 15px; margin: 0; }
@media (max-width: 767px) { .tf-policy { grid-template-columns: 1fr; } }

/* Booking block: availability calendar + inline Eagle Booking form */
.tf-book { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 991px) { .tf-book { grid-template-columns: 1fr; } }
.tf-book__form { position: sticky; top: calc(var(--tf-header-h) + 80px); background: #fff; border: 1px solid var(--tf-border); border-radius: 16px; padding: 24px; box-shadow: var(--tf-shadow); }
.tf-book__form .eb-widget { border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
.tf-book__form .eb-widget .title { display: none; }
.tf-book__form .eb-field-group { margin-bottom: 14px; }
.tf-book__form label { font-size: 13px; font-weight: 500; color: var(--tf-text-2); text-transform: uppercase; letter-spacing: .05em; }
.tf-book__form .eb-field { border-radius: 10px !important; border-color: var(--tf-border) !important; height: 48px; }
.tf-book__form .eb-btn { width: 100%; margin-top: 8px !important; }
.tf-book__price { font-size: 15px; color: var(--tf-text-2); margin-bottom: 4px; }
.tf-book__price strong { font-size: 28px; color: var(--tf-text); }
.tf-book__min { font-size: 14px; color: var(--tf-muted); margin-bottom: 18px; }
#availability .tf-book .section-title { display: none; }
body .eb-availability-calendar .available, body .availability-calendar-list-availability .available { background-color: #fff8cc; }

.tf-host { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; max-width: 820px; }
.tf-host__avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--tf-yellow); color: #000; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 600; }
img.tf-host__avatar { object-fit: cover; display: block; }
.tf-policy { grid-template-columns: minmax(0, 560px); }
.tf-host h3 { margin: 0 0 4px; font-size: 20px; }
.tf-host__langs { font-size: 14px; color: var(--tf-muted); margin-bottom: 10px; }
.tf-host__contact { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 14px; font-size: 15px; }

/* Sticky booking bar (Lodgify-style) */
.tf-bookbar { position: fixed; z-index: 950; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: 0 -4px 24px rgba(0,0,0,.12); transform: translateY(110%); transition: transform .3s ease; }
.tf-bookbar.is-visible { transform: none; }
.tf-bookbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.tf-bookbar__name { font-size: 18px; font-weight: 600; margin: 0; }
.tf-bookbar__meta { font-size: 14px; color: var(--tf-text-2); }
.tf-bookbar__meta strong { color: var(--tf-text); font-size: 16px; }
@media (max-width: 640px) { .tf-bookbar__name { font-size: 16px; } .tf-bookbar .tf-btn { padding: 0 20px; } }
body #back_to_top { bottom: 96px; }

/* Similar houses */
.tf-similar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 640px) { .tf-similar { grid-template-columns: 1fr; } }

/* ==========================================================================
   6b. Inner pages (About, Contact, Reviews, Location)
   ========================================================================== */
.tf-page-hero { position: relative; display: flex; align-items: flex-end; min-height: 52vh; min-height: 52svh; padding: calc(var(--tf-header-h) + 40px) 0 56px; background: #4a4a3c center/cover no-repeat; color: #fff; }
.tf-page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.55) 100%); }
.tf-page-hero__inner { position: relative; z-index: 1; }
.tf-page-hero__title { color: #fff; font-size: clamp(34px, 5vw, 56px); margin: 0 0 10px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.tf-page-hero__sub { color: rgba(255,255,255,.92); font-size: clamp(16px, 1.6vw, 20px); margin: 0; max-width: 720px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.tf-eyebrow--light { color: var(--tf-yellow); }

.tf-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.tf-split--rev { grid-template-columns: .85fr 1.15fr; }
.tf-split__media { position: sticky; top: calc(var(--tf-header-h) + 24px); border-radius: 16px; overflow: hidden; box-shadow: var(--tf-shadow); }
.tf-split__media img { width: 100%; height: auto; display: block; }
.tf-split__media figcaption { padding: 12px 16px; font-size: 14px; color: var(--tf-muted); background: #fff; }
@media (max-width: 991px) { .tf-split, .tf-split--rev { grid-template-columns: 1fr; gap: 32px; } .tf-split__media { position: static; } }
.tf-prose p { font-size: 17px; }
.tf-prose h2 { margin-top: 0; }
.tf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tf-pair img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; display: block; }
.tf-quote { margin: 28px 0 0; padding: 20px 24px; border-left: 4px solid var(--tf-yellow); background: var(--tf-bg-soft); border-radius: 0 12px 12px 0; font-size: 17px; color: var(--tf-text); font-style: italic; }

/* Our story (About) – historic photos as Polaroids */
.tf-story__block { align-items: center; margin-bottom: 8px; }
.tf-story__block + .tf-polaroids, .tf-polaroids + .tf-story__block { margin-top: 48px; }
.tf-polaroids { display: grid; gap: 28px; margin: 48px 0; }
.tf-split .tf-polaroids { margin: 0; }
.tf-polaroids--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.tf-polaroids--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tf-polaroids--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .tf-polaroids--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tf-polaroids { gap: 18px; } }
.tf-polaroid-link { display: block; color: inherit; }
.tf-polaroid { margin: 0; background: #fff; padding: 10px 10px 0; border-radius: 3px; box-shadow: 0 10px 26px rgba(60, 45, 30, .18); transform: rotate(var(--tilt, 0deg)); transition: transform .3s ease, box-shadow .3s ease; }
.tf-polaroid img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tf-polaroid figcaption { padding: 10px 4px 14px; font-size: 14px; line-height: 1.35; font-style: italic; color: var(--tf-text-2); text-align: center; }
.tf-polaroids > a:nth-child(4n+1) .tf-polaroid { --tilt: -1.6deg; }
.tf-polaroids > a:nth-child(4n+2) .tf-polaroid { --tilt: 1.2deg; }
.tf-polaroids > a:nth-child(4n+3) .tf-polaroid { --tilt: -0.7deg; }
.tf-polaroids > a:nth-child(4n+4) .tf-polaroid { --tilt: 1.8deg; }
.tf-polaroid-link:hover .tf-polaroid, .tf-polaroid-link:focus-visible .tf-polaroid { transform: rotate(0deg) scale(1.03); box-shadow: 0 16px 34px rgba(60, 45, 30, .25); }
@media (prefers-reduced-motion: reduce) { .tf-polaroid { transition: none; } }
.tf-story__more { max-width: 760px; margin: 64px auto 0; }
.tf-story__more h3 { font-size: 24px; margin: 40px 0 12px; }
.tf-story__more h3:first-child { margin-top: 0; }
.tf-term { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 20px 0 24px; padding: 18px 22px; background: #fff; border-left: 4px solid var(--tf-orange); border-radius: 0 12px 12px 0; box-shadow: var(--tf-shadow); }
.tf-term__word { font-size: 22px; font-weight: 600; font-style: italic; color: var(--tf-text); }
.tf-term__def { font-size: 15px; color: var(--tf-text-2); }

/* Contact */
.tf-contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 991px) { .tf-contact { grid-template-columns: 1fr; } }
.tf-panel { background: #fff; border: 1px solid var(--tf-border); border-radius: 16px; padding: 32px; box-shadow: var(--tf-shadow); }
@media (max-width: 640px) { .tf-panel { padding: 22px 18px; } }
.tf-panel h2 { font-size: 24px; margin: 0 0 6px; }
.tf-contact-list { list-style: none; margin: 18px 0 0; padding: 0; }
.tf-contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--tf-border); margin: 0; font-size: 16px; }
.tf-contact-list li:first-child { border-top: 0; }
.tf-contact-list svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--tf-orange); margin-top: 2px; }
.tf-contact-list small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tf-muted); }
.tf-contact-list a { font-weight: 500; }

/* Contact Form 7 inside the theme */
.tf-form .wpcf7-form { margin: 0; }
.tf-form .tf-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.tf-form .tf-form__full { grid-column: 1 / -1; }
@media (max-width: 640px) { .tf-form .tf-form__grid { grid-template-columns: 1fr; } }
.tf-form label { display: block; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--tf-text-2); margin: 0 0 6px; }
.tf-form input[type="text"], .tf-form input[type="email"], .tf-form input[type="tel"], .tf-form input[type="date"], .tf-form input[type="number"], .tf-form select, .tf-form textarea {
  width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; border: 1px solid var(--tf-border); border-radius: 10px; background: #fff; font-size: 16px; color: var(--tf-text); box-shadow: none; }
.tf-form textarea { height: 140px; padding: 12px 14px; resize: vertical; }
.tf-form input:focus, .tf-form select:focus, .tf-form textarea:focus { outline: none; border-color: var(--tf-text); box-shadow: 0 0 0 3px rgba(250,208,0,.45); }
.tf-form .wpcf7-list-item { margin: 0; }
.tf-form .wpcf7-acceptance label, .tf-form .wpcf7-list-item-label { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; color: var(--tf-text-2); }
.tf-form input[type="submit"] { margin-top: 8px; min-height: 52px; padding: 0 36px; border: 0; border-radius: var(--tf-pill); background: var(--tf-yellow); color: #000; font-weight: 500; font-size: 16px; cursor: pointer; }
.tf-form input[type="submit"]:hover { background: var(--tf-yellow-dark); }
.tf-form .wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
.tf-form .wpcf7-response-output { border-radius: 10px; margin: 16px 0 0 !important; padding: 12px 16px !important; }
.tf-form .wpcf7-spinner { vertical-align: middle; }

/* Star rating chips in the review form */
.tf-rating .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-rating .wpcf7-list-item { margin: 0 !important; }
.tf-rating .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--tf-border); border-radius: var(--tf-pill); cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--tf-text); margin: 0; }
.tf-rating .wpcf7-list-item input { accent-color: #c9a400; margin: 0; }
.tf-rating .wpcf7-list-item label:has(input:checked) { background: #fff8cc; border-color: var(--tf-yellow); }
.tf-form small { text-transform: none; letter-spacing: 0; color: var(--tf-muted); font-weight: 400; }
#write { scroll-margin-top: calc(var(--tf-header-h) + 16px); }

.tf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Click-to-load map */
.tf-map { position: relative; border-radius: 16px; overflow: hidden; background: var(--tf-bg-soft); aspect-ratio: 4/3; border: 1px solid var(--tf-border); }
.tf-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tf-map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
.tf-map__consent svg { width: 34px; height: 34px; color: var(--tf-orange); }
.tf-map__consent p { margin: 0; }
.tf-map__note { font-size: 13px; color: var(--tf-muted); max-width: 340px; }
.tf-map__consent .tf-btn { margin-top: 6px; }
.tf-map--wide { aspect-ratio: 16/7; }
#location > p svg { width: 18px; height: 18px; color: var(--tf-orange); vertical-align: -3px; }
@media (max-width: 640px) { .tf-map--wide { aspect-ratio: 4/3; } }

/* Location */
.tf-places { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
@media (max-width: 767px) { .tf-places { grid-template-columns: 1fr; } }
.tf-places--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .tf-places--3 { grid-template-columns: 1fr; } }
.tf-place .tf-map { aspect-ratio: 4/3; }
.tf-place { background: #fff; border-radius: 14px; padding: 26px; box-shadow: var(--tf-shadow); }
.tf-place h3 { font-size: 20px; margin: 0 0 4px; }
.tf-place__where { color: var(--tf-muted); font-size: 14px; margin-bottom: 12px; }
.tf-place ul { margin: 12px 0 16px; padding-left: 18px; }
.tf-place li { margin-bottom: 6px; font-size: 15px; color: var(--tf-text-2); }
.tf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 991px) { .tf-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tf-steps { grid-template-columns: 1fr; } }
.tf-step { background: var(--tf-bg-soft); border-radius: 14px; padding: 22px; }
.tf-step svg { width: 28px; height: 28px; color: var(--tf-orange); margin-bottom: 10px; display: block; }
.tf-step h3 { font-size: 17px; margin: 0 0 8px; }
.tf-step p { font-size: 15px; margin: 0; }
.tf-sights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 991px) { .tf-sights { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tf-sights { grid-template-columns: 1fr; } }
.tf-sight { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--tf-shadow); }
.tf-sight img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.tf-sight div { padding: 16px 18px 20px; }
.tf-sight h3 { font-size: 17px; margin: 0 0 6px; }
.tf-sight p { font-size: 14px; margin: 0; }

a.tf-sight { color: var(--tf-text); transition: transform .25s ease, box-shadow .25s ease; }
a.tf-sight:hover { color: var(--tf-text); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.tf-sights--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .tf-sights--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tf-sights--3 { grid-template-columns: 1fr; } }
.tf-search--inline { margin: 0 auto 8px; box-shadow: var(--tf-shadow); }

/* Gallery */
.tf-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.tf-filters button { border: 1.5px solid var(--tf-border); background: #fff; color: var(--tf-text); border-radius: var(--tf-pill); padding: 10px 18px; font-size: 15px; font-weight: 500; cursor: pointer; }
.tf-filters button span { color: var(--tf-muted); font-weight: 400; margin-left: 4px; }
.tf-filters button.is-active { background: var(--tf-yellow); border-color: var(--tf-yellow); color: #000; }
.tf-filters button.is-active span { color: rgba(0,0,0,.6); }
.tf-masonry { columns: 3 280px; column-gap: 14px; }
.tf-masonry a { display: block; break-inside: avoid; margin: 0 0 14px; border-radius: 12px; overflow: hidden; background: #eee; }
.tf-masonry a.is-hidden { display: none; }
.tf-masonry img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.tf-masonry a:hover img { transform: scale(1.03); }

/* Reviews page */
.tf-airbnb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 991px) { .tf-airbnb-cards { grid-template-columns: 1fr; } }
.tf-airbnb-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--tf-shadow); color: var(--tf-text); }
.tf-airbnb-card:hover { color: var(--tf-text); }
.tf-airbnb-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.tf-airbnb-card div { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tf-airbnb-card h3 { font-size: 19px; margin: 0; }

/* ==========================================================================
   6c. Eagle Booking flow (search, booking, checkout, account) – restyle only
   ========================================================================== */
body .eb-stepline { background: var(--tf-bg-soft) !important; }
body .eb-stepline-progress-bar, body .eb-stepline-step.active .eb-stepline-dot, body .eb-stepline-step.completed .eb-stepline-dot,
body .eb-stepline-step.active .eb-stepline-progress-bar, body .eb-stepline-dot.active { background-color: var(--tf-yellow) !important; border-color: var(--tf-yellow) !important; }
body .eb-stepline-step .eb-stepline-title, body .eb-stepline-step { font-family: var(--tf-font) !important; }

/* Range slider (ion.rangeSlider) */
body .irs--round .irs-bar { background-color: var(--tf-yellow) !important; }
body .irs--round .irs-handle { border-color: var(--tf-text) !important; box-shadow: none !important; }
body .irs--round .irs-from, body .irs--round .irs-to, body .irs--round .irs-single { background-color: var(--tf-dark) !important; color: #fff !important; }
body .irs--round .irs-from:before, body .irs--round .irs-to:before, body .irs--round .irs-single:before { border-top-color: var(--tf-dark) !important; }

/* Panels, fields, cards */
body .eb-widget, body .eb-search-page .search-filters .eb-widget { border-radius: 14px !important; }
body .eb-field, body .eb-search-page input[type="text"], body .eb-search-page select,
body .eb-booking-page input[type="text"], body .eb-booking-page input[type="email"], body .eb-booking-page input[type="tel"],
body .eb-booking-page input[type="password"], body .eb-booking-page select, body .eb-booking-page textarea,
body .eb-checkout-page input, body .eb-account-page input, body .eb-account-page select {
  border-radius: 10px !important; border-color: var(--tf-border) !important; font-family: var(--tf-font) !important; }
body .eb-booking-page textarea { border-radius: 10px !important; }
body .room-list-item { border: 0 !important; border-radius: 16px !important; overflow: hidden; box-shadow: var(--tf-shadow) !important; background: #fff; margin-bottom: 24px !important; }
body .room-list-item .room-details h3, body .room-list-item .room-details h2, body .room-list-item h3 a { font-family: var(--tf-font) !important; font-weight: 600 !important; color: var(--tf-text) !important; }
body .room-price-details, body .room-price-search { border-color: var(--tf-border) !important; }
body .room-price .price-amount, body .price-amount { color: var(--tf-text) !important; font-weight: 600 !important; }
body .room-services-item i, body .room-service-item i, body .eb_normal_service i { color: var(--tf-orange) !important; }

/* Buttons & links inside the booking flow */
body .eb-search-page .btn, body .eb-booking-page .btn, body .eb-checkout-page .btn, body .eb-account-page .btn,
body .eb-search-page button.btn, body .eb-booking-page button[type="submit"], body .eb-booking-page input[type="submit"],
body .eb-account-page button[type="submit"] {
  border-radius: var(--tf-pill) !important; background: var(--tf-yellow) !important; border-color: var(--tf-yellow) !important; color: #000 !important;
  font-family: var(--tf-font) !important; font-weight: 500 !important; text-transform: none !important; box-shadow: none !important; }
body .eb-search-page .btn.disabled, body .eb-search-page .btn[disabled] { background: #eee !important; border-color: #eee !important; color: var(--tf-muted) !important; }
body .eb-search-page a:not(.btn), body .eb-booking-page a:not(.btn), body .eb-checkout-page a:not(.btn), body .eb-account-page a:not(.btn) { color: var(--tf-text); text-decoration: underline; text-decoration-color: var(--tf-yellow); text-underline-offset: 3px; }
body .eb-booking-page .nav-tabs > li.active > a, body .eb-booking-page .eb-tabs .active { color: #000 !important; border-color: var(--tf-yellow) !important; }
body .eb-tabs .eb-tabs-titles { background: var(--tf-bg-soft) !important; border-radius: 12px !important; overflow: hidden; }
body .eb-tabs .eb-tab { color: var(--tf-text) !important; font-family: var(--tf-font) !important; font-weight: 500 !important; }
body .eb-tabs .eb-tab .radio-label { color: inherit !important; background: transparent !important; }
body .eb-tabs .eb-tab .radio-label::after, body .eb-radio-box .radio-label::after { background-color: var(--tf-yellow) !important; }
body .eb-tabs .eb-tab:not(.active) .radio-label::after { background-color: transparent !important; }
body .eb-tabs .eb-tab.active, body .eb-tabs .eb-tab.selected, body .eb-tabs .eb-tab[aria-selected="true"] { background: var(--tf-yellow) !important; color: #000 !important; }
body .eb-checkout-page .eb-field, body .eb-checkout-page input[type="text"], body .eb-checkout-page input[type="email"], body .eb-checkout-page input[type="tel"], body .eb-checkout-page select, body .eb-checkout-page textarea { border-radius: 10px !important; border-color: var(--tf-border) !important; }
body .eb-checkout-page .eb-section h2, body .eb-checkout-page h2, body .eb-checkout-page h3 { font-family: var(--tf-font) !important; font-weight: 600 !important; color: var(--tf-text) !important; }
body .eb-checkout-page .eb-btn, body .eb-checkout-page button[type="submit"] { border-radius: var(--tf-pill) !important; }
body .eb-payment-tabs .active, body .eb-payment-methods .active { border-color: var(--tf-yellow) !important; }
body .payment-tab-item { border-radius: 12px !important; }
body .payment-tab-item.active { background: #fff8cc !important; border-color: var(--tf-yellow) !important; }
body .payment-tab-item.active i, body .payment-tab-item.active a::before { color: var(--tf-text) !important; border-color: var(--tf-text) !important; }
body .eb-booking-page input[type="radio"]:checked, body .eb-booking-page input[type="checkbox"]:checked { accent-color: var(--tf-yellow); }
body input[type="checkbox"], body input[type="radio"] { accent-color: #c9a400; }

/* Generic Zante page title band on remaining pages */
body .page-title { background: var(--tf-bg-soft) !important; }
body .page-title h1 { font-family: var(--tf-font) !important; font-weight: 600 !important; color: var(--tf-text) !important; }

/* ==========================================================================
   6d. Legal pages (Privacy, Terms)
   ========================================================================== */
.tf-legal-hero { background: var(--tf-bg-soft); padding: 56px 0 44px; border-bottom: 1px solid var(--tf-border); }
.tf-legal-hero__meta { margin: 10px 0 0; color: var(--tf-muted); font-size: 15px; }
.tf-legal { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 991px) { .tf-legal { grid-template-columns: 1fr; gap: 24px; } }
.tf-legal__toc { position: sticky; top: calc(var(--tf-header-h) + 24px); max-height: calc(100vh - var(--tf-header-h) - 48px); overflow: auto; background: var(--tf-bg-soft); border-radius: 14px; padding: 20px 22px; }
@media (max-width: 991px) { .tf-legal__toc { position: static; max-height: none; } }
.tf-legal__toc summary { font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; list-style: none; }
.tf-legal__toc summary::-webkit-details-marker { display: none; }
.tf-legal__toc summary::after { content: "▾"; float: right; transition: transform .2s; }
.tf-legal__toc details[open] summary::after { transform: rotate(180deg); }
.tf-legal__toc ol { margin: 12px 0 0; padding-left: 20px; }
.tf-legal__toc li { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: var(--tf-text-2); }
.tf-legal__toc a { color: var(--tf-text-2); }
.tf-legal__toc a:hover { color: var(--tf-text); text-decoration: underline; text-decoration-color: var(--tf-yellow); }
.tf-legal__body { max-width: 760px; }
.tf-legal__body h2 { font-size: 26px; margin: 44px 0 14px; scroll-margin-top: calc(var(--tf-header-h) + 20px); }
.tf-legal__body h2:first-child { margin-top: 0; }
.tf-legal__body h3 { font-size: 20px; margin: 28px 0 10px; }
.tf-legal__body h4 { font-size: 17px; margin: 22px 0 8px; }
.tf-legal__body p, .tf-legal__body li { font-size: 16px; line-height: 1.75; color: var(--tf-text-2); }
.tf-legal__body ul, .tf-legal__body ol { padding-left: 22px; margin: 0 0 16px; }
.tf-legal__body li { margin-bottom: 8px; }
.tf-legal__body li p { margin: 0; }
.tf-legal__body a { color: var(--tf-text); text-decoration: underline; text-decoration-color: var(--tf-yellow); text-underline-offset: 3px; word-break: break-word; }
.tf-legal__contact { margin-top: 48px; padding: 20px 24px; background: #fff8cc; border-radius: 12px; font-size: 16px; }
.tf-legal__contact strong { margin-right: 6px; }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.tf-footer { background: var(--tf-footer); color: var(--tf-footer-text); padding: 64px 0 0; margin-top: 0; }
.tf-footer a { color: var(--tf-footer-text); text-decoration: none; }
.tf-footer a:hover, .tf-footer a:focus { color: var(--tf-footer-text); text-decoration: underline; text-underline-offset: 3px; }
.tf-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 991px) { .tf-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tf-footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.tf-footer h3 { color: var(--tf-footer-text); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }
.tf-footer p { color: var(--tf-footer-text); font-size: 15px; }
.tf-footer ul { list-style: none; margin: 0; padding: 0; }
.tf-footer li { margin: 0 0 10px; font-size: 15px; }
.tf-footer__logo img { height: 56px; width: auto; margin-bottom: 14px; }
.tf-footer__bottom { margin-top: 48px; border-top: 1px solid rgba(0,0,0,.18); padding: 20px 0; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Neutralise Zante's own footer/subfooter if a template prints it */
body > .wrapper > footer:not(.tf-footer) { display: none; }

/* Inner pages without a hero still get the white sticky header; keep Zante page header readable */
.page-title, .eb-page-header { padding-top: 40px !important; }

/* Screen-reader helper */
.tf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
