:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --secondary: #6366f1;
    --secondary-dark: #4f46e5;
    --accent: #f59e0b;
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --gradient-primary: linear-gradient(135deg, #0d9488 0%, #6366f1 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-hero: linear-gradient(135deg, rgba(13, 148, 136, 0.95), rgba(99, 102, 241, 0.9));
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding-top: 76px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(10deg) scale(1.1);
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: #475569 !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(13, 148, 136, 0.08);
}

.nav-link i {
    font-size: 1rem;
}

.btn-nav-cta {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
    color: white !important;
}

.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero), url('../assets/hero-bg.jpg') center/cover no-repeat;
    border-radius: 0 0 50px 50px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 850px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 0.8s ease;
}

.hero-badge i {
    color: var(--accent);
    font-size: 1.1rem;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.card {
    background: white;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.25rem 1.5rem;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    font-size: 1.25rem;
}

.card-body {
    padding: 1.75rem;
}

.form-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: #f9fafb;
    width: 100%;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    background: white;
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:disabled, .form-select:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.query-input-group {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: white;
}

.mic-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mic-btn:hover {
    filter: brightness(1.1);
}

.mic-btn.active {
    background: var(--gradient-gold);
    animation: pulse 1.5s infinite;
}

.mic-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.query-input-group .form-control {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    background: white;
}

.query-input-group .form-control:focus {
    box-shadow: none;
}

.btn-query {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-query:hover {
    background: var(--secondary-dark);
}

.btn-query:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-wizard {
    background: var(--gradient-success);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-wizard:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-wizard:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-wizard.loading {
    pointer-events: none;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.turnstile-status {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.turnstile-status.verified {
    color: var(--success);
}

.turnstile-status.pending {
    color: var(--warning);
}

.query-info {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.query-info i {
    color: var(--primary);
}

.btn-new-query {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-new-query:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-new-query:active {
    transform: translateY(-1px);
}

.btn-new-query i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-new-query:hover i {
    transform: rotate(180deg);
}

.example-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.example-box strong {
    color: #166534;
}

.example-box em {
    color: #15803d;
    cursor: pointer;
    transition: var(--transition);
}

.example-box em:hover {
    text-decoration: underline;
}

#map {
    height: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 2.5rem 0;
    z-index: 1;
}

.features-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.section-title p {
    color: #64748b;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(99, 102, 241, 0.1));
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--gradient-primary);
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.result-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.result-modal.show {
    display: flex;
    opacity: 1;
}

.result-content {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 950px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-xl);
}

.result-modal.show .result-content {
    transform: scale(1) translateY(0);
}

.result-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 2.5rem;
    text-align: center;
    position: relative;
}

.result-header-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-header-action {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-header-action:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-header-action.close-modal:hover {
    transform: rotate(90deg);
}

.result-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
}

.result-body {
    padding: 2rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card.highlight {
    background: var(--gradient-success);
    border-color: transparent;
    color: white;
}

.stat-card.highlight .stat-icon,
.stat-card.highlight .stat-value,
.stat-card.highlight .stat-label {
    color: white;
}

.stat-icon {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.price-range-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    color: white;
    margin-bottom: 2rem;
}

.price-range-card h4 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    text-align: center;
    font-weight: 600;
}

.price-range-values {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.price-item .value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.price-item .label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.chart-section {
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.chart-section h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-align: center;
    color: #1e293b;
}

.chart-container {
    height: 280px;
    position: relative;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.year-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 0.85rem;
    text-align: center;
    transition: var(--transition);
}

.year-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.year-item .year {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.year-item .price {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analysis-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.analysis-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-card h5 i {
    color: var(--primary);
    font-size: 1.2rem;
}

.investment-score {
    text-align: center;
}

.score-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: conic-gradient(var(--success) calc(var(--score) * 3.6deg), #e5e7eb 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
}

.score-value {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 700;
    color: var(--success);
}

.score-label {
    font-weight: 600;
    color: var(--success);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.factors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.factors-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    line-height: 1.5;
}

.factors-list li:last-child {
    border-bottom: none;
}

.factors-list li i {
    margin-top: 2px;
    font-size: 1rem;
}

.factors-list li i.fa-check-circle {
    color: var(--success);
}

.factors-list li i.fa-times-circle {
    color: var(--danger);
}

.demografi-card {
    background: linear-gradient(145deg, #f0fdf4, #dcfce7);
    border: 2px solid #86efac;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.demografi-card h5 {
    color: #166534;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.demografi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.demografi-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #166534;
}

.demografi-item i {
    color: #22c55e;
    font-size: 1.1rem;
}

.faq-section {
    padding: 4rem 0;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    background: white;
    font-weight: 600;
    color: #1e293b;
    padding: 1.25rem 1.5rem;
    border: none;
    font-size: 1rem;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    filter: brightness(0) saturate(100%);
    transition: var(--transition);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    background: white;
    padding: 1.5rem;
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
}

.accordion-body ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.accordion-body li {
    margin-bottom: 0.5rem;
}

.about-section {
    padding: 2rem 0;
}

.about-section .card-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
}

.about-section .card-body p {
    margin-bottom: 1rem;
}

.about-section .card-body p:last-child {
    margin-bottom: 0;
}

footer {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-radius: 50px 50px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

.footer-brand strong {
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-copyright a {
    color: white;
    text-decoration: underline;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.loading-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.loading-content {
    background: white;
    padding: 2rem 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.loading-content .spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-content p {
    color: #475569;
    font-weight: 500;
    margin: 0;
}

@media print {
    body {
        padding-top: 0 !important;
        background: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .navbar, 
    .hero, 
    footer, 
    .query-section, 
    #map, 
    .faq-section, 
    .features-section, 
    .about-section,
    .loading-overlay,
    .toast-notification {
        display: none !important;
    }
    
    .result-modal {
        position: static !important;
        display: block !important;
        background: none !important;
        padding: 0 !important;
        opacity: 1 !important;
        overflow: visible !important;
    }
    
    .result-content {
        max-width: 100% !important;
        max-height: none !important;
        box-shadow: none !important;
        transform: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }
    
    .result-header-actions {
        display: none !important;
    }
    
    .result-header {
        background: #0d9488 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        padding: 1.5rem !important;
        border-radius: 0 !important;
    }
    
    .result-header h3 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .location-badge {
        background: rgba(255, 255, 255, 0.3) !important;
    }
    
    .result-body {
        padding: 1.5rem !important;
    }
    
    .stat-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1rem !important;
    }
    
    .stat-card {
        padding: 1rem !important;
        border: 1px solid #e5e7eb !important;
        page-break-inside: avoid !important;
    }
    
    .stat-card.highlight {
        background: #10b981 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .price-range-card {
        background: #0d9488 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        page-break-inside: avoid !important;
    }
    
    .chart-section {
        page-break-inside: avoid !important;
        background: #f8fafc !important;
    }
    
    .chart-container {
        height: 200px !important;
    }
    
    .year-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .analysis-grid {
        page-break-inside: avoid !important;
    }
    
    .analysis-card {
        border: 1px solid #e5e7eb !important;
        page-break-inside: avoid !important;
    }
    
    .score-circle {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .demografi-card {
        background: #dcfce7 !important;
        border: 1px solid #86efac !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        page-break-inside: avoid !important;
    }
    
    .result-body::after {
        content: "Bu rapor Bir İlan Ver Emlak Endeksi tarafından oluşturulmuştur. www.birilanver.com/dijital/emlak-endeksi";
        display: block;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e7eb;
        text-align: center;
        font-size: 0.85rem;
        color: #6b7280;
    }
    
    .analysis-card[style*="grid-column"] {
        grid-column: 1 / -1 !important;
    }
    
    .analysis-card .row {
        display: flex !important;
    }
    
    .analysis-card .col-md-4 {
        flex: 1 !important;
    }
}

.dark-mode {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
}

.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .nav-link {
    color: #94a3b8 !important;
}

.dark-mode .nav-link:hover {
    color: var(--primary-light) !important;
    background: rgba(13, 148, 136, 0.15);
}

.dark-mode .card,
.dark-mode .feature-card,
.dark-mode .accordion-button,
.dark-mode .accordion-body {
    background: #1e293b;
    color: #e2e8f0;
}

.dark-mode .card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dark-mode .form-control,
.dark-mode .form-select {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.dark-mode .form-control::placeholder {
    color: #64748b;
}

.dark-mode .example-box {
    background: linear-gradient(135deg, #064e3b, #065f46);
    border-color: #10b981;
}

.dark-mode .example-box strong,
.dark-mode .example-box em {
    color: #a7f3d0;
}

.dark-mode .result-content {
    background: #1e293b;
    color: #e2e8f0;
}

.dark-mode .stat-card,
.dark-mode .year-item,
.dark-mode .analysis-card {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.dark-mode .stat-value,
.dark-mode .year-item .price {
    color: #f1f5f9;
}

.dark-mode .stat-label,
.dark-mode .year-item .year {
    color: #94a3b8;
}

.dark-mode .chart-section {
    background: #0f172a;
}

.dark-mode .demografi-card {
    background: linear-gradient(145deg, #064e3b, #065f46);
    border-color: #10b981;
}

.dark-mode .demografi-card h5,
.dark-mode .demografi-item {
    color: #a7f3d0;
}

.dark-mode .section-title h2 {
    color: #f1f5f9;
}

.dark-mode .section-title p {
    color: #94a3b8;
}

.dark-mode .feature-card h3 {
    color: #f1f5f9;
}

.dark-mode .feature-card p {
    color: #94a3b8;
}

.dark-mode .query-input-group {
    background: #334155;
}

.dark-mode .query-input-group .form-control {
    background: #334155;
}

.dark-mode .theme-toggle {
    color: #94a3b8;
}

.dark-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

.dark-mode .query-info {
    color: #94a3b8;
}

.dark-mode .loading-content {
    background: #1e293b;
}

.dark-mode .loading-content p {
    color: #e2e8f0;
}

.dark-mode .score-circle::before {
    background: #1e293b;
}

@media (max-width: 992px) {
    .hero {
        min-height: 45vh;
    }
    
    .hero-stats {
        gap: 2.5rem;
    }
    
    .hero-stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    .hero {
        min-height: 40vh;
        border-radius: 0 0 30px 30px;
    }
    
    .hero h1 {
        font-size: 1.85rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .hero-stat-value {
        font-size: 1.75rem;
    }
    
    .query-input-group {
        flex-direction: column;
    }
    
    .query-input-group .mic-btn,
    .query-input-group .btn-query {
        width: 100%;
        justify-content: center;
        border-radius: 0;
    }
    
    .query-input-group .mic-btn {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .query-input-group .btn-query {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .year-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        padding: 1.5rem;
    }
    
    .result-header h3 {
        font-size: 1.35rem;
    }
    
    .result-body {
        padding: 1.25rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    #map {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 35vh;
    }
    
    .hero-badge {
        font-size: 0.85rem;
        padding: 8px 18px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.35rem;
    }
    
    .price-item .value {
        font-size: 1.35rem;
    }
    
    .chart-container {
        height: 220px;
    }
    
    .score-circle {
        width: 110px;
        height: 110px;
    }
    
    .score-circle::before {
        width: 85px;
        height: 85px;
    }
    
    .score-value {
        font-size: 1.75rem;
    }
    
    .result-header-actions {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .btn-header-action {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}