/* Discovery pages (/pros/, /ideas/, /demo/…) – builds on site.css tokens */

.page-hero {
    padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1.5rem, 4vw, 2.5rem);
    background:
        radial-gradient(60% 70% at 90% 0%, rgba(230, 199, 154, .45), transparent 70%),
        linear-gradient(180deg, var(--ivory), var(--champagne));
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--gold-text); text-decoration: none; }
.page-hero .display { margin-bottom: 1rem; }
.page-hero .lead { margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn-light { background: var(--glass-strong); border: 1px solid var(--line); color: var(--ink); }

.section-sm { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.section-sub { color: var(--muted); margin-bottom: 1.5rem; max-width: 40em; }

/* Style cards (hub) */
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.style-card {
    position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
    text-decoration: none; color: var(--ivory); box-shadow: var(--shadow-sm); background: var(--sand);
}
.style-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.style-card:hover img { transform: scale(1.05); }
.style-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(31, 43, 26, .78)); }
.style-card-text { position: absolute; z-index: 1; inset-inline: 1.1rem; bottom: 1rem; }
.style-card-text strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.style-card-text small { color: var(--gold-1); font-size: .82rem; letter-spacing: .04em; }

/* Design gallery */
.design-grid { columns: 4 220px; column-gap: 1rem; }
.design-card {
    display: block; break-inside: avoid; margin-bottom: 1rem; border-radius: 20px; overflow: hidden;
    background: #fff; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .3s;
}
.design-card:hover { transform: translateY(-3px); }
.design-card img { width: 100%; height: auto; display: block; background: var(--sand); }
.design-meta { display: flex; align-items: center; gap: .55rem; padding: .7rem .8rem; }
.design-meta img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.design-meta span { font-size: .85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.design-meta .ai-badge {
    margin-inline-start: auto; flex: none; font-size: .7rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: var(--espresso);
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
    text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; transition: border-color .2s;
}
.chip:hover { border-color: var(--gold-2); }

/* Text blocks */
.prose { max-width: 46em; color: var(--muted); font-size: 1.05rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.info-card { padding: 1.4rem; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); }
.info-card h3 { font-family: var(--display); font-weight: 500; font-size: 1.2rem; margin-bottom: .4rem; }
.info-card p { color: var(--muted); font-size: .95rem; }

/* Dark CTA band */
.cta-band {
    display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center;
    padding: clamp(1.75rem, 4vw, 3rem); border-radius: 32px; color: var(--ivory);
    background: radial-gradient(60% 80% at 90% 0%, rgba(183, 131, 74, .3), transparent 70%), var(--espresso);
}
.cta-band .kicker { color: var(--gold-1); }
.cta-band h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; margin-bottom: .75rem; }
.cta-band p { color: rgba(247, 246, 238, .75); }
.cta-band .store-badges { margin: 1.25rem 0 0; }
.cta-band img { border-radius: 24px; aspect-ratio: 1; object-fit: cover; width: 100%; }

/* Studios: map + list */
.studio-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.studio-map {
    position: sticky; top: 90px; height: min(70vh, 640px); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); background: var(--champagne);
}
.studio-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.studio-toolbar input {
    flex: 1; min-width: 180px; height: 46px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line);
    background: #fff; font: 1rem var(--text); color: var(--ink); outline: none;
}
.studio-toolbar input:focus { border-color: var(--gold-2); }
.studio-count { color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.studio-list { display: grid; gap: .75rem; }
.studio-item {
    display: grid; grid-template-columns: 76px 1fr; gap: 1rem; align-items: center; padding: .8rem; border-radius: 22px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.studio-item.active, .studio-item:hover { border-color: var(--gold-2); }
.studio-item > img { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; background: var(--sand); }
.studio-item h3 { font-family: var(--display); font-weight: 500; font-size: 1.15rem; line-height: 1.2; }
.studio-item p { color: var(--muted); font-size: .85rem; }
.studio-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.studio-actions a { font-size: .85rem; font-weight: 500; text-decoration: none; padding: .35rem .85rem; border-radius: 999px; }
.studio-actions .book { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: var(--espresso); }
.studio-actions .profile { border: 1px solid var(--line); color: var(--ink); }
.distance { display: inline-block; margin-inline-start: .35rem; padding: .05rem .5rem; border-radius: 999px; background: var(--espresso); color: var(--ivory); font-size: .72rem; }

/* Example studios (static showcase data) */
.demo-switch { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 16px; background: #fff; border: 1.5px dashed var(--gold-2); cursor: pointer; }
.demo-switch input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--espresso); flex: none; }
.demo-switch strong { display: block; font-weight: 500; }
.demo-switch small { color: var(--muted); font-size: .82rem; }
.studio-item.demo { border-style: dashed; border-color: var(--gold-2); }
.example-badge { display: inline-block; margin-inline-start: .4rem; padding: .05rem .5rem; border-radius: 999px; border: 1px solid var(--gold-2); color: var(--gold-text); font-family: var(--text); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.nm-pin.demo { border-style: dashed; }

/* Map pins in the CraftMe style (MapLibre markers) */
.nm-pin { width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 3px solid #B7834A; background: #1F2B1A center/cover no-repeat; box-shadow: 0 6px 16px -6px rgba(31, 43, 26, .6); cursor: pointer; transition: transform .2s, border-color .2s; }
.nm-pin.active { border-color: #1F2B1A; transform: scale(1.18); z-index: 2; }
.nm-me { width: 18px; height: 18px; border-radius: 50%; background: #B7834A; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(183, 131, 74, .3); }
.maplibregl-popup-content { border-radius: 16px; padding: .8rem 1rem; font-family: var(--text); box-shadow: var(--shadow); }
.maplibregl-popup-content strong { font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.maplibregl-popup-content a { color: var(--gold-text); }
.distance[hidden] { display: none; }

.city-links { columns: 4 160px; column-gap: 1.5rem; }
.city-links a { display: block; padding: .3rem 0; color: var(--ink); text-decoration: none; }
.city-links a:hover { color: var(--gold-text); }

/* Profile */
.profile-hero { position: relative; padding-bottom: 1rem; background: linear-gradient(180deg, var(--champagne), var(--ivory)); }
.profile-cover { position: absolute; inset: 0 0 auto 0; height: 300px; overflow: hidden; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.profile-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247, 246, 238, .2), var(--champagne) 96%); }
.profile-hero .wrap { position: relative; padding-top: 1.5rem; }
.profile-hero .breadcrumb { display: inline-flex; padding: .35rem .9rem; border-radius: 999px; background: var(--glass-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); }
.profile-card {
    display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; margin-top: 140px;
    padding: 1.75rem; border-radius: 28px; background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, .9);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.profile-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--gold-1); }
.profile-info .kicker { margin-bottom: .3rem; }
.profile-sub { color: var(--muted); font-size: .95rem; margin-top: .2rem; }
.profile-stats { display: flex; gap: 1.5rem; margin: 1rem 0; }
.profile-stats span { color: var(--muted); font-size: .85rem; }
.profile-stats strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.4rem; font-weight: 500; }
.profile-bio { margin: .75rem 0 1rem; max-width: 42em; }

/* Service price list */
.service-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem 2rem; }
.service-group { padding: 1.25rem 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.service-group h3 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; margin-bottom: .5rem; }
.service-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row strong { display: block; font-weight: 500; }
.service-row small { color: var(--muted); font-size: .82rem; }
.service-row > span { font-family: var(--display); font-size: 1.15rem; white-space: nowrap; }

/* Post detail */
.post-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.post-media { display: grid; gap: .75rem; }
.post-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--sand); }
.post-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.post-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: none; }
.post-info { position: sticky; top: 100px; }
.author-card { display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: 22px; background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); }
.author-card img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--gold-1); }
.author-card strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.2rem; }
.author-card small { color: var(--muted); }
.post-text { margin: 1.5rem 0; white-space: pre-line; font-size: 1.05rem; }
.post-info .chips { margin-bottom: 1.5rem; }
.ai-note { display: inline-block; margin-bottom: 1rem; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: var(--espresso); }

@media (max-width: 900px) {
    .studio-layout { grid-template-columns: 1fr; }
    .studio-map { position: relative; top: 0; height: 46vh; order: -1; }
    .cta-band { grid-template-columns: 1fr; }
    .cta-band img { display: none; }
    .post-layout { grid-template-columns: 1fr; }
    .post-info { position: static; }
}
@media (max-width: 560px) {
    .design-grid { columns: 2 140px; column-gap: .6rem; }
    .design-card { margin-bottom: .6rem; border-radius: 16px; }
    .design-meta { padding: .5rem .55rem; }
    .design-meta img { width: 22px; height: 22px; }
    .style-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .style-card-text strong { font-size: 1.15rem; }
    .profile-cover { height: 220px; }
    .profile-card { grid-template-columns: 1fr; margin-top: 90px; padding: 1.25rem; gap: 1rem; }
    .profile-avatar { width: 88px; height: 88px; margin-top: -60px; }
    .service-columns { grid-template-columns: 1fr; }
}

/* the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

/* CraftMe: static example pages */
.demo-note-inline { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 16px; font-size: .88rem; color: var(--muted); background: var(--glass-strong); border: 1.5px dashed var(--gold-2); }
.demo-note-inline strong { color: var(--ink); font-weight: 500; }
.page-hero .chips { margin-top: .5rem; }
button.chip { font: inherit; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
.design-card[hidden] { display: none; }
.design-text { padding: .7rem .8rem 0; font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.design-meta .example-badge { margin-inline-start: auto; flex: none; }
