:root {
    color-scheme: light;
    --bg: #f5f0ea;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: rgba(250, 244, 236, 0.98);
    --text: #17130f;
    --muted: #7a6d5f;
    --accent: #e18c2e;
    --accent-strong: #f7aa4b;
    --border: rgba(225, 140, 46, 0.18);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.14);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top left, rgba(225, 140, 46, 0.14), transparent 24%),
                linear-gradient(180deg, #f7f2ec 0%, #ede5d7 100%);
    color: var(--text);
}

body {
    display: flex;
    justify-content: center;
    padding: 32px;
}

.page-shell {
    width: min(1400px, 100%);
    display: grid;
    grid-template-columns: 360px 1fr;
    grid-template-rows: auto 1fr;
    gap: 28px;
}

.city-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 32px 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(225, 140, 46, 0.18);
    box-shadow: var(--shadow);
}

.city-header-copy {
    max-width: 720px;
}

.city-logo {
    display: block;
    max-height: 72px;
    width: auto;
}

.city-header .eyebrow {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
}

.city-header h1 {
    margin: 14px 0 10px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.city-header p {
    margin: 0;
    max-width: 650px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}

.header-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    color: var(--muted);
    font-size: 0.94rem;
}

.header-meta span {
    background: rgba(255, 255, 255, 0.06);
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.intro-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--accent);
}

.intro-panel h2 {
    margin: 0;
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    line-height: 1.08;
}

.intro-panel p {
    margin: 0;
    line-height: 1.6;
    color: var(--muted);
    font-size: 0.96rem;
}

.info-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 8px;
    padding: 14px;
    background: rgba(229, 211, 179, 0.24);
    border-radius: 18px;
    border: 1px solid rgba(225, 140, 46, 0.18);
}

.info-summary div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-summary strong {
    color: #2d1600;
    font-size: 0.92rem;
}

.info-summary span {
    color: #584124;
    font-size: 0.92rem;
}

.action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    background: linear-gradient(135deg, #fff3d2, #ffe2a5);
    color: #58330a;
    border: 1px solid rgba(255, 167, 76, 0.18);
    box-shadow: 0 12px 24px rgba(255, 166, 88, 0.12);
}

.button:hover {
    transform: translateY(-2px) scale(1.01);
    background: linear-gradient(135deg, #ffe7b5, #ffce83);
    box-shadow: 0 16px 28px rgba(255, 165, 80, 0.18);
}

.button:active,
.info-tab.active {
    background: linear-gradient(135deg, #ffda94, #ffb85f);
    color: #1b0f05;
    border-color: rgba(255, 145, 48, 0.4);
    transform: scale(0.96);
    box-shadow: 0 8px 16px rgba(255, 140, 50, 0.22);
    animation: button-press 0.16s ease;
}

@keyframes button-press {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.96);
    }
    100% {
        transform: scale(0.97);
    }
}

.info-tab {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.info-tab:hover {
    background: linear-gradient(135deg, #ffd490, #ffb560);
    color: #1b0f05;
    border-color: rgba(255, 132, 0, 0.35);
}

.section-block {
    display: none;
}

.section-block.active {
    display: block;
}

.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #1b0f05;
    box-shadow: 0 18px 30px rgba(255, 159, 67, 0.28);
}

.secondary {
    background: linear-gradient(135deg, #ffe0a2, #ffcf7c);
    color: #1b0f05;
    border: 1px solid rgba(255, 148, 44, 0.28);
    box-shadow: 0 14px 28px rgba(255, 160, 70, 0.12);
}

.secondary:hover {
    background: linear-gradient(135deg, #ffe7b5, #ffd084);
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.info-list article {
    padding: 16px;
    border-radius: 18px;
    background: rgba(225, 140, 46, 0.12);
    border: 1px solid rgba(225, 140, 46, 0.14);
}

.info-list h3 {
    margin: 0 0 8px;
    color: #2d1600;
    font-size: 1rem;
}

.info-list p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .info-summary {
        grid-template-columns: 1fr;
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}

.viewer-shell {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.viewer-card {
    position: relative;
    min-height: 520px;
    border-radius: 32px;
    overflow: hidden;
    background: var(--surface-strong);
    border: 1px solid rgba(225, 140, 46, 0.2);
    box-shadow: var(--shadow);
}

.viewer-label {
    position: absolute;
    z-index: 5;
    top: 20px;
    left: 20px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 159, 67, 0.16);
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fullscreen-toggle {
    position: absolute;
    z-index: 5;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 155, 45, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 243, 224, 0.92));
    color: #2d1700;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 30px rgba(255, 147, 45, 0.16);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.fullscreen-toggle::before {
    content: "⛶";
    margin-right: 8px;
    font-size: 1rem;
    display: inline-block;
    vertical-align: middle;
}

.fullscreen-toggle:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #fff, #ffe8c7);
    box-shadow: 0 18px 32px rgba(255, 146, 30, 0.22);
}

.fullscreen-toggle:active {
    transform: translateY(0);
}

.viewer-card model-viewer,
model-viewer {
    width: 100%;
    height: 100%;
    display: block;
}

model-viewer {
    min-height: 520px;
    background: linear-gradient(180deg, #88b8f0 0%, #b8d7fb 35%, #def0ff 75%, #f9fdff 100%);
}

.info-panel {
    padding: 32px;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid rgba(225, 140, 46, 0.18);
    box-shadow: var(--shadow);
}

.info-panel h2 {
    margin-top: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.info-panel p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.8;
}

.info-text {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.section-block {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(225, 140, 46, 0.14);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.section-block h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: #1b0f05;
}

.info-panel .section-block p {
    margin: 0;
    font-size: 0.975rem;
    color: #4d463f;
    line-height: 1.8;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-cards div {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.info-cards h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.info-cards p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 1080px) {
    .page-shell {
        grid-template-columns: 1fr;
    }

    .viewer-card,
    .info-panel,
    .intro-panel {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    body {
        padding: 18px;
    }

    .page-shell {
        gap: 18px;
    }

    .intro-panel,
    .viewer-card,
    .info-panel {
        padding: 24px;
        border-radius: 24px;
    }

    .action-row {
        flex-direction: column;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}

.page-footer {
    grid-column: 1 / -1;
    padding: 10px 0 6px;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}
