/* Two Truths & A Lie - Travel Guide - Elegant Redesign */

:root {
    --color-text: #2d2d2d;
    --color-text-light: #6b6b6b;
    --color-accent: #c17d5c;
    --color-accent-hover: #a86b4d;
    --color-border: #e5e5e5;
    --color-bg: #fafaf9;
    --color-card: #ffffff;
    --color-success: #52a675;
    --color-error: #d96b5e;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Header - Minimal */
.header {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    color: var(--color-accent);
}

.info-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.info-btn:hover {
    opacity: 0.8;
}

.info-icon {
    font-size: 1.125rem;
    line-height: 1;
    font-family: 'Noto Color Emoji', 'Noto Emoji', sans-serif;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-icon {
    width: 1.75rem;
    height: 1.75rem;
    stroke-width: 1.5;
}

.tagline {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Header Score */
.header-score {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic background colors based on score */
.header-score.score-positive {
    background: var(--color-success);
}

.header-score.score-negative {
    background: var(--color-error);
}

.header-score.score-neutral {
    background: #6b6b6b;
}

/* Score animations */
.header-score.score-increase {
    animation: scoreIncrease 0.5s ease, scoreTicker 0.5s ease;
}

.header-score.score-decrease {
    animation: scoreDecrease 0.5s ease, scoreTicker 0.5s ease;
}

@keyframes scoreIncrease {
    0% {
        transform: scale(1);
        background: var(--color-accent);
    }
    50% {
        transform: scale(1.2);
        background: var(--color-success);
    }
    100% {
        transform: scale(1);
        background: var(--color-accent);
    }
}

@keyframes scoreDecrease {
    0% {
        transform: scale(1);
        background: var(--color-accent);
    }
    50% {
        transform: scale(0.9);
        background: var(--color-error);
    }
    100% {
        transform: scale(1);
        background: var(--color-accent);
    }
}

@keyframes scoreTicker {
    0%, 100% {
        opacity: 1;
    }
    10%, 30%, 50%, 70%, 90% {
        opacity: 0.7;
    }
    20%, 40%, 60%, 80% {
        opacity: 1;
    }
}

/* Voice Toggle */
.voice-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: var(--transition);
    width: 40px;
    height: 40px;
}

.voice-toggle:hover {
    opacity: 0.8;
}

/* Gentle pulsing animation for first-time users */
.voice-toggle.pulse-hint .voice-icon {
    animation: gentle-pulse 2.5s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(193, 125, 92, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(193, 125, 92, 0);
        transform: scale(1.05);
    }
}

.voice-icon {
    font-size: 1.25rem;
    line-height: 1;
    font-family: 'Noto Color Emoji', 'Noto Emoji', sans-serif;
    font-weight: 400;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Voice-specific background colors */
.voice-toggle[data-voice="parker"] .voice-icon {
    background: rgba(255, 105, 180, 0.15); /* Hot pink for cocktail */
}

.voice-toggle[data-voice="thompson"] .voice-icon {
    background: rgba(220, 20, 60, 0.15); /* Crimson for sunglasses */
}

.voice-toggle[data-voice="battuta"] .voice-icon {
    background: rgba(184, 134, 11, 0.15); /* Dark goldenrod for compass */
}

.voice-toggle[data-voice="wodehouse"] .voice-icon {
    background: rgba(138, 43, 226, 0.15); /* Blue violet for tophat */
}

.voice-toggle[data-voice="keys"] .voice-icon {
    background: rgba(255, 165, 0, 0.15); /* Orange for key */
}

/* Voice Menu Panel */
.voice-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-height: 100vh;
    background: var(--color-card);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 200;
    overflow-y: auto;
}

.voice-menu-panel.open {
    transform: translateX(0);
}

.voice-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.voice-menu-header h3 {
    font-size: 1rem;
    font-weight: 500;
}

.close-voice-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-menu-body {
    padding: 0.5rem;
}

.voice-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.voice-option:hover {
    border-color: var(--color-accent);
    background: var(--color-bg);
}

.voice-option.active {
    border-color: var(--color-accent);
    background: #fef5f3;
}

.voice-option-emoji {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    font-family: 'Noto Color Emoji', 'Noto Emoji', sans-serif;
    font-weight: 400;
    color: #000;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* Voice-specific backgrounds for menu options */
.voice-option[data-voice="parker"] .voice-option-emoji {
    background: rgba(255, 105, 180, 0.15); /* Hot pink for cocktail */
}

.voice-option[data-voice="thompson"] .voice-option-emoji {
    background: rgba(220, 20, 60, 0.15); /* Crimson for sunglasses */
}

.voice-option[data-voice="battuta"] .voice-option-emoji {
    background: rgba(184, 134, 11, 0.15); /* Dark goldenrod for compass */
}

.voice-option[data-voice="wodehouse"] .voice-option-emoji {
    background: rgba(138, 43, 226, 0.15); /* Blue violet for tophat */
}

.voice-option[data-voice="keys"] .voice-option-emoji {
    background: rgba(255, 165, 0, 0.15); /* Orange for key */
}

.voice-option-text {
    flex: 1;
}

.voice-option-name {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.voice-option-desc {
    font-size: 0.813rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* Custom Voice Options */
.custom-voice-option {
    position: relative;
}

.delete-voice-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0.5rem;
    background: #c45f54;
    color: white;
    border: none;
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: var(--transition);
    padding: 0;
}

.delete-voice-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Year Selector */
.year-selector-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.year-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.year-selector-label {
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 600;
}

.timeline-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Toggle Switch */
.time-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.time-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.time-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.time-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.time-toggle input:checked + .time-toggle-slider {
    background-color: var(--color-accent);
}

.time-toggle input:checked + .time-toggle-slider:before {
    transform: translateX(20px);
}

.time-toggle-slider:hover {
    opacity: 0.9;
}

.timeline-scroll-container {
    margin-bottom: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-card);
}

.timeline-scroll-container:active {
    cursor: grabbing;
}

.timeline-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.timeline-scroll-container::-webkit-scrollbar-track {
    background: var(--color-bg);
    border-radius: 4px;
}

.timeline-scroll-container::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}

.timeline-svg {
    display: block;
    height: 120px;
    min-width: 100%;
}

/* Timeline SVG elements styling via CSS */
.timeline-base-line {
    stroke: var(--color-border);
    stroke-width: 3;
}

.timeline-tick-major {
    stroke: var(--color-text-secondary);
    stroke-width: 2.5;
}

.timeline-tick-minor {
    stroke: var(--color-border);
    stroke-width: 1.5;
}

.timeline-label {
    fill: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.timeline-label-minor {
    fill: var(--color-text-light);
    font-size: 11px;
    font-weight: 400;
}

.timeline-era-label {
    fill: var(--color-text-light);
    font-size: 11px;
    font-weight: 400;
    font-style: italic;
}

.timeline-handle {
    cursor: grab;
}

.timeline-handle:active {
    cursor: grabbing;
}

.timeline-handle-circle {
    fill: var(--color-accent);
    stroke: white;
    stroke-width: 2;
    transition: all 0.2s ease;
}

.timeline-handle:hover .timeline-handle-circle {
    fill: var(--color-accent-hover);
}

.timeline-handle-line {
    stroke: var(--color-accent);
    stroke-width: 2;
}

.year-display-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.year-display {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
}

.btn-recenter {
    padding: 0.25rem 0.5rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-text-secondary);
}

.btn-recenter:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.btn-set-time {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-set-time:hover:not(:disabled) {
    background: var(--color-accent-hover);
}

.btn-set-time:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Built-in Voices Divider */
.builtin-voices-divider {
    margin: 1.5rem 0 1rem 0;
    padding: 0.5rem 0;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 2px solid var(--color-border);
    padding-top: 1rem;
}

/* Custom Voice Input */
.custom-voice-input {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.custom-voice-label {
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.custom-voice-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.custom-voice-field:focus {
    outline: none;
    border-color: var(--color-accent);
}

.btn-create-voice {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

/* Custom Model Input */
.custom-model-input {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.custom-model-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    background: var(--color-bg);
    transition: var(--transition);
}

.custom-model-field:focus {
    outline: none;
    border-color: var(--color-accent);
}

.btn-create-voice:hover:not(:disabled) {
    background: var(--color-accent-hover);
}

.btn-create-voice:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.custom-voice-status {
    margin-top: 0.5rem;
    font-size: 0.813rem;
    text-align: center;
    min-height: 1.2rem;
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: var(--color-card);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 200;
    overflow-y: auto;
}

.settings-panel.open {
    transform: translateX(0);
}

.settings-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    font-size: 1rem;
    font-weight: 500;
}

.close-settings {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-body {
    padding: 1.5rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Prevent zoom on input focus and text selection on iOS */
input, select, textarea {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
}

/* Prevent selection zoom on iOS */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.setting-group select,
.setting-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 16px;
    background: var(--color-bg);
    transition: var(--transition);
}

.setting-group select:focus,
.setting-group input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.btn-save {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-save:hover {
    background: var(--color-accent-hover);
}

.btn-reset-score {
    width: 100%;
    padding: 0.75rem;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset-score:hover {
    background: #d32f2f;
}

.score-display {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(250, 250, 249, 0.4);
    border-radius: 6px;
    text-align: center;
}

.score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
}

.score-value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 0.25rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0;
}

/* Search Section */
.search-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    position: relative;
}

/* Home Map Container */
.home-map-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e5e3df;
    position: relative;
}

.home-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-instructions {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--color-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    pointer-events: none;
}

.map-instructions p {
    margin: 0;
}

/* Place Hero Image */
.place-hero {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 2rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.place-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-card {
    text-align: center;
    max-width: 600px;
    z-index: 1;
    padding: 0 2rem;
}

.search-card h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.search-description {
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.btn-explore-map {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--color-accent);
    color: white;
}

.btn-explore-map:hover {
    background: var(--color-accent-hover);
}

.btn-near-me {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    background: var(--color-accent);
    color: white;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-near-me:hover {
    background: var(--color-accent-hover);
    transform: scale(1.1);
}

.btn-near-me svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
}

.search-input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: 3.5rem;
    background: var(--color-card);
    position: relative;
    padding: 0.75rem;
    border-radius: 8px;
}

.search-input {
    flex: 1;
    height: 100%;
    padding: 0 4rem 0 1rem;
    border: none;
    font-size: 16px;
    transition: var(--transition);
    background: transparent;
    position: relative;
    z-index: 1;
}

.search-input:focus {
    outline: none;
}

.btn-explore {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem;
    min-height: 2.5rem;
    max-width: 2.5rem;
    max-height: 2.5rem;
    padding: 0;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.btn-explore:hover {
    background: var(--color-accent-hover);
    transform: translateY(-50%) scale(1.05);
}

.quick-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.suggestion-label {
    width: 100%;
    color: var(--color-text-light);
    font-size: 0.813rem;
    margin-bottom: 0.5rem;
}

.suggestion-chip {
    padding: 0.5rem 1rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
    color: var(--color-text-light);
}

.suggestion-chip:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Place Section */
.place-section {
    animation: fadeIn 0.3s ease;
    padding-top: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.place-nav {
    margin-bottom: 3rem;
    margin-top: 1rem;
}

.btn-back {
    display: none;
}

.btn-back:hover {
    color: var(--color-text);
}

.btn-back svg {
    width: 1rem;
    height: 1rem;
}

.breadcrumb {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.breadcrumb-link {
    color: var(--color-accent);
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
}

.place-header {
    margin-bottom: 3rem;
}

.place-name {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.place-type {
    display: none;
}

/* Map - Hidden by default for speed */
.map-container {
    display: none;
}

/* Custom Marker Styles */
.custom-pin-marker {
    background: none;
    border: none;
}

.custom-pin-marker svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Categories */
.categories-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.category {
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.items-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item {
    padding: 1.5rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.item:hover:not(.revealed) {
    border-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.item-text {
    line-height: 1.8;
    font-size: 1rem;
}

.place-link {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    font-weight: 600;
}

.place-link:hover {
    border-bottom-color: var(--color-accent);
}

.item.revealed {
    cursor: default;
    animation: reveal 0.4s ease;
}

@keyframes reveal {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
    100% {
        transform: scale(1);
    }
}

.item.revealed:hover {
    transform: none;
}

.item.is-lie {
    background: #f3f9f6;
    border-color: var(--color-success);
}

.item.is-truth {
    background: #fef5f3;
    border-color: var(--color-error);
}

/* Guess Buttons */
.guess-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    position: relative;
    min-height: 44px;
}

.guess-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 2px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-text);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.guess-btn:hover:not(:disabled) {
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

.guess-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.guess-btn.guess-true.active {
    background: var(--color-success);
    border-color: var(--color-success);
}

.guess-btn.guess-false.active {
    background: var(--color-error);
    border-color: var(--color-error);
}

.guess-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Guessed States */
.item.guessed-true {
    border-color: var(--color-success);
    border-width: 2px;
}

.item.guessed-false {
    border-color: var(--color-error);
    border-width: 2px;
}

/* Result States */
.item.guess-correct {
    background: #f3f9f6;
    border-color: var(--color-success);
}

.item.guess-incorrect {
    background: #fef5f3;
    border-color: var(--color-error);
}

/* Check Answers Button */
.check-answers-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(193, 125, 92, 0.2);
}

.check-answers-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(193, 125, 92, 0.3);
}

/* Feedback Overlay - Only covers buttons area */
.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Noto Color Emoji', 'Noto Emoji', sans-serif;
}

.item-overlay.show {
    opacity: 1;
    transform: scale(1);
}

.item-overlay.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.item-overlay.overlay-lie {
    background: linear-gradient(135deg, var(--color-success) 0%, #3d8a5d 100%);
}

.item-overlay.overlay-truth {
    background: linear-gradient(135deg, var(--color-error) 0%, #b85849 100%);
}

.item-overlay.overlay-correct {
    background: linear-gradient(135deg, var(--color-success) 0%, #3d8a5d 100%);
}

.item-overlay.overlay-incorrect {
    background: linear-gradient(135deg, var(--color-error) 0%, #b85849 100%);
}

/* Lighter text for better contrast - 70% white overlay effect */
.item-overlay > div:first-child {
    color: rgba(255, 255, 255, 0.95) !important;
}

.item-overlay > div:last-child {
    color: rgba(255, 255, 255, 0.85);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
    text-align: center;
    max-width: 90%;
    white-space: pre-line;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--color-card);
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.modal-body a {
    color: var(--color-accent);
}

.api-key-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 1rem;
    font-family: 'SF Mono', Monaco, monospace;
    -webkit-user-select: text;
    user-select: text;
}

.api-key-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--color-card);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    max-width: 400px;
    transform: translateX(500px);
    opacity: 0;
    transition: var(--transition);
    white-space: pre-line;
    line-height: 1.5;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left: 3px solid var(--color-success);
}

.notification-error {
    border-left: 3px solid var(--color-error);
}

.notification-info {
    border-left: 3px solid var(--color-accent);
}

/* Info Panel */
.info-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-height: 100vh;
    background: var(--color-card);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 200;
    overflow-y: auto;
}

.info-panel.open {
    transform: translateX(0);
}

.info-panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-panel-header h3 {
    font-size: 1rem;
    font-weight: 500;
}

.close-info-panel {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-panel-body {
    padding: 1rem;
}

.info-section {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.625rem;
    font-family: 'Noto Color Emoji', 'Noto Emoji', sans-serif;
}

.info-section p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.info-section p:last-child {
    margin-bottom: 0;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.info-section li {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.info-section li::before {
    content: '•';
    position: absolute;
    left: 0.375rem;
    color: var(--color-accent);
    font-weight: bold;
}

.info-disclaimer {
    background: rgba(217, 107, 94, 0.08);
    padding: 0.875rem;
    border-radius: 6px;
    border-left: 3px solid var(--color-error);
}

.info-disclaimer h4 {
    font-size: 0.875rem;
    font-family: 'Noto Color Emoji', 'Noto Emoji', sans-serif;
}

.info-disclaimer p {
    font-size: 0.813rem;
    line-height: 1.4;
}

/* Bottom Map Container */
.bottom-map-container {
    max-width: 800px;
    width: 100%;
    margin: 4rem auto 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e5e3df;
}

.bottom-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.btn-explore-bottom-map {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--color-accent);
    color: white;
}

.btn-explore-bottom-map:hover {
    background: var(--color-accent-hover);
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    text-align: center;
    margin-top: 0;
}

.footer-settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(193, 125, 92, 0.2);
}

.footer-settings-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 125, 92, 0.3);
}

.footer-settings-btn .settings-icon {
    width: 1.125rem;
    height: 1.125rem;
    stroke-width: 2;
}

.footer p {
    font-size: 0.813rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.footer-model {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

.footer-model #footerModelName {
    font-weight: 600;
    color: var(--color-accent);
}

.footer-credits {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.7;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .search-card h2 {
        font-size: 1.75rem;
    }

    .search-description {
        font-size: 1rem;
    }

    .place-name {
        font-size: 1.75rem;
    }

    .search-input-group {
        flex-direction: column;
    }

    .btn-explore {
        width: 100%;
    }

    .settings-panel,
    .voice-menu-panel,
    .info-panel {
        width: 100%;
    }

    .category-title {
        font-size: 1.25rem;
    }

    .item {
        padding: 1rem;
    }

    .item-text {
        font-size: 0.9375rem;
    }

    /* Full-screen maps and images on mobile */
    .place-hero {
        margin-bottom: 0;
        margin-top: 0;
    }

    .bottom-map-container {
        margin-top: 0;
        margin-bottom: 0;
    }

    .btn-explore-bottom-map {
        margin-top: 0;
        margin-bottom: 0;
        border-radius: 0;
    }
}
