/* yogaguide.us — one stylesheet, no build step, no web fonts. Same bones as a classic classifieds site; its own calm identity. */

:root {
  --ink: #1d1c19;
  --muted: #6e6a62;
  --faint: #9a958c;
  --rule: #e6e2d9;
  --bg: #ffffff;
  --panel: #f6f4ee;
  --accent: #2c6e5c;       /* deep sage — links & actions */
  --accent-dark: #1f5546;
  --visited: #6f5b8a;      /* soft plum — links you've already opened */
  --bad: #a2392b;
  --bad-bg: #fbeeea;
  --good-bg: #edf5f0;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: var(--visited); }
.topnav a:visited, .brand:visited, .btn:visited, .place a:visited, .subs a:visited, .foot a:visited, .filters a:visited, .pager a:visited, h2 a:visited, .sections a:visited, .states a:visited, .nearby a:visited { color: var(--accent); }
h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: 24px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
code { background: var(--panel); padding: 1px 4px; border-radius: 3px; font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 20px 0; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.nowrap { white-space: nowrap; }

/* ---- header ---- */
.top { border-bottom: 1px solid var(--rule); background: var(--bg); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 56px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: 25px; letter-spacing: -.01em; color: var(--ink) !important; line-height: 1; }
.brand:hover { text-decoration: none; }
.place { display: flex; flex-direction: column; line-height: 1.15; }
.place a { font-weight: 600; font-size: 16px; }
.place small a { font-weight: 400; font-size: 12px; color: var(--muted); }
.search { display: flex; flex: 1 1 260px; max-width: 460px; }
.search input { flex: 1; min-width: 0; border: 1px solid var(--rule); border-right: 0; border-radius: 4px 0 0 4px; padding: 7px 10px; font: inherit; }
.search button { border: 1px solid var(--rule); background: var(--panel); border-radius: 0 4px 4px 0; padding: 7px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
@media (max-width: 640px) {
  .bar { gap: 8px 12px; }
  .brand { font-size: 21px; }
  .place a { font-size: 15px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .topnav { margin-left: auto; gap: 10px; }
  .topnav .account { display: none; }
}

/* ---- buttons & forms ---- */
.btn { display: inline-block; border: 1px solid var(--accent); color: var(--accent); background: #fff; border-radius: 4px; padding: 6px 14px; font: inherit; font-weight: 500; cursor: pointer; line-height: 1.3; }
.btn:hover { text-decoration: none; background: var(--good-bg); }
.btn.primary { background: var(--accent); color: #fff !important; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { padding: 3px 9px; font-size: 13px; }
.btn.plain { border-color: var(--rule); color: var(--ink); }
.form label { display: block; margin: 0 0 14px; font-weight: 500; }
.form label small { display: block; font-weight: 400; margin-top: 2px; }
.form input[type=text], .form input[type=email], .form input[type=url], .form input[type=number], .form input[type=date], .form input[type=password], .form input[type=search], .form select, .form textarea {
  display: block; width: 100%; max-width: 560px; margin-top: 4px; padding: 8px 10px; border: 1px solid #cfcac0; border-radius: 4px; font: inherit; background: #fff; color: var(--ink);
}
.form input.short { max-width: 200px; }
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .search input:focus { outline: 2px solid #9cc6b8; outline-offset: 0; border-color: var(--accent); }
.form .checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-weight: 400; }
.form .checks label, .form .radios label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.form .radios { display: grid; gap: 4px; margin-top: 6px; font-weight: 400; }
.form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.form legend { font-weight: 600; font-size: 16px; padding: 0; margin-bottom: 10px; padding-top: 8px; border-top: 1px solid var(--rule); width: 100%; padding-top: 14px; }
.form .err { color: var(--bad); font-weight: 400; font-size: 13px; }
.form .has-error input, .form .has-error textarea, .form .has-error select { border-color: var(--bad); }
.form .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 10px 14px; border-radius: 4px; margin: 14px 0; }
.flash.good { background: var(--good-bg); border: 1px solid #cfe3d8; }
.flash.bad { background: var(--bad-bg); border: 1px solid #efc9c1; color: var(--bad); }
.err { color: var(--bad); }
.checks li { list-style: none; }
ul.checks { padding: 0; }
.checks .pass { color: var(--accent); }
.checks .fail { color: var(--bad); }

/* ---- home ---- */
.hero { padding: 40px 0 22px; }
.hero .headline { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-weight: 400; font-size: 40px; letter-spacing: -.02em; margin: 0; line-height: 1.05; }
@media (max-width: 640px) { .hero { padding-top: 26px; } .hero .headline { font-size: 32px; } }
.hero .tag { color: var(--muted); font-size: 17px; margin: 8px 0 22px; }
.picker { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.picker select { font: inherit; padding: 8px 10px; border: 1px solid #cfcac0; border-radius: 4px; background: #fff; max-width: 100%; }
.quick { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.quick a { margin-right: 10px; }
.states { column-count: 4; column-gap: 36px; margin-top: 8px; }
.states .state { break-inside: avoid; margin-bottom: 16px; }
.states h3 { margin: 0 0 2px; font-size: 15px; }
.states ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.55; }
@media (max-width: 960px) { .states { column-count: 3; } }
@media (max-width: 640px) { .states { column-count: 2; column-gap: 24px; } }
@media (max-width: 400px) { .states { column-count: 1; } }

/* ---- city page ---- */
.citygrid { display: grid; grid-template-columns: 178px minmax(0, 1fr) 200px; gap: 28px 36px; padding: 22px 0 40px; }
.citygrid h1 { font-size: 22px; margin-bottom: 14px; }
.side h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.side ul { list-style: none; margin: 0 0 20px; padding: 0; font-size: 14px; line-height: 1.6; }
.side .btn { display: block; text-align: center; margin-bottom: 10px; }
.sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 28px; }
.section h2 { font-size: 16px; margin-bottom: 4px; }
.section h2 .n { color: var(--faint); font-weight: 400; font-size: 13px; margin-left: 4px; }
.section ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.6; }
.section ul a { color: var(--ink); }
.section ul a:hover { color: var(--accent); }
.section .blurb { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
@media (max-width: 960px) { .citygrid { grid-template-columns: 1fr; gap: 20px; } .side.left { order: 2; } .side.right { order: 3; } .sections { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 360px) { .sections { grid-template-columns: 1fr; } }

/* calendar */
.cal { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 20px; }
.cal caption { text-align: left; font-weight: 600; padding: 0 0 4px; font-size: 13px; }
.cal th { font-weight: 400; color: var(--faint); padding: 2px 0; }
.cal td { text-align: center; padding: 2px 0; color: var(--faint); }
.cal td.today { outline: 1px solid var(--rule); border-radius: 3px; }
.cal td a { display: block; font-weight: 600; background: var(--good-bg); border-radius: 3px; }
.cal td a:visited { color: var(--accent); }

/* ---- listing lists ---- */
.listhead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 18px 0 8px; }
.listhead h1 { margin: 0; font-size: 21px; }
.scope { display: flex; gap: 4px; flex-wrap: wrap; font-size: 13px; margin: 0 0 12px; }
.scope a, .scope span { padding: 3px 10px; border: 1px solid var(--rule); border-radius: 20px; color: var(--ink); }
.scope span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.scope a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.filters { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; font-size: 14px; }
.filters .subs { display: flex; gap: 2px 12px; flex-wrap: wrap; }
.filters .subs .on { font-weight: 600; color: var(--ink); }
.filters form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.filters select, .filters input { font: inherit; font-size: 14px; padding: 4px 6px; border: 1px solid #cfcac0; border-radius: 4px; background: #fff; }
.filters input[type=search] { width: 170px; }
.count { color: var(--muted); font-size: 13px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.rows .date { color: var(--muted); font-size: 13px; width: 52px; flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows .when { color: var(--ink); font-size: 13px; width: 78px; flex: none; font-weight: 500; }
.rows .thumb { width: 64px; height: 48px; flex: none; border-radius: 3px; background: var(--panel); object-fit: cover; }
.rows .nothumb { width: 64px; height: 48px; flex: none; border-radius: 3px; background: var(--panel); }
.rows .main { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.rows .title { font-size: 15px; }
.rows .price { font-weight: 600; white-space: nowrap; }
.rows .where { color: var(--muted); font-size: 13px; }
.rows .tags { color: var(--faint); font-size: 12px; flex-basis: 100%; }
.rows .cat { color: var(--faint); font-size: 12px; }
.empty { padding: 30px 0; color: var(--muted); }
.empty a.btn { margin-top: 10px; }
.pager { display: flex; gap: 12px; align-items: center; margin: 16px 0 40px; font-size: 14px; }
@media (max-width: 480px) { .rows .date { width: 48px; font-size: 12px; } .rows .thumb, .rows .nothumb { width: 56px; height: 42px; } .rows .when { width: 70px; font-size: 12px; } }

/* ---- one listing ---- */
.listing { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px 40px; padding: 18px 0 40px; }
.listing .crumbs { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.listing h1 { font-size: 24px; margin: 4px 0 2px; }
.listing .price { font-size: 20px; font-weight: 600; margin-left: 10px; }
.listing .meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.gallery { margin: 8px 0 16px; }
.gallery .big img { max-height: 520px; width: auto; max-width: 100%; border-radius: 4px; background: var(--panel); }
.gallery .thumbs { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.gallery .thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 3px; cursor: pointer; opacity: .7; }
.gallery .thumbs img.on, .gallery .thumbs img:hover { opacity: 1; outline: 2px solid var(--accent); }
.attrs { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 14px; margin: 0 0 18px; }
.attrs dt { color: var(--muted); }
.attrs dd { margin: 0; }
.body { font-size: 15.5px; max-width: 70ch; }
.body p { margin: 0 0 1em; }
.contact { border: 1px solid var(--rule); border-radius: 6px; padding: 14px; font-size: 14px; }
.contact .btn { display: block; text-align: center; margin-bottom: 10px; }
.contact .phone { font-size: 17px; font-weight: 600; }
.contact .tools { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.contact .tools a { margin-right: 10px; }
.postinfo { font-size: 12px; color: var(--faint); margin-top: 20px; }
.stylechips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.stylechips a { font-size: 12px; background: var(--panel); border-radius: 20px; padding: 2px 9px; color: var(--ink); }
.stylechips a:hover { background: var(--good-bg); color: var(--accent); text-decoration: none; }
@media (max-width: 760px) { .listing { grid-template-columns: 1fr; } }

/* ---- misc pages ---- */
.foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 24px 16px 40px; font-size: 13px; border-top: 1px solid var(--rule); margin-top: 20px; }
.foot .muted { margin-left: auto; }
.prose { max-width: 70ch; padding: 10px 0 40px; }
.prose h2 { margin-top: 26px; }
.prose ul { padding-left: 20px; }
.statepage { padding: 20px 0 40px; }
.statepage .cities { list-style: none; padding: 0; margin: 10px 0 24px; column-count: 4; column-gap: 24px; font-size: 15px; line-height: 1.7; }
@media (max-width: 800px) { .statepage .cities { column-count: 2; } }
.catlinks { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 14px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .twocol { grid-template-columns: 1fr; } }
table.simple { border-collapse: collapse; width: 100%; font-size: 14px; }
table.simple th, table.simple td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.simple th { color: var(--muted); font-weight: 500; }
.admin-nav { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.stats { display: flex; gap: 20px; flex-wrap: wrap; margin: 10px 0 20px; }
.stats div { background: var(--panel); border-radius: 6px; padding: 10px 16px; min-width: 120px; }
.stats b { display: block; font-size: 22px; }
.inline { display: inline; }
.pill { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--panel); color: var(--muted); vertical-align: middle; }
.pill.warn { background: var(--bad-bg); color: var(--bad); }
.pill.ok { background: var(--good-bg); color: var(--accent); }
.postcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 14px 0; }
.postcats a { display: block; border: 1px solid var(--rule); border-radius: 6px; padding: 12px 14px; color: var(--ink); }
.postcats a:hover { border-color: var(--accent); text-decoration: none; }
.postcats b { display: block; color: var(--accent); font-size: 16px; }
.postcats small { display: block; color: var(--muted); }
.subpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 14px 0; }
.subpick a { display: block; border: 1px solid var(--rule); border-radius: 6px; padding: 10px 14px; color: var(--ink); }
.subpick a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.photos-existing { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.photos-existing figure { margin: 0; text-align: center; font-size: 12px; }
.photos-existing img { width: 96px; height: 72px; object-fit: cover; border-radius: 3px; display: block; }
.steps { color: var(--muted); font-size: 13px; margin: 14px 0 4px; }
.steps b { color: var(--ink); }
