/* Core Wellness — Wellness Center directory
   Matches the site palette (#173c2c green, cream #faf7f2, accent #e8b38b). */

.cw-directory,
.cw-listing { background: #faf7f2; }

/* ── Directory hero + filters ─────────────────────────────── */
.cw-dir-hero { background: #173c2c; color: #fff; }
.cw-dir-hero-inner { max-width: 1180px; margin: 0 auto; padding: 64px 28px 72px; }
.cw-dir-hero .eyebrow { color: #9ebdac; }
.cw-dir-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; margin: 12px 0 14px; color: #fff; }
.cw-dir-lead { max-width: 620px; color: #c9d2cc; font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.cw-dir-hero-cta { margin: 0 0 24px; }
.cw-dir-hero-cta a { color: #e8b38b; font-weight: 800; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.cw-dir-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    background: #fff;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(12, 33, 25, .25);
}
.cw-dir-filters input,
.cw-dir-filters select {
    width: 100%; border: 1px solid #cdd6cf; background: #fbfbf9;
    padding: 13px 14px; font: inherit; border-radius: 9px; color: #1b2023;
}
.cw-dir-filters .button { border: 0; cursor: pointer; border-radius: 9px; padding: 13px 22px; }

/* ── Results grid ─────────────────────────────────────────── */
.cw-dir-results-inner { max-width: 1180px; margin: 0 auto; padding: 44px 28px 90px; }
.cw-dir-count { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5c6b62; margin-bottom: 22px; }
.cw-dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.cw-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid #e7e1d6;
    border-radius: 16px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.cw-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(12, 33, 25, .14); }
.cw-card-media { position: relative; display: block; aspect-ratio: 3 / 2; background: #e9e2d6; }
.cw-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-card-badge {
    position: absolute; left: 12px; top: 12px; background: #173c2c; color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 6px 11px; border-radius: 999px;
}
.cw-card-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; flex: 1; }
.cw-card-title { font: 700 21px/1.25 'Playfair Display', Georgia, serif; color: #142a20; }
.cw-card-loc { font-size: 13px; color: #5c816c; font-weight: 600; }
.cw-card-loc::before { content: "📍 "; }
.cw-card-desc { font-size: 14px; line-height: 1.6; color: #4a534d; margin-top: 2px; }
.cw-card-cta { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 800; color: #173c2c; }

.cw-dir-empty { text-align: center; padding: 60px 20px; }
.cw-dir-empty p { font-size: 18px; color: #4a534d; margin-bottom: 20px; }

.cw-dir-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.cw-dir-pagination .page-numbers {
    display: inline-block; padding: 9px 15px; border: 1px solid #d8d2c7; border-radius: 8px;
    color: #173c2c; font-weight: 700; font-size: 14px; background: #fff;
}
.cw-dir-pagination .page-numbers.current { background: #173c2c; color: #fff; border-color: #173c2c; }
.cw-dir-pagination a.page-numbers:hover { background: #ece6da; }

/* ── Single listing ───────────────────────────────────────── */
.cw-listing-head { background: #fff; border-bottom: 1px solid #ece6db; }
.cw-listing-head-inner { max-width: 1120px; margin: 0 auto; padding: 34px 28px 30px; }
.cw-breadcrumb { font-size: 12px; color: #63736a; display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.cw-breadcrumb a { color: #63736a; text-decoration: underline; }
.cw-listing-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #5c816c; }
.cw-listing-head h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.04; margin: 8px 0 10px; color: #142a20; }
.cw-listing-loc { font-size: 15px; color: #4a534d; margin-bottom: 20px; }
.cw-listing-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cw-listing-email { font-size: 14px; font-weight: 700; color: #173c2c; border-bottom: 1px solid currentColor; }

.cw-listing-hero-img { max-width: 1120px; margin: 0 auto; padding: 26px 28px 0; }
.cw-listing-hero-img img { width: 100%; height: clamp(240px, 40vw, 440px); object-fit: cover; border-radius: 18px; display: block; }

.cw-listing-body-inner {
    max-width: 1120px; margin: 0 auto; padding: 44px 28px 90px;
    display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start;
}
.cw-listing-desc { font-size: 16px; line-height: 1.85; color: #2a3034; }
.cw-listing-desc p { margin: 0 0 1.2em; }
.cw-listing-main h2 { font: 700 28px/1.2 'Playfair Display', Georgia, serif; color: #142a20; margin: 1.6em 0 .7em; }
.cw-listing-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cw-listing-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; }

.cw-listing-side { position: sticky; top: 100px; display: grid; gap: 20px; }
.cw-info-card { background: #fff; border: 1px solid #e7e1d6; border-radius: 16px; padding: 24px; }
.cw-info-card h3 { font-size: 17px; margin: 0 0 14px; color: #142a20; }
.cw-info-list { list-style: none; margin: 0; padding: 0; }
.cw-info-list li { padding: 10px 0; border-bottom: 1px solid #efeae0; font-size: 14px; line-height: 1.55; color: #2a3034; }
.cw-info-list li:last-child { border-bottom: 0; }
.cw-info-list li span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #8a9389; margin-bottom: 3px; }
.cw-info-list a { color: #173c2c; font-weight: 600; word-break: break-word; }
.cw-info-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cw-info-social a { font-size: 12px; font-weight: 700; color: #173c2c; border: 1px solid #cdd6cf; padding: 7px 13px; border-radius: 999px; }
.cw-info-social a:hover { background: #173c2c; color: #fff; border-color: #173c2c; }

.cw-hours-table { width: 100%; border-collapse: collapse; }
.cw-hours-table th { text-align: left; font-weight: 600; font-size: 14px; color: #2a3034; padding: 7px 0; }
.cw-hours-table td { text-align: right; font-size: 14px; color: #4a534d; padding: 7px 0; }
.cw-hours-table tr { border-bottom: 1px solid #efeae0; }
.cw-hours-table tr:last-child { border-bottom: 0; }

.cw-info-map { padding: 0; overflow: hidden; }
.cw-info-map iframe { display: block; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1000px) {
    .cw-dir-grid { grid-template-columns: repeat(2, 1fr); }
    .cw-listing-body-inner { grid-template-columns: 1fr; gap: 32px; }
    .cw-listing-side { position: static; }
}
@media (max-width: 640px) {
    .cw-dir-filters { grid-template-columns: 1fr; }
    .cw-dir-grid { grid-template-columns: 1fr; }
    .cw-listing-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ── Submission form ──────────────────────────────────────── */
.cw-submit-form { max-width: 760px; margin: 0 auto; }
.cw-submit-form .cw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cw-form-section { background: #fff; border: 1px solid #e7e1d6; border-radius: 16px; padding: 26px 28px; margin-bottom: 22px; }
.cw-form-section h3 { font-size: 18px; margin: 0 0 16px; color: #142a20; }
.cw-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.cw-form-row { display: flex; flex-direction: column; margin: 0 0 16px; }
.cw-form-row label { font-size: 13px; font-weight: 700; color: #2a3034; margin-bottom: 6px; }
.cw-form-row input,
.cw-form-row select,
.cw-form-row textarea {
    width: 100%; border: 1px solid #cdd6cf; background: #fbfbf9; padding: 12px 13px;
    font: inherit; border-radius: 9px; color: #1b2023;
}
.cw-form-row textarea { resize: vertical; }
.cw-form-err { color: #b3402f; font-size: 12px; font-weight: 700; margin-top: 5px; }
.cw-form-consent { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #2a3034; margin: 6px 0 18px; }
.cw-form-consent label { display: flex; gap: 9px; align-items: flex-start; line-height: 1.5; }
.cw-form-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cw-form-submit .button { border: 0; cursor: pointer; padding: 14px 30px; border-radius: 9px; font-size: 14px; }
.cw-form-note { font-size: 13px; color: #63736a; }
.cw-form-notice { background: #fdecea; border: 1px solid #f3c0b8; color: #8a2c1e; padding: 14px 16px; border-radius: 10px; margin-bottom: 22px; font-size: 14px; }
.cw-form-success { background: #fff; border: 1px solid #cfe3d5; border-left: 5px solid #2d6b4f; border-radius: 14px; padding: 34px 32px; max-width: 640px; margin: 0 auto; }
.cw-form-success h3 { font-size: 24px; color: #173c2c; margin: 0 0 10px; }
.cw-form-success p { color: #3a463f; line-height: 1.7; margin-bottom: 20px; }
.cw-form-success .button { border: 0; padding: 13px 24px; border-radius: 9px; }

@media (max-width: 640px) {
    .cw-form-grid { grid-template-columns: 1fr; }
}
