/**
 * JEM Location Pages — shared component styles.
 * Everything keys off CSS custom properties so the Design tab (Phase 7)
 * only swaps values. Fonts and text colors inherit from the theme.
 */
.jemgeo {
    --jemgeo-gap: 1rem;
    --jemgeo-accent: #1F567C;
    --jemgeo-card-bg: #f7f7f8;
    --jemgeo-card-border: #e3e5e8;
    --jemgeo-radius: 8px;
    --jemgeo-section-space: 3rem;

    margin: 0 auto var(--jemgeo-section-space);
}

.jemgeo-heading {
    text-align: center;
    margin-bottom: calc(var(--jemgeo-gap) * 1.25);
}

/* Cards (things to do, reviews) */
.jemgeo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--jemgeo-gap);
}

.jemgeo-card {
    background: var(--jemgeo-card-bg);
    border: 1px solid var(--jemgeo-card-border);
    border-radius: var(--jemgeo-radius);
    overflow: hidden;
    transition: transform 0.15s ease;
}

.jemgeo-card:hover {
    transform: translateY(-4px);
}

.jemgeo-card-photo img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.jemgeo-card-body {
    padding: calc(var(--jemgeo-gap) * 0.75);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.jemgeo-card-title {
    font-weight: 600;
    text-decoration: none;
}

.jemgeo-rating {
    color: #b98800;
    font-size: 0.9em;
}

/* Reviews */
.jemgeo-review {
    padding: var(--jemgeo-gap);
}

.jemgeo-review-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.jemgeo-review-avatar {
    border-radius: 50%;
}

.jemgeo-review-author {
    font-weight: 600;
}

.jemgeo-review-text {
    margin: 0;
    font-size: 0.95em;
}

/* Neighborhood pills */
.jemgeo-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.jemgeo-pills a {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--jemgeo-accent);
    border-radius: 999px;
    color: var(--jemgeo-accent);
    text-decoration: none;
    font-size: 0.92em;
}

.jemgeo-pills a:hover {
    background: var(--jemgeo-accent);
    color: #fff;
}

/* Weather */
.jemgeo-weather-current {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--jemgeo-gap);
    background: var(--jemgeo-weather-bg, var(--jemgeo-accent));
    color: var(--jemgeo-weather-text, #fff);
    border-radius: var(--jemgeo-radius);
    padding: calc(var(--jemgeo-gap) * 1.25);
}

.jemgeo-weather-temp {
    font-size: 2.4em;
    font-weight: 700;
}

.jemgeo-weather-details {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9em;
    display: flex;
    gap: var(--jemgeo-gap);
    flex-wrap: wrap;
}

.jemgeo-weather-daily {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
    padding: 0;
    margin: var(--jemgeo-gap) 0 0;
    text-align: center;
}

.jemgeo-weather-daily li {
    background: var(--jemgeo-card-bg);
    border: 1px solid var(--jemgeo-card-border);
    border-radius: var(--jemgeo-radius);
    padding: 0.6rem 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85em;
}

.jemgeo-weather-day {
    font-weight: 700;
}

/* Map / directions embeds */
.jemgeo-embeds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--jemgeo-gap);
}

.jemgeo-embed {
    margin: 0;
}

.jemgeo-iframe {
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: var(--jemgeo-radius);
}

.jemgeo-embed-wide {
    height: 380px;
}

.jemgeo-embed figcaption {
    text-align: center;
    font-size: 0.88em;
    margin-top: 0.35rem;
}

/* FAQ accordion (native details/summary) */
.jemgeo-faq-item {
    border: 1px solid var(--jemgeo-card-border);
    border-radius: var(--jemgeo-radius);
    background: var(--jemgeo-card-bg);
    margin-bottom: 0.6rem;
    padding: 0.75rem 1rem;
}

.jemgeo-faq-item summary {
    cursor: pointer;
    font-weight: 600;
}

.jemgeo-faq-item p {
    margin: 0.6rem 0 0;
}

/* Community links */
.jemgeo-community-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jemgeo-community-item {
    background: var(--jemgeo-card-bg);
    border: 1px solid var(--jemgeo-card-border);
    border-radius: var(--jemgeo-radius);
    padding: 0.75rem 1rem;
}

.jemgeo-community-badge {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--jemgeo-accent);
    color: #fff;
    margin-right: 0.4rem;
}

.jemgeo-badge-reddit { background: #ff4500; }
.jemgeo-badge-quora  { background: #b92b27; }
.jemgeo-badge-medium { background: #242424; }

.jemgeo-community-snippet {
    display: block;
    font-size: 0.88em;
    opacity: 0.8;
    margin-top: 0.3rem;
}

/* Quick facts grid */
.jemgeo-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--jemgeo-gap);
    margin: 0;
}

.jemgeo-fact {
    background: var(--jemgeo-card-bg);
    border: 1px solid var(--jemgeo-card-border);
    border-radius: var(--jemgeo-radius);
    padding: 0.75rem 1rem;
    text-align: center;
}

.jemgeo-fact dt {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.jemgeo-fact dd {
    margin: 0.25rem 0 0;
    font-weight: 700;
}

/* =========================================================================
   Generate Page layout (SEO Notebook wireframe).
   Every block below keys off the same custom properties, so the Design tab
   restyles the whole landing page by swapping values — no per-page CSS.
   ========================================================================= */

.jemgeo-page {
    max-width: var(--jemgeo-page-max, 1120px);
    margin: 0 auto;
}

.jemgeo-section {
    margin: 0 auto var(--jemgeo-section-space);
    scroll-margin-top: 2rem;
}

/* Hero — two column (copy + form) */
.jemgeo-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: calc(var(--jemgeo-gap) * 2);
    align-items: start;
}

.jemgeo-hero h1 {
    margin-top: 0;
}

.jemgeo-subhead {
    font-size: 1.15em;
}

.jemgeo-lead {
    font-size: 1.02em;
}

.jemgeo-bullets {
    list-style: none;
    padding: 0;
    margin: var(--jemgeo-gap) 0;
    display: grid;
    gap: 0.5rem;
}

.jemgeo-bullets li {
    position: relative;
    padding-left: 1.6rem;
}

.jemgeo-bullets li::before {
    content: "\2605"; /* ★ */
    position: absolute;
    left: 0;
    color: var(--jemgeo-accent);
}

.jemgeo-hero-aside {
    position: sticky;
    top: 1rem;
}

/* Generated imagery: decorative banner spans the hero; photos are rounded */
.jemgeo-hero-art {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--jemgeo-radius);
    margin-bottom: var(--jemgeo-gap);
}

.jemgeo-hero-photo {
    width: 100%;
    height: auto;
    border-radius: var(--jemgeo-radius);
    margin-top: var(--jemgeo-gap);
}

/* Three-step process cards */
.jemgeo-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--jemgeo-gap);
}

.jemgeo-step {
    background: var(--jemgeo-card-bg);
    border: 1px solid var(--jemgeo-card-border);
    border-radius: var(--jemgeo-radius);
    padding: calc(var(--jemgeo-gap) * 1.25);
}

.jemgeo-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--jemgeo-accent);
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.jemgeo-step h3,
.jemgeo-col-card h3,
.jemgeo-feature h3 {
    margin: 0.25rem 0 0.4rem;
}

/* Generic three-column card row (selection criteria, testimonials copy) */
.jemgeo-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--jemgeo-gap);
}

.jemgeo-col-card {
    background: var(--jemgeo-card-bg);
    border: 1px solid var(--jemgeo-card-border);
    border-radius: var(--jemgeo-radius);
    padding: calc(var(--jemgeo-gap) * 1.1);
}

/* Eligibility icon grid (six-up) */
.jemgeo-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--jemgeo-gap);
}

.jemgeo-icon-card,
.jemgeo-feature {
    background: var(--jemgeo-card-bg);
    border: 1px solid var(--jemgeo-card-border);
    border-radius: var(--jemgeo-radius);
    padding: var(--jemgeo-gap);
    text-align: center;
}

.jemgeo-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.jemgeo-icon {
    display: inline-block;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--jemgeo-accent);
    opacity: 0.15;
}

.jemgeo-icon-label {
    font-weight: 600;
}

/* Why-choose feature grid (five-up) */
.jemgeo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--jemgeo-gap);
}

/* Reviews stars banner */
.jemgeo-reviews-banner {
    text-align: center;
}

.jemgeo-stars {
    color: #b98800;
    font-size: 1.8em;
    letter-spacing: 0.1em;
    margin: 0;
}

.jemgeo-banner-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0.25rem 0 0;
}

/* Mid / closing CTA banner */
.jemgeo-cta-banner {
    background: var(--jemgeo-card-bg);
    border: 1px solid var(--jemgeo-card-border);
    border-radius: var(--jemgeo-radius);
    padding: calc(var(--jemgeo-gap) * 1.5);
    text-align: center;
}

.jemgeo-cta-banner-text {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.jemgeo-cta-wrap {
    text-align: center;
}

.jemgeo-cta {
    display: inline-block;
    background: var(--jemgeo-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 0.7rem 1.6rem;
    border-radius: var(--jemgeo-radius);
}

.jemgeo-cta:hover {
    filter: brightness(1.08);
}

/* Prose sections read better constrained */
.jemgeo-prose,
.jemgeo-questions,
.jemgeo-closing {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* Placeholders — visible, clearly not final content */
.jemgeo-placeholder {
    border: 1px dashed var(--jemgeo-card-border);
    background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(0,0,0,0.02) 8px, rgba(0,0,0,0.02) 16px);
    border-radius: var(--jemgeo-radius);
    padding: 0.75rem 1rem;
    font-size: 0.9em;
    opacity: 0.85;
}

/* Responsive: collapse the multi-column rows on smaller screens */
@media (max-width: 782px) {
    .jemgeo-hero,
    .jemgeo-steps,
    .jemgeo-cols-3 {
        grid-template-columns: 1fr;
    }
    .jemgeo-hero-aside {
        position: static;
    }
}
