/*
 * UK Weather Live - Site CSS Stylesheet
 */

:root {
    /* Color Palette */
    --primary-color: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #172554;
    --accent-color: #06b6d4;
    --accent-hover: #0891b2;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    /* Gradients */
    --gradient-weather: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
    
    /* Layout Variables */
    --container-width: 1200px;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-dark);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.py-5 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 0.875rem;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2.5rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-5 { margin-top: 2.5rem; margin-bottom: 2.5rem; }

.border {
    border: 1px solid var(--border-color);
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 2.5rem;
}

.max-w-600 { max-width: 600px; }
.max-w-900 { max-width: 900px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}
.grid > * {
    min-width: 0;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-3-1 { grid-template-columns: 2fr 1fr; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--primary-light);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #cbd5e1;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--bg-white);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--primary-light);
    text-decoration: underline;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Sticky Promo Banner (Mobile First) */
.mobile-sticky-promo {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    color: var(--bg-white);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-sticky-promo .promo-text {
    display: flex;
    flex-direction: column;
}

.mobile-sticky-promo .promo-text strong {
    font-size: 0.9rem;
}

.mobile-sticky-promo .promo-text span {
    font-size: 0.75rem;
    color: #cbd5e1;
}

@media (min-width: 768px) {
    .mobile-sticky-promo {
        display: none;
    }
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-dark);
}

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

.logo-icon {
    font-size: 1.75rem;
}

/* Navigation List */
.site-nav {
    display: none;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-list a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--primary-light);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-light);
    border-radius: 2px;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    position: relative;
    transition: background var(--transition-speed);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    left: 0;
    transition: transform var(--transition-speed);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Responsive Nav Toggle States */
.nav-open .hamburger { background: transparent; }
.nav-open .hamburger::before { transform: translateY(6px) rotate(45deg); }
.nav-open .hamburger::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Dropdown Nav */
@media (max-width: 991px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        padding: 1rem 0;
        z-index: 1000;
    }
    
    .site-nav.is-open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .nav-list a {
        padding: 1rem 1.5rem;
        display: block;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-list a:last-child {
        border-bottom: none;
    }
    
    .nav-list a.active::after {
        display: none;
    }
    
    .header-container {
        position: relative;
    }
}

@media (min-width: 992px) {
    .site-nav {
        display: block;
    }
    .nav-toggle {
        display: none;
    }
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    background: rgba(226, 232, 240, 0.5);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.lang-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: 280px;
    display: none;
    z-index: 1001;
}

.lang-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.lang-item {
    font-size: 0.8rem;
    color: var(--text-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color var(--transition-speed);
}

.lang-item:hover, .lang-item.active {
    background-color: var(--bg-light);
    color: var(--primary-light);
    font-weight: 600;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

/* Main Content Wrapper */
.main-content {
    flex-grow: 1;
    padding-bottom: 4rem; /* Buffer for mobile sticky menu */
}

/* Hero Section */
.hero-section {
    background: var(--gradient-weather);
    color: var(--bg-white);
    padding: 4rem 0;
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.25rem, 5vw + 1rem, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p.lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.cta-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

/* Device Mockup */
.device-mockup {
    width: 280px;
    height: 560px;
    border: 12px solid #1e293b;
    border-radius: 36px;
    background: #000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background: #1e293b;
    padding: 0.75rem;
    text-align: center;
    color: var(--bg-white);
    font-weight: bold;
    font-size: 0.85rem;
}

.mockup-radar-view {
    flex-grow: 1;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-radar-ping {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
}

.radar-scan {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.radar-scan::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent 50%, rgba(6, 182, 212, 0.4) 100%);
    border-radius: 50%;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

/* Cards & Sections */
.card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.feature-card {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title {
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.section-title h2 {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Responsive Table Utility */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    scrollbar-width: thin;
}
.table-responsive table {
    min-width: 600px; /* Ensures table doesn't crush content, wrap handles scroll */
}

/* Map Mockup Placeholder Box */
.map-placeholder-box {
    background-color: #0f172a;
    border-radius: var(--border-radius);
    height: 380px;
    overflow: hidden;
    position: relative;
    border: 1px solid #334155;
}

.map-visual {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--bg-white);
    padding: 2rem;
    text-align: center;
}

.map-visual .pulse-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: radar-pulse 2s infinite ease-in-out;
}

@keyframes radar-pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Alert Boxes */
.info-alert-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary-light);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.danger-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: 8px;
}

/* FAQ Accordion List */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.25rem 1.5rem;
}

.faq-question {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Blog Summary list */
.blog-summary-card h3 a {
    color: var(--text-dark);
}

.blog-summary-card h3 a:hover {
    color: var(--primary-light);
}

.blog-single-post h1 {
    font-size: 2.25rem;
    line-weight: 1.2;
    color: var(--primary-dark);
}

.post-body p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #334155;
}

.post-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.post-body ul, .post-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer styling */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid #1e293b;
}

.footer-container {
    display: grid;
    gap: 3rem;
}

@media (min-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 2fr;
    }
}

.footer-brand .logo {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.app-badges {
    display: flex;
    gap: 0.75rem;
}

.app-badge-link {
    transition: transform var(--transition-speed);
}

.app-badge-link:hover {
    transform: scale(1.05);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

.link-group h5 {
    color: var(--bg-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 0.5rem;
}

.link-group a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 3rem;
    padding-top: 2rem;
}

.bottom-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .bottom-container {
        flex-direction: row;
    }
}

.trust-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.signal-badge {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Cookie Consent Popup */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
    padding: 2rem;
    z-index: 9999;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.cookie-banner.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.cookie-banner-content h4 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.cookie-banner-content p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.cookie-preferences {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.pref-item {
    margin-bottom: 1rem;
}

.pref-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.pref-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-top: 0.25rem;
}

.hidden {
    display: none !important;
}

/* RTL (Right to Left) Styling Overrides */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .site-header .logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .site-header .nav-list {
    flex-direction: row-reverse;
}

[dir="rtl"] .site-header .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .info-alert-box {
    border-left: none;
    border-right: 4px solid var(--primary-light);
    border-radius: 8px 0 0 8px;
}

[dir="rtl"] .danger-box {
    border-left: none;
    border-right: 4px solid #ef4444;
}

[dir="rtl"] .related-list {
    padding-right: 0;
}

/* Premium Screenshot Mockups & Floating Widgets */
.screenshot-showcase-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 0;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.screenshot-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    transition: transform var(--transition-speed);
}

.screenshot-card:hover {
    transform: scale(1.02);
}

.screenshot-card .card-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
}

.screenshot-card .card-badge.bg-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.screenshot-card .card-temp {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.screenshot-card .card-condition {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.screenshot-card .card-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

.screenshot-card .card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Float Animations */
.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 4s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* =============================================================
 * ACCESSIBILITY — WCAG 2.1 AA Compliance
 * ============================================================= */

/* Skip-to-content link — WCAG 2.4.1 Bypass Blocks */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    background: var(--primary-dark);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Global focus-visible — visible keyboard focus ring (WCAG 2.4.7) */
*:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Remove outline for mouse users only */
*:focus:not(:focus-visible) {
    outline: none;
}

/* High-contrast focus for links */
a:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 2px;
}

/* =============================================================
 * CORE WEB VITALS — Cumulative Layout Shift (CLS) Prevention
 * ============================================================= */

/* Ad containers: reserved minimum height prevents layout shift */
.ad-container {
    min-height: 90px;
    display: block;
    position: relative;
}

.ad-container.ad-sidebar {
    min-height: 250px;
}

.ad-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 0.35rem;
}

.ad-placeholder {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-container.ad-sidebar .ad-placeholder {
    min-height: 250px;
}

/* =============================================================
 * MOBILE — Safe Area Inset for Notched Phones (iOS/Android)
 * ============================================================= */

.mobile-sticky-promo {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left:  env(safe-area-inset-left,   0px);
    padding-right: env(safe-area-inset-right,  0px);
}

.site-footer .footer-bottom {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

/* =============================================================
 * COOKIE CONSENT BANNER — Enhanced Styling
 * ============================================================= */

.cookie-banner {
    position: fixed;
    bottom: env(safe-area-inset-bottom, 0);
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #e2e8f0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-content {
    max-width: 860px;
    margin: 0 auto;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.cookie-icon {
    font-size: 1.4rem;
}

.cookie-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.cookie-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cookie-policy-link {
    color: var(--accent-color);
    text-decoration: underline;
    margin-left: 0.25rem;
}

.cookie-preferences {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.cookie-preferences.hidden {
    display: none;
}

.pref-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pref-item:last-child {
    border-bottom: none;
}

.pref-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    color: #f1f5f9;
    font-size: 0.9rem;
}

.pref-label-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pref-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.3rem;
    margin-left: 1.6rem;
    line-height: 1.4;
}

.pref-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pref-badge--always {
    background: #059669;
    color: white;
}

.cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.cookie-legal-note {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.75rem;
}

.cookie-legal-note a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =============================================================
 * BLOG — Article Meta Pills (EEAT Signals)
 * ============================================================= */

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

.meta-pill strong {
    color: var(--primary-dark);
}

/* =============================================================
 * CONTACT FORM — Field Error States
 * ============================================================= */

.field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* =============================================================
 * RESPONSIVE — Legal Pages Table
 * ============================================================= */

@media (max-width: 640px) {
    table {
        font-size: 0.78rem;
    }
    
    table th, table td {
        padding: 0.5rem !important;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .meta-pill {
        font-size: 0.72rem;
        padding: 0.2rem 0.45rem;
    }
}

/* =============================================================
 * CITY SEARCH WIDGET
 * ============================================================= */
.city-search-widget {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    text-align: left;
}

.city-search-heading {
    margin-bottom: 1rem;
}

.city-search-title {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-weight: 800;
}

.city-search-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.city-search-form {
    position: relative;
    width: 100%;
}

.city-search-input-wrap {
    position: relative;
    width: 100%;
}

.city-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 2px solid transparent;
    padding: 0.25rem 0.75rem;
    box-shadow: none;
    transition: border-color 0.2s;
}

.city-search-box:focus-within {
    border-bottom: 2px solid #ea6e4b;
}

.city-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-right: 0.5rem;
}

.city-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    color: #333;
    box-shadow: none !important;
}

.city-search-input:focus {
    box-shadow: none !important;
    outline: none;
}

.city-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.25rem;
    color: #333;
}

.city-search-location-lbl {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.95rem;
    color: #333;
    padding-left: 0.75rem;
    margin-left: 0.5rem;
    border-left: 1px solid #ddd;
    cursor: pointer;
}

/* Autocomplete Dropdown */
.city-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.city-search-option {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.city-search-option:last-child {
    border-bottom: none;
}

.city-search-option:hover,
.city-search-option--active {
    background: var(--bg-light);
}

.city-search-option-icon {
    font-size: 1.2rem;
}

.city-search-option-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.city-search-option-name {
    font-weight: 600;
    color: var(--text-dark);
}

.city-search-option-region {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.city-highlight {
    background: transparent;
    color: var(--primary-light);
    font-weight: 700;
}

.city-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-weight: 700;
    background: #dbeafe;
    color: #1e40af;
    white-space: nowrap;
}

.city-search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Popular cities */
.city-search-popular {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.city-search-popular-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.city-search-popular-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.city-search-popular-tag {
    font-size: 0.8rem;
    color: var(--primary-light);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
}

.city-search-popular-tag:hover {
    background: var(--primary-light);
    color: white;
}

@media (max-width: 640px) {
    .city-search-form {
        flex-direction: column;
    }
    .city-search-input {
        width: 100%;
    }
    .city-search-btn {
        width: 100%;
        padding: 0.85rem;
    }
}
