.rsm-city-guide {
    --cg-accent: var(--champion-theme-color, #ed2024);
    --cg-ink: #101828;
    --cg-muted: #667085;
    --cg-surface: #ffffff;
    --cg-border: rgba(16, 24, 40, .1);
    background: #f5f7fa;
}

.rsm-cg-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
    color: #fff;
    background:
        radial-gradient(circle at 15% 10%, rgba(255,255,255,.15), transparent 28%),
        radial-gradient(circle at 85% 85%, rgba(255,255,255,.09), transparent 30%),
        linear-gradient(135deg, #091a2d 0%, #103a5d 48%, #176a7b 100%);
}

.rsm-cg-hero::before,
.rsm-cg-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
}
.rsm-cg-hero::before { width: 430px; height: 430px; left: -180px; top: -220px; }
.rsm-cg-hero::after { width: 560px; height: 560px; right: -260px; bottom: -380px; }

.rsm-cg-hero-content { position: relative; z-index: 2; max-width: 900px; }
.rsm-cg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.1rem;
    padding: .5rem .9rem;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.rsm-cg-hero h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 5.2rem); font-weight: 900; letter-spacing: -.055em; line-height: .98; }
.rsm-cg-hero p { max-width: 720px; margin: 1.35rem auto 2rem; color: rgba(255,255,255,.82); font-size: clamp(1rem, 2vw, 1.25rem); }

.rsm-cg-search-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    max-width: 780px;
    margin: 0 auto;
    padding: .55rem;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 24px 55px rgba(0,0,0,.25);
}
.rsm-cg-search-wrap > i { margin-left: .8rem; color: #667085; font-size: 1.25rem; }
.rsm-cg-search-wrap input { min-width: 0; border: 0; outline: 0; padding: .85rem .9rem; color: #101828; font-size: 1rem; background: transparent; }
.rsm-cg-search-wrap button {
    border: 0;
    border-radius: .8rem;
    padding: .85rem 1.35rem;
    background: var(--cg-accent);
    color: #fff;
    font-weight: 800;
}
.rsm-cg-popular { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .45rem; color: rgba(255,255,255,.72); font-size: .86rem; }
.rsm-cg-popular button { border: 0; padding: 0; color: #fff; background: transparent; text-decoration: underline; text-underline-offset: 3px; }

.rsm-cg-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: .8rem;
    max-width: 1250px;
    margin: -5.8rem auto 0;
    position: relative;
    z-index: 5;
}
.rsm-cg-tab {
    display: flex;
    min-height: 104px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 1px solid var(--cg-border);
    border-radius: 1.1rem;
    background: var(--cg-surface);
    color: var(--cg-ink);
    box-shadow: 0 14px 35px rgba(16,24,40,.08);
    font-weight: 800;
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.rsm-cg-tab:hover { transform: translateY(-4px); border-color: rgba(237,32,36,.35); color: var(--cg-accent); }
.rsm-cg-tab.is-active { color: #fff; border-color: transparent; background: var(--cg-accent); }
.rsm-cg-tab-icon { font-size: 1.55rem; line-height: 1; }

.rsm-cg-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.rsm-cg-section-kicker { color: var(--cg-accent); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.rsm-cg-toolbar h2 { color: var(--cg-ink); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 900; letter-spacing: -.035em; }
.rsm-cg-toolbar p { color: var(--cg-muted); }
.rsm-cg-view-toggle { display: inline-flex; gap: .25rem; padding: .28rem; border: 1px solid var(--cg-border); border-radius: .8rem; background: #fff; }
.rsm-cg-view-toggle button { display: inline-flex; align-items: center; gap: .42rem; border: 0; border-radius: .58rem; padding: .62rem .8rem; color: var(--cg-muted); background: transparent; font-weight: 700; }
.rsm-cg-view-toggle button.is-active { color: #fff; background: var(--cg-ink); }

.rsm-cg-results-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 1.25rem; align-items: start; }
.rsm-cg-results-layout[data-view="list"] { grid-template-columns: 1fr; }
.rsm-cg-results-layout[data-view="list"] .rsm-cg-map-panel { display: none; }
.rsm-cg-results-layout[data-view="map"] { grid-template-columns: 1fr; }
.rsm-cg-results-layout[data-view="map"] .rsm-cg-list-panel { display: none; }
.rsm-cg-list-panel { min-width: 0; }
.rsm-cg-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rsm-cg-results-layout[data-view="list"] .rsm-cg-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rsm-cg-card {
    overflow: hidden;
    border: 1px solid var(--cg-border);
    border-radius: 1rem;
    background: var(--cg-surface);
    box-shadow: 0 10px 30px rgba(16,24,40,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.rsm-cg-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16,24,40,.11); }
.rsm-cg-card-media { position: relative; height: 190px; overflow: hidden; background: linear-gradient(135deg, #dce8ef, #b8ccd6); }
.rsm-cg-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.rsm-cg-card:hover .rsm-cg-card-media img { transform: scale(1.04); }
.rsm-cg-photo-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(16,24,40,.45); font-size: 3rem; }
.rsm-cg-type { position: absolute; left: .8rem; top: .8rem; padding: .38rem .62rem; border-radius: 999px; color: #fff; background: rgba(10,20,35,.8); backdrop-filter: blur(8px); font-size: .72rem; font-weight: 800; }
.rsm-cg-card-body { padding: 1rem; }
.rsm-cg-card h3 { margin: 0 0 .45rem; color: var(--cg-ink); font-size: 1.12rem; font-weight: 900; line-height: 1.25; }
.rsm-cg-rating { display: flex; align-items: center; gap: .35rem; margin-bottom: .55rem; color: #9a6700; font-size: .83rem; font-weight: 800; }
.rsm-cg-rating .bi-star-fill { color: #f5a623; }
.rsm-cg-address { min-height: 42px; margin: 0; color: var(--cg-muted); font-size: .86rem; line-height: 1.45; }
.rsm-cg-status { display: inline-flex; align-items: center; gap: .35rem; margin-top: .65rem; color: #16803a; font-size: .8rem; font-weight: 800; }
.rsm-cg-status.is-closed { color: #b42318; }
.rsm-cg-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .9rem; }
.rsm-cg-card-actions a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; border-radius: .65rem; text-decoration: none; font-size: .82rem; font-weight: 800; }
.rsm-cg-card-actions .rsm-cg-primary { color: #fff; background: var(--cg-accent); }
.rsm-cg-card-actions .rsm-cg-secondary { color: var(--cg-ink); border: 1px solid var(--cg-border); background: #fff; }

.rsm-cg-map-panel { position: sticky; top: 1rem; overflow: hidden; min-height: 650px; border: 1px solid var(--cg-border); border-radius: 1.15rem; background: #dce8ef; box-shadow: 0 14px 35px rgba(16,24,40,.08); }
#rsm-cg-map { width: 100%; height: 650px; }
.rsm-cg-map-badge { position: absolute; left: 1rem; top: 1rem; z-index: 2; padding: .62rem .85rem; border-radius: .72rem; color: var(--cg-ink); background: rgba(255,255,255,.94); box-shadow: 0 8px 22px rgba(16,24,40,.14); font-size: .82rem; font-weight: 900; }
.rsm-cg-loading, .rsm-cg-empty { display: flex; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; border: 1px dashed var(--cg-border); border-radius: 1rem; color: var(--cg-muted); background: rgba(255,255,255,.7); text-align: center; }
.rsm-cg-alert { border-radius: .8rem; padding: 1rem; color: #842029; border: 1px solid #f5c2c7; background: #f8d7da; }

body.dark-mode .rsm-city-guide,
[data-bs-theme="dark"] .rsm-city-guide { --cg-ink: #f2f4f7; --cg-muted: #98a2b3; --cg-surface: #161b22; --cg-border: rgba(255,255,255,.1); background: #0e1117; }
body.dark-mode .rsm-cg-view-toggle,
[data-bs-theme="dark"] .rsm-cg-view-toggle { background: #161b22; }
body.dark-mode .rsm-cg-view-toggle button.is-active,
[data-bs-theme="dark"] .rsm-cg-view-toggle button.is-active { color: #111827; background: #fff; }
body.dark-mode .rsm-cg-card-actions .rsm-cg-secondary,
[data-bs-theme="dark"] .rsm-cg-card-actions .rsm-cg-secondary { background: #161b22; }

@media (max-width: 1199.98px) {
    .rsm-cg-tabs { grid-template-columns: repeat(3, 1fr); margin-top: -4.8rem; }
    .rsm-cg-results-layout { grid-template-columns: 1fr; }
    .rsm-cg-map-panel { position: relative; top: auto; min-height: 480px; }
    #rsm-cg-map { height: 480px; }
    .rsm-cg-results-layout[data-view="split"] .rsm-cg-results { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
    .rsm-cg-hero { padding-top: 4rem; padding-bottom: 6rem; }
    .rsm-cg-search-wrap { grid-template-columns: auto minmax(0,1fr); }
    .rsm-cg-search-wrap button { grid-column: 1 / -1; width: 100%; }
    .rsm-cg-tabs { display: flex; overflow-x: auto; margin-top: -4.7rem; padding-bottom: .55rem; scrollbar-width: none; }
    .rsm-cg-tab { min-width: 125px; min-height: 92px; }
    .rsm-cg-toolbar { align-items: flex-start; flex-direction: column; }
    .rsm-cg-view-toggle { width: 100%; }
    .rsm-cg-view-toggle button { flex: 1; justify-content: center; }
    .rsm-cg-view-toggle span { display: none; }
    .rsm-cg-results,
    .rsm-cg-results-layout[data-view="split"] .rsm-cg-results,
    .rsm-cg-results-layout[data-view="list"] .rsm-cg-results { grid-template-columns: 1fr; }
    .rsm-cg-map-panel, #rsm-cg-map { min-height: 420px; height: 420px; }
}
