/* =========================================================
   Subpage components for AroundThomasville
   (loads after base.css, uses the same color variables)
   ========================================================= */

/* ---- Page banner: small sunrise with the oak emblem ---- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 82% 70%, rgba(240,207,130,.7) 0, rgba(240,207,130,.3) 150px, rgba(240,207,130,0) 270px),
    linear-gradient(180deg, var(--sky) 0%, #F5EDD5 100%);
}
.page-hero .wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: end; padding-top: 30px; position: relative; z-index: 2; }
.page-hero-text { padding-bottom: 54px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--forest); max-width: 20ch; }
.page-hero .lede { margin-top: 14px; font-size: 1.1rem; color: var(--muted); max-width: 56ch; }
.page-hero .emblem { width: 100%; max-width: 330px; justify-self: center; margin-bottom: 22px; animation: rise 1s ease-out both; }
.page-hero-hills { display: block; width: 100%; height: 60px; margin-top: -56px; position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 24px; }
.hero-stats div { font-size: .92rem; color: var(--muted); }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--rose); line-height: 1.1; }

.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--forest); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; color: var(--olive); }

/* ---- Generic layout ---- */
.section { padding: 48px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p.sub { color: var(--muted); margin-top: 10px; max-width: 58ch; }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.side { display: grid; gap: 18px; position: sticky; top: 20px; }

.card { background: var(--paper); border-radius: 14px; padding: 24px; }
.card h3 { font-size: 1.2rem; color: var(--forest); }
.card p { color: var(--muted); margin-top: 6px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

/* Chips used as filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--forest);
  font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; font-family: var(--sans);
}
.chip:hover { border-color: var(--forest); }
.chip.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip.rose { color: var(--rose); border-color: #EBC5C9; }
.chip.rose:hover, .chip.rose.on { background: var(--rose); color: #fff; border-color: var(--rose); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { font-size: .8rem; font-weight: 600; color: var(--forest); background: var(--olive-soft); padding: 3px 10px; border-radius: 999px; }

/* ---- Forms ---- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 5px; }
.input, select.input, textarea.input {
  width: 100%; font: inherit; color: var(--ink); background: #FDFCF8;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px;
}
.input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(29,74,50,.15); background: #fff; }
textarea.input { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 4px; accent-color: var(--forest); width: 17px; height: 17px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search-bar { display: flex; gap: 10px; background: var(--paper); border-radius: 999px; padding: 6px; box-shadow: 0 6px 22px rgba(29,74,50,.12); border: 1px solid #E9E1C6; }
.search-bar .input { border: 0; background: transparent; border-radius: 999px; }
.search-bar .input:focus { box-shadow: none; }
.search-bar .divider { width: 1px; background: var(--line); margin: 8px 0; }

/* ---- Callouts ---- */
.note { background: var(--olive-soft); border-radius: 12px; padding: 16px 20px; font-size: .95rem; }
.note strong { color: var(--forest); }
.alert { background: var(--rose-soft); border-left: 5px solid var(--rose); border-radius: 12px; padding: 16px 20px; font-size: .95rem; }
.alert strong { color: var(--rose); }

/* ---- Business cards (featured, recent, open now, favorites) ---- */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.biz-card { background: var(--paper); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 6px; border: 1px solid transparent; }
.biz-card:hover { border-color: var(--olive); }
.biz-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.biz-card .mono {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--olive-soft); color: var(--forest); font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
}
.biz-card .photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.biz-card h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; }
.biz-card h3 a { color: var(--ink); text-decoration: none; }
.biz-card h3 a:hover { color: var(--forest); text-decoration: underline; }
.biz-card .meta { font-size: .88rem; color: var(--muted); }
.biz-card .desc { color: var(--ink); font-size: .95rem; }
.biz-card .added { font-size: .85rem; color: var(--olive); font-weight: 600; }
.biz-card .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; align-items: center; }
.save-btn { background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.save-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.save-btn:hover, .save-btn.saved { color: var(--rose); border-color: var(--rose); }
.save-btn.saved svg { fill: var(--rose); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }

/* Open-now result rows */
.results-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.results-head .count { color: var(--muted); font-size: .95rem; }
.row-list { background: var(--paper); border-radius: 14px; overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 18px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row h3 { font-family: var(--sans); font-size: 1.04rem; font-weight: 700; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a:hover { color: var(--forest); text-decoration: underline; }
.row .meta { font-size: .9rem; color: var(--muted); }
.row .fresh { font-size: .8rem; color: var(--olive); }
.row .buttons { display: flex; gap: 8px; }
.status.late::before { background: #C98A1B; box-shadow: 0 0 0 3px rgba(201,138,27,.2); }
.status.allday { background: #E4EEF0; color: #24545E; }
.status.allday::before { background: #2F7F8F; box-shadow: 0 0 0 3px rgba(47,127,143,.2); }

/* ---- Category atlas ---- */
.atlas-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.atlas-nav a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); text-decoration: none; font-family: var(--serif); font-weight: 700; color: var(--forest); border: 1px solid var(--line); }
.atlas-nav a:hover { background: var(--forest); color: #fff; }
.letter-group { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.letter-group .letter { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; color: var(--rose); line-height: 1; }
.cat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cat-card { background: var(--paper); border-radius: 14px; padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; border: 1px solid transparent; }
.cat-card:hover { border-color: var(--forest); }
.cat-card strong { font-family: var(--serif); font-size: 1.2rem; color: var(--forest); }
.cat-card span.d { color: var(--muted); font-size: .92rem; }
.cat-card .counts { display: flex; gap: 14px; margin-top: 8px; font-size: .85rem; color: var(--olive); font-weight: 700; }
.view-toggle { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.view-toggle button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.view-toggle button.on { background: var(--forest); color: #fff; }

/* ---- Outside sources (calendars, guides) ---- */
.source { background: var(--paper); border-radius: 14px; padding: 26px; display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 24px; }
.source + .source { margin-top: 16px; }
.source .kind { font-size: .85rem; font-weight: 700; color: var(--rose); }
.source h3 { font-size: 1.45rem; color: var(--forest); margin-top: 4px; }
.source p { color: var(--muted); margin-top: 8px; }
.source .best { background: var(--sky); border-radius: 12px; padding: 16px; font-size: .92rem; align-self: start; }
.source .best strong { display: block; color: var(--forest); margin-bottom: 4px; }
.source .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ext svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; margin-left: 4px; vertical-align: -1px; }
.start-here { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.start-here .card { border-top: 4px solid var(--sun); }

/* ---- Empty state ---- */
.empty { background: var(--paper); border-radius: 14px; padding: 44px 28px; text-align: center; }
.empty img { width: 120px; margin: 0 auto 14px; opacity: .85; }
.empty h2 { font-size: 1.5rem; }
.empty p { color: var(--muted); margin: 8px auto 18px; max-width: 46ch; }

/* ---- Band call to action ---- */
.cta-band {
  border-radius: 18px; padding: 34px 36px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(circle at 95% 10%, rgba(240,207,130,.3) 0, rgba(240,207,130,0) 45%), var(--forest);
}
.cta-band h2 { color: #fff; font-size: 1.7rem; }
.cta-band p { color: #D5E0CF; margin-top: 8px; max-width: 54ch; }
.cta-band .btn { background: var(--sun); color: var(--forest-deep); }
.cta-band .btn:hover { background: #fff; }
.cta-band .btn-quiet { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn-quiet:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---- Numbered steps (only for real sequences) ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before {
  counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 24px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--rose); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--paper); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent; }
.plan.best { border-color: var(--forest); position: relative; }
.plan .ribbon { position: absolute; top: -13px; left: 24px; background: var(--rose); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.4rem; color: var(--forest); }
.plan .price { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; color: var(--ink); line-height: 1; }
.plan .price small { font-family: var(--sans); font-size: .95rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--olive-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231D4A32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { margin-top: auto; text-align: center; }

/* ---- Long text: legal and policy pages ---- */
.doc { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 36px; align-items: start; }
.toc { position: sticky; top: 20px; background: var(--paper); border-radius: 14px; padding: 18px; font-size: .92rem; }
.toc strong { display: block; color: var(--forest); margin-bottom: 8px; font-family: var(--serif); }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--rose); }
.prose { background: var(--paper); border-radius: 14px; padding: 34px 38px; font-size: 1.02rem; line-height: 1.7; }
.prose > * { max-width: 72ch; }
.prose h2 { font-size: 1.45rem; margin: 32px 0 10px; scroll-margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 20px 0 6px; font-family: var(--sans); color: var(--ink); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 4px 0; }
.updated { font-size: .9rem; color: var(--muted); margin-top: 12px; }

/* ---- Account and owner areas ---- */
.acct { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 28px; align-items: start; }
.acct-nav { background: var(--paper); border-radius: 14px; padding: 12px; display: grid; gap: 2px; position: sticky; top: 20px; }
.acct-nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; display: flex; justify-content: space-between; }
.acct-nav a:hover { background: var(--olive-soft); }
.acct-nav a.on { background: var(--forest); color: #fff; }
.acct-nav a small { opacity: .7; }
.acct-nav .who { padding: 12px 14px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-nav .who strong { display: block; font-family: var(--serif); color: var(--forest); }
.acct-nav .who span { font-size: .85rem; color: var(--muted); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-cards .card strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--forest); line-height: 1.1; }
.stat-cards .card span { color: var(--muted); font-size: .9rem; }
.auth { max-width: 480px; margin: 0 auto; }
.auth .card { padding: 32px; }
.tabs { display: flex; background: var(--olive-soft); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 999px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--paper); color: var(--forest); box-shadow: 0 2px 8px rgba(19,53,36,.1); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Authentication access card */
.auth-access-layout { grid-template-columns: minmax(0, 760px) minmax(260px, 320px); justify-content: space-between; }
.auth-access { width: 100%; max-width: 760px; }
.auth-access-card { padding: 32px; }
.auth-access [data-panel][hidden] { display: none !important; }
.auth-tabs { margin-bottom: 26px; }
.auth-tabs button { min-height: 44px; transition: background-color .16s ease, color .16s ease, box-shadow .16s ease; }
.auth-tabs button:focus-visible { outline: 3px solid rgba(29,74,50,.22); outline-offset: 2px; }
.auth-access-form { gap: 18px; }
.auth-alert { margin-bottom: 20px; }
.auth-google-block { display: grid; gap: 12px; }
.google-auth-button {
  width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid #dadce0; border-radius: 10px; background: #fff; color: #3c4043; text-decoration: none;
  font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 600; line-height: 20px;
  box-shadow: 0 1px 2px rgba(60,64,67,.08); transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.google-auth-button:hover { background: #f8faff; border-color: #c8d2e1; box-shadow: 0 1px 3px rgba(60,64,67,.16); color: #202124; }
.google-auth-button:focus-visible { outline: 3px solid rgba(66,133,244,.24); outline-offset: 2px; }
.google-auth-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.auth-google-note { margin: -2px auto 0; max-width: 58ch; color: var(--muted); font-size: .82rem; line-height: 1.45; text-align: center; }
.auth-or { margin: 2px 0 0; }
.auth-or span { white-space: nowrap; }
.auth-legal-checks { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #FDFCF8; }
.auth-primary-button { width: 100%; min-height: 48px; justify-content: center; }
.auth-link-row { display: flex; justify-content: flex-end; margin-top: -6px; font-size: .92rem; }
.auth-link-row a { font-weight: 700; }
.auth-benefits { margin: 10px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 7px; }
.auth-side-action { margin-top: 14px !important; }
@media (max-width: 1000px) { .auth-access-layout { grid-template-columns: 1fr; } .auth-access { max-width: 760px; margin: 0 auto; } }
@media (max-width: 760px) { .auth-access-card { padding: 22px 18px; } .auth-tabs button { padding: 10px 8px; } .auth-or span { white-space: normal; text-align: center; } }

/* Deal and job cards */
.deal { background: var(--paper); border-radius: 14px; padding: 22px; border: 2px dashed var(--sun); position: relative; }
.deal .off { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--rose); }
.deal h3 { font-family: var(--sans); font-size: 1.05rem; margin-top: 6px; }
.deal p { color: var(--muted); font-size: .93rem; margin-top: 6px; }
.deal .ends { font-size: .85rem; font-weight: 700; color: var(--forest); margin-top: 12px; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .with-side, .doc, .acct { grid-template-columns: 1fr; }
  .side, .toc, .acct-nav { position: static; }
  .source { grid-template-columns: 1fr; }
  .plans, .steps, .card-grid.three { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
  .page-hero .emblem { display: none; }
  .page-hero-text { padding-bottom: 60px; }
  .form-row, .start-here, .card-grid.two, .plans, .steps, .card-grid.three { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .letter-group { grid-template-columns: 1fr; gap: 10px; }
  .prose { padding: 24px 22px; }
  .search-bar { flex-direction: column; border-radius: 18px; }
  .search-bar .divider { display: none; }
  .cta-band { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) { .page-hero .emblem { animation: none; } }

/* ---- Cookie choice bar (every page) ---- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto;
  background: var(--paper); border-radius: 16px; padding: 18px 20px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  box-shadow: 0 18px 40px rgba(19,53,36,.22); border-top: 4px solid var(--olive);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar strong { font-family: var(--serif); color: var(--forest); }
.cookie-bar p { font-size: .92rem; color: var(--muted); margin-top: 2px; max-width: 52ch; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Skip link becomes visible when focused */
a.sr-only:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 8px; }
