/* ==========================================================================
   Area hub sections (Lookout Mountain and future area pages)
   Borrows the Group Stays look: same colors, fonts, buttons and Dark style.
   Every rule is scoped to .tr-hub (the class on each section), so nothing
   here touches the rest of the site.
   ========================================================================== */

.tr-hub{
  --hub-cream:#fbf8f1; --hub-paper:#f4eee2; --hub-green:#69745d; --hub-green-dark:#565f4c;
  --hub-espresso:#473129; --hub-ink:#312824; --hub-rule:#e3d9c6;
  --hub-serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --hub-util:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  /* Light (default) style tokens. Dark redefines them below. */
  --hub-bg:transparent; --hub-fg:var(--hub-ink); --hub-heading:var(--hub-espresso); --hub-muted:#6b5d55;
  --hub-line:var(--hub-rule); --hub-tint:var(--hub-paper); --hub-accent:var(--hub-green);
  /* Content width = the header's content width, same as Group Stays.
     If the header width changes, change these two values (and Group Stays') to match. */
  --hub-content:1192px; --hub-gutter:24px;
  --hub-side:max(var(--hub-gutter), calc((100% - var(--hub-content)) / 2));
  box-sizing:border-box; color:var(--hub-fg); font-size:17px; line-height:1.6;
  padding-top:64px; padding-bottom:64px;
}
/* Side padding keeps content inside the header's width even when Astra stretches the section */
.tr-hub.tr-hub{padding-left:var(--hub-side);padding-right:var(--hub-side)}
.tr-hub *,.tr-hub *::before,.tr-hub *::after{box-sizing:border-box}
.tr-hub :is(h2,h3,p,figure){margin:0;padding:0}
.tr-hub :is(h2,h3){font-family:var(--hub-serif);color:var(--hub-heading);font-weight:700;letter-spacing:0;text-transform:none}
.tr-hub h2{font-size:clamp(28px,3.4vw,38px);line-height:1.2}
.tr-hub h3{font-size:22px;line-height:1.3}
.tr-hub :is(h2,.hub-intro__text,.hub-stays__intro){text-wrap:balance}
.tr-hub a{color:var(--hub-accent)}
.tr-hub a:focus-visible,.tr-hub summary:focus-visible{outline:3px solid var(--hub-accent);outline-offset:3px;border-radius:2px}
.tr-hub + .tr-hub:not(.is-style-trg-dark){padding-top:16px}
/* Anchor links (property links in the panels) stop below the fixed header */
.tr-hub [id]{scroll-margin-top:120px}

/* Text links */
.tr-hub .hub-link{font-weight:600;font-size:16px}
.tr-hub .hub-link a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.tr-hub .hub-link a:hover{text-decoration-thickness:2px}
.tr-hub .hub-note{font-family:var(--hub-util);font-size:14px;color:var(--hub-muted);margin-top:14px}

/* ---------- Buttons (same as Group Stays) ---------- */
.tr-hub .hub-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:0}
.tr-hub .hub-actions .wp-block-button{margin:0}
.tr-hub .hub-actions .wp-block-button > .wp-block-button__link{display:inline-block;padding:14px 26px;border-radius:4px;font-family:inherit;font-weight:600;font-size:16px;line-height:1.2;text-decoration:none;border:2px solid var(--hub-green);box-shadow:none}
.tr-hub .hub-actions .hub-btn--solid > .wp-block-button__link{background:var(--hub-green);color:#fff}
.tr-hub .hub-actions .hub-btn--solid > .wp-block-button__link:hover{background:var(--hub-green-dark);border-color:var(--hub-green-dark);color:#fff}
.tr-hub .hub-actions .hub-btn--line > .wp-block-button__link{background:transparent;color:var(--hub-green)}
.tr-hub .hub-actions .hub-btn--line > .wp-block-button__link:hover{background:var(--hub-green);color:#fff}

/* ---------- Search bar (first section, under the banner) ---------- */
.tr-hub.tr-hub.hub-searchbar{padding-top:32px;padding-bottom:0}

/* ---------- Intro ---------- */
.tr-hub.tr-hub.hub-intro{text-align:center;padding-top:56px;padding-bottom:40px}
.tr-hub .hub-intro__title{font-size:clamp(30px,4vw,44px);line-height:1.15;margin-bottom:18px}
.tr-hub .hub-intro__text{max-width:680px;margin:0 auto 28px;font-size:18px}
.tr-hub .hub-intro__text:last-child{margin-bottom:0}

/* ---------- On the mountain or near its base ---------- */
.tr-hub .hub-split__panels{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}
.tr-hub .hub-split__panel{position:relative;padding:30px 30px 26px;border-radius:6px;background:var(--hub-cream);border:1px solid var(--hub-line)}
.tr-hub .hub-split__panel--high{background:var(--hub-tint);border-color:transparent}
.tr-hub .hub-split__title{margin-bottom:8px}
.tr-hub .hub-split__text{margin-bottom:16px}
.tr-hub .hub-split__panel .hub-link + .hub-link{margin-top:6px}

/* ---------- Stay cards ---------- */
.tr-hub .hub-stays__heading{text-align:center;margin-bottom:10px}
.tr-hub .hub-stays__intro{text-align:center;color:var(--hub-muted);margin-bottom:36px}
/* Flex, not grid, so a short last row centers (5 stays = 3 + 2) */
.tr-hub .hub-cards{display:flex;flex-wrap:wrap;justify-content:center;gap:40px 28px}
.tr-hub .hub-cards > .hub-card{flex:0 1 calc((100% - 56px) / 3)}
.tr-hub .hub-cards > *{margin:0}
.tr-hub .hub-card{display:flex;flex-direction:column}
.tr-hub .hub-card__img{margin-bottom:16px}
.tr-hub .hub-card__img img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:6px}
.tr-hub .hub-card__tag{font-family:var(--hub-util);font-size:14px;font-weight:600;color:var(--hub-accent);margin-bottom:4px}
.tr-hub .hub-card__title{margin-bottom:8px}
.tr-hub .hub-card__text{margin-bottom:12px;flex-grow:1}

/* ---------- Stays with live listings ---------- */
.tr-hub .hub-live__heading{text-align:center;margin-bottom:10px}
.tr-hub .hub-live__intro{text-align:center;color:var(--hub-muted);margin-bottom:28px}
.tr-hub .hub-prop{padding-top:40px}
.tr-hub .hub-prop__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 32px;padding-top:24px;border-top:1px solid var(--hub-line);margin-bottom:20px}
.tr-hub .hub-prop__intro{flex:1 1 420px;max-width:680px}
.tr-hub .hub-prop__tag{font-family:var(--hub-util);font-size:14px;font-weight:600;color:var(--hub-accent);margin-bottom:2px}
.tr-hub .hub-prop__title{font-size:26px;margin-bottom:6px}
.tr-hub .hub-prop__head .hub-link{flex:none}
.tr-hub .hub-prop__stays{min-width:0;transition:opacity .2s ease}
.tr-hub .hub-prop__stays.is-loading{opacity:.45}
.tr-hub .trg-stays__status{margin:0;padding-bottom:16px;font-family:var(--hub-util);font-size:15px;color:var(--hub-muted)}
.tr-hub .trg-stays__change{color:var(--hub-accent);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.tr-hub .hub-prop__stays.is-empty .trg-stays__status{padding:20px 22px;border:1px dashed var(--hub-line);border-radius:6px;color:var(--hub-fg)}
.tr-hub .hub-prop__stays .tr-property-group__title{display:none}
#content .tr-hub .hub-prop__stays .tr-property-group__grid{justify-content:flex-start;margin-bottom:0}
.tr-hub .trg-stays__extra{display:none !important}
.tr-hub .trg-stays__more{display:block;margin:24px auto 0;padding:12px 24px;border:2px solid var(--hub-green);border-radius:4px;background:transparent;color:var(--hub-green);font-family:inherit;font-weight:600;font-size:16px;line-height:1.2;cursor:pointer}
.tr-hub .trg-stays__more:hover{background:var(--hub-green);color:#fff}
.tr-hub .trg-stays__more:focus-visible{outline:3px solid var(--hub-accent);outline-offset:3px}
/* The plugin's own results list only holds leftovers here (other properties), so it stays hidden */
.tr-hub .hub-results{display:none}

/* ---------- Drive times (espresso chart, utility font) ---------- */
.tr-hub .hub-drive__heading{text-align:center;margin-bottom:28px}
.tr-hub .hub-table{margin:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.tr-hub .hub-table table{width:100%;min-width:620px;border-collapse:collapse;font-family:var(--hub-util);font-size:15px;color:var(--hub-espresso);font-variant-numeric:tabular-nums;border:0}
.tr-hub .hub-table th,.tr-hub .hub-table td{padding:12px 16px;text-align:left;border:0;border-bottom:1px solid var(--hub-line);background:var(--hub-cream)}
.tr-hub .hub-table thead th{background:var(--hub-espresso);color:var(--hub-cream);font-weight:600;border-bottom:0}
.tr-hub .hub-table thead th:first-child{border-top-left-radius:6px}
.tr-hub .hub-table thead th:last-child{border-top-right-radius:6px}
.tr-hub .hub-table td:first-child{font-weight:700}
.tr-hub .hub-table td:first-child a{color:inherit;text-decoration:underline;text-decoration-color:var(--hub-line);text-underline-offset:3px}
.tr-hub .hub-table :is(th,td):first-child{position:sticky;left:0;z-index:1}

/* ---------- Group callout ---------- */
.tr-hub.hub-callout{display:grid;grid-template-columns:minmax(0,1.6fr) auto;gap:32px;align-items:center}
.tr-hub .hub-callout__heading{margin-bottom:10px}
.tr-hub .hub-callout__body{max-width:620px}
.tr-hub.hub-callout .hub-actions{justify-content:flex-end}

/* ---------- FAQ ---------- */
.tr-hub .hub-faq__heading{text-align:center;margin-bottom:32px}
.tr-hub .hub-faq__list{max-width:820px;margin:0 auto;border-bottom:1px solid var(--hub-line)}
.tr-hub .hub-faq__list > *{margin:0}
.tr-hub .hub-faq__item{border-top:1px solid var(--hub-line);padding:18px 0}
.tr-hub .hub-faq__item summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:16px;font-family:var(--hub-serif);font-weight:700;font-size:19px;line-height:1.35;color:var(--hub-heading)}
.tr-hub .hub-faq__item summary::-webkit-details-marker{display:none}
.tr-hub .hub-faq__item summary::after{content:"+";flex:none;font-family:var(--hub-util);font-weight:400;font-size:24px;line-height:1;color:var(--hub-accent);transition:transform .2s ease}
.tr-hub .hub-faq__item[open] summary::after{transform:rotate(45deg)}
.tr-hub .hub-faq__item p{margin-top:10px}

/* ---------- Guides (blog posts for this area) ---------- */
.tr-hub .hub-guides__heading{text-align:center;margin-bottom:32px}
.tr-hub .hub-guides__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.tr-hub .hub-guides__list > *{margin:0}
.tr-hub .hub-guide{border-top:3px solid var(--hub-green);padding-top:18px}
.tr-hub .hub-guide__title{margin-bottom:8px}
.tr-hub .hub-guide__text{margin-bottom:12px}

/* ---------- Dark style (shared "Dark" option with Group Stays) ---------- */
.tr-hub.is-style-trg-dark{
  --hub-bg:var(--hub-ink); --hub-fg:#f3ece0; --hub-heading:var(--hub-cream); --hub-muted:#c9bdae;
  --hub-line:rgba(251,248,241,.18); --hub-tint:rgba(251,248,241,.08); --hub-accent:#b9c4ab;
  background-color:var(--hub-bg);box-shadow:0 0 0 100vmax var(--hub-bg);clip-path:inset(0 -100vmax);
  padding-top:72px;padding-bottom:72px;margin-top:48px;margin-bottom:48px}
.tr-hub.is-style-trg-dark .hub-split__panel{background:var(--hub-tint);border-color:var(--hub-line)}
.tr-hub.is-style-trg-dark .hub-actions .hub-btn--solid > .wp-block-button__link{background:var(--hub-cream);border-color:var(--hub-cream);color:var(--hub-ink)}
.tr-hub.is-style-trg-dark .hub-actions .hub-btn--solid > .wp-block-button__link:hover{background:#e9e0cf;border-color:#e9e0cf}
.tr-hub.is-style-trg-dark .hub-actions .hub-btn--line > .wp-block-button__link{border-color:var(--hub-cream);color:var(--hub-cream)}
.tr-hub.is-style-trg-dark .hub-actions .hub-btn--line > .wp-block-button__link:hover{background:var(--hub-cream);color:var(--hub-ink)}
.tr-hub.is-style-trg-dark .hub-table :is(th,td){background:transparent;color:var(--hub-fg)}
.tr-hub.is-style-trg-dark .hub-table thead th{background:rgba(251,248,241,.12);color:var(--hub-cream)}

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .tr-hub .hub-cards > .hub-card{flex-basis:calc((100% - 28px) / 2)}
  .tr-hub.hub-callout{grid-template-columns:1fr;text-align:center}
  .tr-hub .hub-callout__body{margin:0 auto}
  .tr-hub.hub-callout .hub-actions{justify-content:center}
}
@media (max-width:760px){
  .tr-hub{--hub-gutter:16px}
}
@media (max-width:700px){
  .tr-hub{padding-top:48px;padding-bottom:48px;font-size:16px}
  .tr-hub .hub-prop__head{align-items:flex-start}
  .tr-hub .hub-split__panels{grid-template-columns:1fr;gap:20px}
  .tr-hub .hub-split__panel{padding:24px 22px 20px}
  .tr-hub .hub-cards > .hub-card{flex-basis:100%}
  .tr-hub .hub-guides__list{grid-template-columns:1fr}
  .tr-hub .hub-actions .wp-block-button{flex:1 1 100%}
  .tr-hub .hub-actions .wp-block-button > .wp-block-button__link{display:block;text-align:center}
}
@media (prefers-reduced-motion:reduce){
  .tr-hub .hub-faq__item summary::after{transition:none}
}
