/* ============================================
   Living in Italy — Custom Styles
   Add to child theme style.css or enqueue separately
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --lit-blue: #1B4965;
    --lit-blue-light: #2A6F97;
    --lit-terracotta: #C4754B;
    --lit-terracotta-light: #D4956B;
    --lit-olive: #5B7553;
    --lit-gold: #D4A853;
    --lit-cream: #FAF6F1;
    --lit-stone: #E8E0D8;
    --lit-charcoal: #2D3436;
    --lit-grey: #6B7280;
    --lit-white: #FFFFFF;
    --lit-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --lit-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --lit-radius: 12px;
    --lit-radius-sm: 8px;
    --lit-font-heading: 'Playfair Display', Georgia, serif;
    --lit-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   Base Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --lit-blue: #1B4965;
    --lit-blue-light: #2A6F97;
    --lit-terracotta: #C4754B;
    --lit-terracotta-light: #D4956B;
    --lit-olive: #5B7553;
    --lit-gold: #D4A853;
    --lit-cream: #F8F9FB;
    --lit-stone: #E5E7EB;
    --lit-charcoal: #1F2937;
    --lit-grey: #6B7280;
    --lit-grey-light: #9CA3AF;
    --lit-white: #FFFFFF;
    --lit-red: #EF4444;
    --lit-green: #10B981;
    --lit-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --lit-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --lit-shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --lit-radius: 12px;
    --lit-radius-sm: 8px;
    --lit-font-heading: 'Playfair Display', Georgia, serif;
    --lit-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--lit-cream);
    color: var(--lit-charcoal);
    font-family: var(--lit-font-body);
    line-height: 1.6;
    font-size: 15px;
}

/* ============================================
   Full-Width Override for Astra
   Sections go edge-to-edge, content stays centered
   ============================================ */
.lit-home,
.lit-explorer,
.lit-compare,
.lit-regions-page,
.lit-location-page,
.lit-town-page {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Remove Astra's inner container padding/max-width on our pages */
.ast-page-builder-template .entry-content {
    max-width: 100%;
    padding: 0;
}

.ast-page-builder-template .site-content > .ast-container {
    max-width: 100%;
    padding: 0;
}

/* ============================================
   Content Container (centered, normal width)
   ============================================ */
.lit-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Top Bar
   ============================================ */
.lit-topbar {
    background: var(--lit-white);
    border-bottom: 1px solid var(--lit-stone);
    padding: 12px 0;
}

.lit-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lit-topbar-back {
    font-size: 14px;
    color: var(--lit-charcoal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.lit-topbar-back:hover {
    color: var(--lit-blue);
}

.lit-topbar-tags {
    display: flex;
    gap: 8px;
}

.lit-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.lit-tag:hover { opacity: 0.85; }

.lit-tag-region {
    background: var(--lit-terracotta);
    color: var(--lit-white);
}

.lit-tag-geo {
    background: var(--lit-blue);
    color: var(--lit-white);
}

.lit-tag-small {
    padding: 2px 10px;
    font-size: 11px;
    background: var(--lit-stone);
    color: var(--lit-grey);
    border-radius: 12px;
}

/* ============================================
   Town Header
   ============================================ */
.lit-header {
    background: var(--lit-white);
    padding: 32px 0;
    border-bottom: 1px solid var(--lit-stone);
}

.lit-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lit-town-name {
    font-family: var(--lit-font-heading);
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--lit-charcoal);
}

.lit-town-location {
    font-size: 15px;
    color: var(--lit-grey);
    margin: 0;
}

.lit-header-right {
    text-align: right;
}

.lit-header-pop-value {
    display: block;
    font-family: var(--lit-font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--lit-blue);
}

.lit-header-pop-label {
    font-size: 13px;
    color: var(--lit-grey);
}

/* ============================================
   Content Area
   ============================================ */
.lit-content {
    padding: 24px 20px 40px;
}

/* ============================================
   Row & Card Layout
   ============================================ */
.lit-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.lit-card {
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    padding: 24px;
    box-shadow: var(--lit-shadow);
    border: 1px solid var(--lit-stone);
}

.lit-card-half {
    flex: 1;
    min-width: 0;
}

.lit-card-full {
    flex: 1 1 100%;
}

.lit-card-heading {
    font-family: var(--lit-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--lit-charcoal);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lit-stone);
}

.lit-card-subtitle {
    font-size: 14px;
    color: var(--lit-grey);
    margin: -8px 0 20px 0;
}

/* ============================================
   Detail Rows (Village Details card)
   ============================================ */
.lit-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lit-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lit-detail-icon {
    font-size: 18px;
    width: 24px;
    flex-shrink: 0;
    text-align: center;
    padding-top: 2px;
}

.lit-detail-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--lit-grey);
}

.lit-detail-value {
    display: block;
    font-size: 15px;
    color: var(--lit-charcoal);
    font-weight: 500;
}

.lit-detail-divider {
    height: 1px;
    background: var(--lit-stone);
    margin: 4px 0;
}

.lit-detail-meta {
    font-size: 13px;
    color: var(--lit-grey);
}

.lit-detail-meta strong {
    color: var(--lit-charcoal);
}

/* ============================================
   Map
   ============================================ */
.lit-map-embed {
    border-radius: var(--lit-radius-sm);
    overflow: hidden;
    margin-top: 4px;
}

.lit-map-embed iframe {
    display: block;
    border-radius: var(--lit-radius-sm);
}

/* ============================================
   Info Blocks
   ============================================ */
.lit-info-block {
    margin-bottom: 16px;
}

.lit-info-block strong {
    font-size: 14px;
    color: var(--lit-charcoal);
}

.lit-info-block p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: var(--lit-grey);
    line-height: 1.6;
}

/* ============================================
   Score Display (Walkability)
   ============================================ */
.lit-score-display {
    margin-bottom: 16px;
}

.lit-score-header {
    margin-bottom: 8px;
}

.lit-score-label {
    font-weight: 600;
    font-size: 15px;
}

.lit-score-bar {
    height: 8px;
    background: var(--lit-stone);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.lit-score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lit-terracotta), var(--lit-olive));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.lit-score-desc {
    font-size: 13px;
    color: var(--lit-grey);
    font-style: italic;
}

.lit-score-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.lit-score-good {
    background: #D1FAE5;
    color: #065F46;
}

.lit-score-mid {
    background: #FEF3C7;
    color: #92400E;
}

.lit-score-low {
    background: #FEE2E2;
    color: #991B1B;
}

/* Score levels (1-5 scale) */
.lit-score-5 { color: #065F46; } /* Exceptional - green */
.lit-score-4 { color: #1B4965; } /* Excellent - blue */
.lit-score-3 { color: #92400E; } /* Good - amber */
.lit-score-2 { color: #C4754B; } /* Fair - terracotta */
.lit-score-1 { color: #991B1B; } /* Challenging - red */

/* Liveability bar — olive/gold gradient to distinguish from walkability */
.lit-score-fill-live {
    background: linear-gradient(90deg, var(--lit-olive), var(--lit-gold));
}

.lit-score-explainer {
    font-size: 12px;
    color: var(--lit-grey-light);
    margin: 12px 0 0 0;
    line-height: 1.5;
}

.lit-score-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.lit-score-good {
    background: #D1FAE5;
    color: #065F46;
}

.lit-score-mid {
    background: #FEF3C7;
    color: #92400E;
}

.lit-score-low {
    background: #FEE2E2;
    color: #991B1B;
}

/* Score levels (1-5 scale) */
.lit-score-5 { color: #065F46; } /* Exceptional - green */
.lit-score-4 { color: #1B4965; } /* Excellent - blue */
.lit-score-3 { color: #92400E; } /* Good - amber */
.lit-score-2 { color: #C4754B; } /* Fair - terracotta */
.lit-score-1 { color: #991B1B; } /* Challenging - red */


/* ============================================
   Climate Grid
   ============================================ */
.lit-climate-type {
    font-size: 18px;
    color: var(--lit-blue);
    margin: 0 0 12px 0;
}

.lit-climate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 20px 0;
}

.lit-climate-season h4 {
    font-family: var(--lit-font-heading);
    font-size: 16px;
    margin: 0 0 12px 0;
}

.lit-climate-season p {
    font-size: 14px;
    color: var(--lit-grey);
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.lit-text-positive { color: var(--lit-olive) !important; }
.lit-text-caution { color: var(--lit-terracotta) !important; }

.lit-highlight-box {
    background: #FEF3C7;
    border-left: 4px solid var(--lit-gold);
    padding: 12px 16px;
    border-radius: 0 var(--lit-radius-sm) var(--lit-radius-sm) 0;
    font-size: 14px;
    margin: 16px 0;
}

.lit-note {
    background: var(--lit-cream);
    padding: 12px 16px;
    border-radius: var(--lit-radius-sm);
    font-size: 14px;
    color: var(--lit-grey);
    margin: 12px 0 0 0;
}

/* ============================================
   Services Table
   ============================================ */
.lit-services-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lit-services-table thead th {
    text-align: left;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--lit-grey);
    border-bottom: 2px solid var(--lit-stone);
}

.lit-services-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--lit-cream);
    vertical-align: top;
}

.lit-services-table tbody tr:hover {
    background: var(--lit-cream);
}

.lit-service-icon {
    margin-right: 6px;
}

/* ============================================
   Similar Towns Grid
   ============================================ */
.lit-similar-section {
    background: var(--lit-cream);
    border: 2px solid var(--lit-stone);
}

.lit-town-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lit-town-card {
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    padding: 20px;
    border: 1px solid var(--lit-stone);
    transition: box-shadow 0.2s;
}

.lit-town-card:hover {
    box-shadow: var(--lit-shadow-md);
}

.lit-town-card-name {
    font-family: var(--lit-font-heading);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.lit-town-card-location {
    font-size: 12px;
    color: var(--lit-grey);
    margin: 0 0 12px 0;
}

.lit-town-card-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 0;
    color: var(--lit-grey);
}

.lit-town-card-stat strong {
    color: var(--lit-charcoal);
}

/* ============================================
   Buttons
   ============================================ */
.lit-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--lit-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: none;
}

.lit-btn-primary {
    background: var(--lit-blue);
    color: var(--lit-white);
}

.lit-btn-primary:hover {
    background: var(--lit-blue-light);
    color: var(--lit-white);
}

.lit-btn-secondary {
    background: var(--lit-charcoal);
    color: var(--lit-white);
}

.lit-btn-secondary:hover {
    background: var(--lit-blue);
    color: var(--lit-white);
}

.lit-btn-outline {
    background: transparent;
    border: 1.5px solid var(--lit-stone);
    color: var(--lit-charcoal);
}

.lit-btn-outline:hover {
    border-color: var(--lit-blue);
    color: var(--lit-blue);
}

.lit-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.lit-btn-block {
    display: block;
    width: 100%;
    margin-top: 12px;
}

.lit-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* ============================================
   Bottom Bar
   ============================================ */
.lit-bottombar {
    background: var(--lit-white);
    border-top: 1px solid var(--lit-stone);
    padding: 16px 0;
    text-align: center;
}

.lit-bottombar-inner {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ============================================
   Hospital Details
   ============================================ */
.lit-hospital-details {
    padding-top: 8px;
}

.lit-hospital-details p {
    font-size: 14px;
    color: var(--lit-grey);
    margin: 4px 0;
}

.lit-hospital-details a {
    color: var(--lit-blue);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .lit-row {
        flex-direction: column;
    }
    
    .lit-town-name {
        font-size: 28px;
    }
    
    .lit-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .lit-header-right {
        text-align: left;
    }
    
    .lit-header-pop-value {
        font-size: 24px;
    }
    
    .lit-climate-grid {
        grid-template-columns: 1fr;
    }
    
    .lit-town-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .lit-services-table {
        font-size: 13px;
    }
    
    .lit-services-table thead th,
    .lit-services-table tbody td {
        padding: 10px 8px;
    }
    
    .lit-topbar-tags {
        display: none;
    }
}

@media (max-width: 480px) {
    .lit-town-name {
        font-size: 24px;
    }
    
    .lit-town-grid {
        grid-template-columns: 1fr;
    }
    
    .lit-card {
        padding: 16px;
    }
    
    .lit-services-table thead {
        display: none;
    }
    
    .lit-services-table tbody td {
        display: block;
        padding: 4px 8px;
    }
    
    .lit-services-table tbody td:first-child {
        padding-top: 12px;
        font-weight: 600;
    }
    
    .lit-services-table tbody td:last-child {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--lit-stone);
    }
}


/* ============================================
   Hero Section
   ============================================ */
.lit-hero {
    background: linear-gradient(135deg, var(--lit-blue), var(--lit-blue-light));
    padding: 48px 24px 40px;
    color: var(--lit-white);
}

.lit-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.lit-breadcrumbs {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.85;
}

.lit-breadcrumbs a {
    color: var(--lit-white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.lit-breadcrumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

.lit-breadcrumbs span {
    margin: 0 6px;
    opacity: 0.6;
}

.lit-breadcrumbs .current {
    opacity: 0.7;
    margin: 0;
}

.lit-town-title {
    font-family: var(--lit-font-heading);
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.1;
}

.lit-town-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   Badges
   ============================================ */
.lit-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.lit-badge-province {
    background: rgba(255, 255, 255, 0.2);
    color: var(--lit-white);
}

.lit-badge-region {
    background: rgba(255, 255, 255, 0.15);
    color: var(--lit-white);
}

.lit-badge-elevation {
    background: rgba(255, 255, 255, 0.1);
    color: var(--lit-white);
}

.lit-badge-climate {
    background: var(--lit-blue);
    color: var(--lit-white);
}

.lit-badge-best-months {
    background: var(--lit-olive);
    color: var(--lit-white);
}

.lit-badge-hospital {
    background: var(--lit-terracotta);
    color: var(--lit-white);
}

/* ============================================
   Quick Stats Bar
   ============================================ */
.lit-quick-stats {
    background: var(--lit-white);
    padding: 24px 0;
    border-bottom: 1px solid var(--lit-stone);
    box-shadow: var(--lit-shadow);
}

.lit-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    text-align: center;
}

.lit-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lit-stat-icon {
    font-size: 24px;
}

.lit-stat-value {
    font-family: var(--lit-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--lit-blue);
}

.lit-stat-label {
    font-size: 13px;
    color: var(--lit-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Section Navigation (Sticky)
   ============================================ */
.lit-section-nav {
    background: var(--lit-white);
    border-bottom: 1px solid var(--lit-stone);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}

.lit-section-nav .lit-container {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.lit-nav-link {
    padding: 14px 20px;
    color: var(--lit-grey);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.lit-nav-link:hover {
    color: var(--lit-blue);
    border-bottom-color: var(--lit-blue);
}

/* ============================================
   Main Content Area
   ============================================ */
.lit-main-content {
    padding: 40px 24px;
}

/* ============================================
   Sections
   ============================================ */
.lit-section {
    margin-bottom: 48px;
}

.lit-section-title {
    font-family: var(--lit-font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--lit-blue);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--lit-stone);
}

/* ============================================
   Cards
   ============================================ */
.lit-card {
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--lit-shadow);
    transition: box-shadow 0.2s;
}

.lit-card:hover {
    box-shadow: var(--lit-shadow-hover);
}

.lit-card-highlight {
    border-left: 4px solid var(--lit-terracotta);
}

.lit-card-title {
    font-family: var(--lit-font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--lit-charcoal);
    margin: 0 0 16px 0;
}

.lit-card-compact {
    text-align: center;
    padding: 20px;
}

.lit-card-compact .lit-card-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.lit-card-compact h4 {
    font-family: var(--lit-font-heading);
    font-size: 16px;
    margin: 0 0 8px 0;
    color: var(--lit-blue);
}

.lit-card-compact p {
    font-size: 14px;
    color: var(--lit-grey);
    margin: 0;
}

.lit-card-link {
    display: block;
    text-decoration: none;
    color: var(--lit-charcoal);
    cursor: pointer;
    border: 2px solid var(--lit-stone);
}

.lit-card-link:hover {
    border-color: var(--lit-terracotta);
}

.lit-card-link p {
    color: var(--lit-grey);
    margin: 0 0 12px 0;
}

/* ============================================
   Fields (Label/Value pairs)
   ============================================ */
.lit-field {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid var(--lit-cream);
}

.lit-field:last-child {
    border-bottom: none;
}

.lit-field-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--lit-grey);
    margin-bottom: 4px;
}

.lit-field-value {
    font-size: 15px;
    color: var(--lit-charcoal);
    line-height: 1.5;
}

.lit-field-positive .lit-field-value {
    color: var(--lit-olive);
}

.lit-field-caution .lit-field-label {
    color: var(--lit-terracotta);
}

/* ============================================
   Grid Layouts
   ============================================ */
.lit-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lit-three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* ============================================
   Buttons
   ============================================ */
.lit-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--lit-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
    margin-right: 8px;
}

.lit-btn-primary {
    background: var(--lit-terracotta);
    color: var(--lit-white);
}

.lit-btn-primary:hover {
    background: var(--lit-terracotta-light);
}

.lit-btn-secondary {
    background: var(--lit-blue);
    color: var(--lit-white);
}

.lit-btn-secondary:hover {
    background: var(--lit-blue-light);
}

.lit-btn-outline {
    background: transparent;
    color: var(--lit-blue);
    border: 2px solid var(--lit-blue);
}

.lit-btn-outline:hover {
    background: var(--lit-blue);
    color: var(--lit-white);
}

/* ============================================
   Map
   ============================================ */
.lit-map-card {
    padding: 0;
    overflow: hidden;
}

.lit-map-card iframe {
    display: block;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .lit-town-title {
        font-size: 32px;
    }
    
    .lit-two-col,
    .lit-three-col {
        grid-template-columns: 1fr;
    }
    
    .lit-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lit-stat-value {
        font-size: 20px;
    }
    
    .lit-section-title {
        font-size: 24px;
    }
    
    .lit-hero {
        padding: 32px 24px;
    }
    
    .lit-nav-link {
        padding: 12px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .lit-town-title {
        font-size: 28px;
    }
    
    .lit-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .lit-card {
        padding: 16px;
    }
}

/* ============================================
   Town Explorer — Styles
   Append to living-in-italy.css or enqueue separately
   ============================================ */

/* ---- Explorer Header ---- */
.lit-explorer-header {
    background: linear-gradient(135deg, var(--lit-blue) 0%, var(--lit-blue-light) 100%);
    padding: 48px 0 40px;
    text-align: center;
}

.lit-explorer-title {
    font-family: var(--lit-font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--lit-white);
    margin: 0 0 8px 0;
}

.lit-explorer-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* ---- Body Layout: Sidebar + Results ---- */
.lit-explorer-body {
    display: flex;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 48px;
    align-items: flex-start;
}

/* ---- Filter Sidebar ---- */
.lit-filters {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    border: 1px solid var(--lit-stone);
    box-shadow: var(--lit-shadow);
    padding: 20px;
}

.lit-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--lit-stone);
}

.lit-filters-title {
    font-family: var(--lit-font-heading);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--lit-charcoal);
}

.lit-filters-reset {
    font-size: 12px;
    cursor: pointer;
}

.lit-filter-group {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--lit-cream);
}

.lit-filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.lit-filter-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--lit-charcoal);
    margin: 0 0 12px 0;
}

.lit-filter-item {
    margin-bottom: 14px;
}

.lit-filter-item:last-child {
    margin-bottom: 0;
}

.lit-filter-sublabel {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--lit-grey);
    margin-bottom: 6px;
}

/* FacetWP dropdown overrides */
.lit-filters .facetwp-dropdown {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--lit-stone);
    border-radius: var(--lit-radius-sm);
    font-size: 14px;
    font-family: var(--lit-font-body);
    color: var(--lit-charcoal);
    background: var(--lit-white);
    cursor: pointer;
    transition: border-color 0.2s;
}

.lit-filters .facetwp-dropdown:focus {
    outline: none;
    border-color: var(--lit-blue);
    box-shadow: 0 0 0 3px rgba(27, 73, 101, 0.1);
}

/* FacetWP slider overrides */
.lit-filters .facetwp-slider-wrap {
    padding: 4px 4px 0;
}

.lit-filters .facetwp-slider .noUi-connect {
    background: var(--lit-blue);
}

.lit-filters .facetwp-slider .noUi-handle {
    border-color: var(--lit-blue);
    box-shadow: var(--lit-shadow);
}

.lit-filters .facetwp-slider-reset {
    font-size: 12px;
    color: var(--lit-grey);
    margin-top: 6px;
    cursor: pointer;
}

/* FacetWP checkbox overrides */
.lit-filters .facetwp-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--lit-charcoal);
    cursor: pointer;
    transition: color 0.2s;
}

.lit-filters .facetwp-checkbox:hover {
    color: var(--lit-blue);
}

.lit-filters .facetwp-checkbox.checked {
    color: var(--lit-blue);
    font-weight: 600;
}

.lit-filters .facetwp-counter {
    display: none !important;
}

/* Hide counts in dropdown options text */
.lit-filters .facetwp-dropdown option {
    /* FacetWP appends (123) — hide via JS below */
}

.lit-filters-apply {
    display: none; /* shown on mobile */
    margin-top: 16px;
}

.lit-filters-toggle {
    display: none; /* shown on mobile */
}

/* ---- Results Area ---- */
.lit-results {
    flex: 1;
    min-width: 0;
}

/* ---- Results Toolbar ---- */
.lit-results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 24px;
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    border: 1px solid var(--lit-stone);
    box-shadow: var(--lit-shadow);
}

/* Shared label above each control */
.lit-toolbar-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--lit-grey);
    margin-bottom: 6px;
}

/* Results count */
.lit-results-meta {
    font-size: 14px;
    color: var(--lit-grey);
    font-weight: 500;
}

.lit-results-meta .facetwp-counts {
    font-size: 15px;
    color: var(--lit-charcoal);
    font-weight: 700;
}

/* Controls row */
.lit-results-controls {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

/* View wrap */
.lit-view-wrap {
    display: flex;
    flex-direction: column;
}

/* Sort dropdown — targets all FacetWP select variants */
.lit-sort-wrap {
    position: relative;
}

.lit-sort-wrap select,
.lit-sort-wrap .facetwp-sort-select,
.lit-sort-wrap .facetwp-type-sort select,
.facetwp-facet-town_sort select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 9px 36px 9px 14px;
    border: 1.5px solid var(--lit-stone);
    border-radius: var(--lit-radius-sm);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--lit-font-body);
    color: var(--lit-charcoal);
    background-color: var(--lit-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 180px;
}

.lit-sort-wrap select:hover,
.lit-sort-wrap .facetwp-sort-select:hover,
.facetwp-facet-town_sort select:hover {
    border-color: var(--lit-blue-light);
}

.lit-sort-wrap select:focus,
.lit-sort-wrap .facetwp-sort-select:focus,
.facetwp-facet-town_sort select:focus {
    outline: none;
    border-color: var(--lit-blue);
    box-shadow: 0 0 0 3px rgba(27, 73, 101, 0.1);
}

/* Sort label prefix */
.lit-sort-wrap::before {
    content: '↕';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--lit-grey-light);
    pointer-events: none;
    display: none; /* enable if you want an icon outside the dropdown */
}

/* ---- View Toggle ---- */
.lit-view-toggle {
    display: flex;
    gap: 2px;
    background: var(--lit-cream);
    border: 1.5px solid var(--lit-stone);
    border-radius: var(--lit-radius-sm);
    padding: 3px;
}

.lit-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--lit-grey);
    cursor: pointer;
    transition: all 0.2s;
}

.lit-view-btn:hover {
    color: var(--lit-charcoal);
    background: rgba(0,0,0,0.04);
}

.lit-view-btn-active {
    background: var(--lit-white);
    color: var(--lit-blue);
    box-shadow: var(--lit-shadow);
}

/* ---- Mobile Filters Button (in toolbar) ---- */
.lit-results-toolbar .lit-filters-toggle {
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--lit-stone);
    border-radius: var(--lit-radius-sm);
    background: var(--lit-white);
    color: var(--lit-charcoal);
    cursor: pointer;
    transition: all 0.2s;
}

.lit-results-toolbar .lit-filters-toggle:hover {
    border-color: var(--lit-blue);
    color: var(--lit-blue);
}

/* ---- Results Grid (Card Grid) ---- */
.lit-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ---- Town Cards (Explorer) ---- */
.lit-results-grid .lit-town-card {
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    padding: 0;
    border: 1px solid var(--lit-stone);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.lit-results-grid .lit-town-card:hover {
    box-shadow: var(--lit-shadow-lg);
    transform: translateY(-4px);
}

/* Accent colours */
.lit-results-grid .lit-accent-green:hover  { border-color: #10B981; }
.lit-results-grid .lit-accent-amber:hover  { border-color: #F59E0B; }
.lit-results-grid .lit-accent-red:hover    { border-color: #EF4444; }
.lit-results-grid .lit-accent-neutral:hover { border-color: var(--lit-blue); }

/* Top accent bar */
.lit-results-grid .lit-tc-accent {
    height: 4px;
    width: 100%;
}

.lit-results-grid .lit-accent-green .lit-tc-accent  { background: linear-gradient(90deg, #10B981, #34D399); }
.lit-results-grid .lit-accent-amber .lit-tc-accent  { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.lit-results-grid .lit-accent-red .lit-tc-accent    { background: linear-gradient(90deg, #EF4444, #F87171); }
.lit-results-grid .lit-accent-neutral .lit-tc-accent { background: linear-gradient(90deg, var(--lit-blue), var(--lit-blue-light)); }

/* Header */
.lit-results-grid .lit-tc-header {
    padding: 16px 16px 0;
}

.lit-results-grid .lit-tc-name-link {
    text-decoration: none;
    color: inherit;
}

.lit-results-grid .lit-tc-name {
    font-family: var(--lit-font-heading);
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--lit-charcoal);
    transition: color 0.2s;
}

.lit-results-grid .lit-tc-name-link:hover .lit-tc-name {
    color: var(--lit-blue);
}

.lit-results-grid .lit-tc-province {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--lit-grey);
    background: var(--lit-cream);
    padding: 2px 10px;
    border-radius: 10px;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Score badges */
.lit-results-grid .lit-tc-scores {
    display: flex;
    gap: 8px;
    padding: 12px 16px 0;
}

.lit-results-grid .lit-tc-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.lit-results-grid .lit-tc-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    width: 100%;
    box-sizing: border-box;
}

.lit-results-grid .lit-tc-score-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--lit-grey);
    margin-top: 3px;
}

/* Stat pills */
.lit-results-grid .lit-tc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
}

.lit-results-grid .lit-tc-pill {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--lit-charcoal);
    background: var(--lit-cream);
    padding: 4px 10px;
    border-radius: 16px;
    border: 1px solid var(--lit-stone);
}

/* Button */
.lit-results-grid .lit-btn {
    margin: auto 16px 16px;
    border-radius: var(--lit-radius-sm);
}

/* ---- No Results ---- */
.lit-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    border: 1px solid var(--lit-stone);
}

.lit-no-results h3 {
    font-family: var(--lit-font-heading);
    font-size: 22px;
    color: var(--lit-charcoal);
    margin: 0 0 8px 0;
}

.lit-no-results p {
    font-size: 15px;
    color: var(--lit-grey);
}

.lit-no-results a {
    color: var(--lit-blue);
    text-decoration: underline;
}

/* ---- Map View ---- */
.lit-results-map {
    border-radius: var(--lit-radius);
    overflow: hidden;
    border: 1px solid var(--lit-stone);
    box-shadow: var(--lit-shadow);
}

.lit-map-popup {
    font-family: var(--lit-font-body);
    font-size: 13px;
    line-height: 1.5;
}

.lit-map-popup strong {
    font-size: 14px;
    color: var(--lit-charcoal);
}

.lit-map-popup a {
    color: var(--lit-blue);
    font-weight: 600;
    text-decoration: none;
}

.lit-map-popup a:hover {
    text-decoration: underline;
}

/* ---- Pagination ---- */
.lit-results-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.lit-results-pagination .facetwp-pager {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lit-results-pagination .facetwp-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--lit-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--lit-charcoal);
    background: var(--lit-white);
    border: 1px solid var(--lit-stone);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.lit-results-pagination .facetwp-page:hover {
    background: var(--lit-cream);
    border-color: var(--lit-blue);
    color: var(--lit-blue);
}

.lit-results-pagination .facetwp-page.active {
    background: var(--lit-blue);
    border-color: var(--lit-blue);
    color: var(--lit-white);
}

.lit-results-pagination .facetwp-page.dots {
    border: none;
    background: transparent;
    cursor: default;
    color: var(--lit-grey-light);
}

/* ============================================
   Responsive — Explorer
   ============================================ */
@media (max-width: 1024px) {
    .lit-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lit-explorer-title {
        font-size: 28px;
    }

    .lit-explorer-body {
        flex-direction: column;
    }

    /* Sidebar becomes off-canvas overlay on mobile */
    .lit-filters {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        max-height: 100vh;
        z-index: 9999;
        border-radius: 0;
        border: none;
        box-shadow: var(--lit-shadow-lg);
        transition: left 0.3s ease;
        padding: 20px 20px 100px;
    }

    .lit-filters.lit-filters-open {
        left: 0;
    }

    .lit-filters-toggle {
        display: inline-flex;
    }

    .lit-filters-apply {
        display: block;
    }

    .lit-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #lit-leaflet-map {
        height: 400px !important;
    }
}

@media (max-width: 480px) {
    .lit-results-grid {
        grid-template-columns: 1fr;
    }

    .lit-results-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .lit-results-controls {
        justify-content: space-between;
    }
}


/* ============================================
   Compare Towns — Styles
   Append to living-in-italy.css or enqueue separately
   ============================================ */

/* ---- Header ---- */
.lit-compare-header {
    background: linear-gradient(135deg, var(--lit-blue) 0%, var(--lit-blue-light) 100%);
    padding: 48px 0 40px;
    text-align: center;
}

.lit-compare-title {
    font-family: var(--lit-font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--lit-white);
    margin: 0 0 8px 0;
}

.lit-compare-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* ---- Body ---- */
.lit-compare-body {
    padding-top: 32px;
    padding-bottom: 60px;
}

/* ---- Town Selectors Row ---- */
.lit-compare-selectors {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.lit-selector {
    flex: 1;
    position: relative;
}

.lit-selector-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--lit-charcoal);
    margin-bottom: 8px;
}

.lit-optional-tag {
    font-weight: 400;
    text-transform: none;
    font-size: 12px;
    color: var(--lit-grey-light);
}

.lit-selector-input-wrap {
    position: relative;
}

.lit-selector-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--lit-stone);
    border-radius: var(--lit-radius-sm);
    font-size: 15px;
    font-family: var(--lit-font-body);
    color: var(--lit-charcoal);
    background: var(--lit-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.lit-selector-input:focus {
    outline: none;
    border-color: var(--lit-blue);
    box-shadow: 0 0 0 3px rgba(27, 73, 101, 0.12);
}

.lit-selector-input[readonly] {
    background: var(--lit-cream);
    border-color: var(--lit-blue);
    color: var(--lit-blue);
    font-weight: 600;
}

.lit-selector-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--lit-stone);
    color: var(--lit-grey);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.lit-selector-clear:hover {
    background: var(--lit-red);
    color: var(--lit-white);
}

/* VS divider */
.lit-selector-vs {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 28px;
    font-weight: 800;
    font-size: 16px;
    color: var(--lit-grey-light);
    letter-spacing: 1px;
}

/* ---- Dropdown ---- */
.lit-selector-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--lit-white);
    border: 1px solid var(--lit-stone);
    border-radius: var(--lit-radius-sm);
    box-shadow: var(--lit-shadow-lg);
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
}

.lit-dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.lit-dropdown-item:hover,
.lit-dropdown-item-active {
    background: var(--lit-cream);
}

.lit-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--lit-charcoal);
}

.lit-dropdown-meta {
    font-size: 12px;
    color: var(--lit-grey);
    margin-top: 2px;
}

.lit-dropdown-empty {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--lit-grey);
}

/* Selected badge */
.lit-selector-selected {
    margin-top: 6px;
    min-height: 24px;
}

.lit-selected-badge {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(27, 73, 101, 0.08);
    color: var(--lit-blue);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

/* ---- Share ---- */
.lit-compare-share {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.lit-share-copied {
    font-size: 13px;
    color: var(--lit-green);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.lit-share-copied-show {
    opacity: 1;
}

/* ---- Map ---- */
.lit-compare-map-wrap {
    margin-bottom: 24px;
    border-radius: var(--lit-radius);
    overflow: hidden;
    border: 1px solid var(--lit-stone);
    box-shadow: var(--lit-shadow);
}

.lit-map-marker {
    background: none !important;
    border: none !important;
}

/* ---- Comparison Table ---- */
.lit-compare-table-wrap {
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    border: 1px solid var(--lit-stone);
    box-shadow: var(--lit-shadow);
    overflow-x: auto;
}

.lit-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lit-compare-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--lit-charcoal);
    background: var(--lit-cream);
    border-bottom: 2px solid var(--lit-stone);
    position: sticky;
    top: 0;
    z-index: 2;
}

.lit-compare-table thead th a {
    color: var(--lit-blue);
    text-decoration: none;
    font-family: var(--lit-font-heading);
    font-size: 17px;
}

.lit-compare-table thead th a:hover {
    text-decoration: underline;
}

.lit-ct-town-loc {
    font-size: 12px;
    font-weight: 400;
    color: var(--lit-grey);
    margin-top: 2px;
}

.lit-ct-metric {
    width: 200px;
    min-width: 180px;
}

.lit-compare-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--lit-cream);
    vertical-align: middle;
}

.lit-compare-table tbody tr:hover {
    background: rgba(27, 73, 101, 0.02);
}

.lit-ct-metric-cell {
    font-weight: 600;
    color: var(--lit-charcoal);
    white-space: nowrap;
}

/* ---- Colour Coding ---- */
.lit-ct-val {
    font-weight: 600;
    text-align: center;
    border-left: 1px solid var(--lit-cream);
}

.lit-ct-best {
    background: #D1FAE5;
    color: #065F46;
}

.lit-ct-mid {
    background: #FEF3C7;
    color: #92400E;
}

.lit-ct-worst {
    background: #FEE2E2;
    color: #991B1B;
}

.lit-ct-neutral {
    background: transparent;
    color: var(--lit-charcoal);
}

.lit-ct-na {
    color: var(--lit-grey-light);
    font-weight: 400;
}

.lit-ct-yes {
    color: #065F46;
}

.lit-ct-no {
    color: #991B1B;
}

/* ---- Empty State ---- */
.lit-compare-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    border: 2px dashed var(--lit-stone);
}

.lit-compare-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.lit-compare-empty h3 {
    font-family: var(--lit-font-heading);
    font-size: 22px;
    color: var(--lit-charcoal);
    margin: 0 0 8px 0;
}

.lit-compare-empty p {
    font-size: 15px;
    color: var(--lit-grey);
    margin: 0;
}

/* ============================================
   Responsive — Compare
   ============================================ */
@media (max-width: 768px) {
    .lit-compare-title {
        font-size: 28px;
    }

    .lit-compare-selectors {
        flex-direction: column;
        gap: 12px;
    }

    .lit-selector-vs {
        padding-top: 0;
        justify-content: center;
    }

    .lit-selector-vs-optional {
        display: none;
    }

    .lit-compare-table thead th,
    .lit-compare-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .lit-ct-metric {
        min-width: 140px;
    }

    .lit-compare-table thead th a {
        font-size: 14px;
    }

    #lit-compare-map {
        height: 220px !important;
    }
}

@media (max-width: 480px) {
    .lit-compare-table-wrap {
        margin: 0 -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .lit-compare-table thead th,
    .lit-compare-table tbody td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* ============================================
   Homepage — Styles
   Append to living-in-italy.css or enqueue separately
   ============================================ */

/* ---- Shared Section Styles ---- */
.lit-section-title {
    font-family: var(--lit-font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--lit-charcoal);
    text-align: center;
    margin: 0 0 8px 0;
}

.lit-section-subtitle {
    font-size: 16px;
    color: var(--lit-grey);
    text-align: center;
    margin: 0 0 36px 0;
}

.lit-section-eyebrow {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lit-grey);
    text-align: center;
    margin: 0 0 20px 0;
}

/* ============================================
   HERO
   ============================================ */
.lit-hero {
    position: relative;
    background: var(--lit-blue);
    /* Replace with a real hero image later */
    background-image: linear-gradient(135deg, #1B4965 0%, #0D2B3E 40%, #1B4965 100%);
    background-size: cover;
    background-position: center;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

.lit-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(27,73,101,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.lit-hero-inner {
    position: relative;
    z-index: 1;
}

.lit-hero-title {
    font-family: var(--lit-font-heading);
    font-size: 52px;
    font-weight: 700;
    color: var(--lit-white);
    margin: 0 0 16px 0;
    line-height: 1.15;
}

.lit-hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* ---- Hero Search ---- */
.lit-hero-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.lit-hero-search-form {
    display: block;
}

.lit-hero-search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--lit-white);
    border-radius: 60px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.lit-hero-search-icon {
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.lit-hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: var(--lit-font-body);
    color: var(--lit-charcoal);
    background: transparent;
    padding: 10px 0;
    min-width: 0;
}

.lit-hero-search-input::placeholder {
    color: var(--lit-grey-light);
}

.lit-hero-search-btn {
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 15px;
    flex-shrink: 0;
}

/* ---- Hero Dropdown ---- */
.lit-hero-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    max-height: 360px;
    overflow-y: auto;
}

.lit-hero-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--lit-charcoal);
    transition: background 0.15s;
}

.lit-hero-dropdown-item:hover,
.lit-hero-dropdown-item-active {
    background: var(--lit-cream);
}

.lit-hero-dropdown-name {
    font-weight: 600;
    font-size: 15px;
}

.lit-hero-dropdown-loc {
    font-size: 13px;
    color: var(--lit-grey);
}

.lit-hero-dropdown-empty {
    padding: 20px;
    text-align: center;
    color: var(--lit-grey);
    font-size: 14px;
}

.lit-hero-or {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 20px 0 0;
}

/* ============================================
   QUICK FILTERS
   ============================================ */
.lit-quickfilters {
    padding: 56px 0 48px;
    background: var(--lit-white);
}

.lit-quickfilters-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.lit-quickfilter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 12px;
    background: var(--lit-cream);
    border: 1px solid var(--lit-stone);
    border-radius: var(--lit-radius);
    text-decoration: none;
    color: var(--lit-charcoal);
    transition: all 0.25s;
}

.lit-quickfilter-card:hover {
    border-color: var(--lit-blue);
    background: var(--lit-white);
    box-shadow: var(--lit-shadow-md);
    transform: translateY(-3px);
}

.lit-quickfilter-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.lit-quickfilter-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.lit-quickfilter-desc {
    font-size: 12px;
    color: var(--lit-grey);
    line-height: 1.4;
}

/* ============================================
   STATS BAR
   ============================================ */
.lit-statsbar {
    background: var(--lit-blue);
    padding: 36px 0;
}

.lit-statsbar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.lit-stat {
    text-align: center;
}

.lit-stat-number {
    display: block;
    font-family: var(--lit-font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--lit-white);
}

.lit-stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.lit-stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.2);
}

/* ============================================
   FEATURED REGIONS
   ============================================ */
.lit-featured-regions {
    padding: 64px 0 56px;
    background: var(--lit-cream);
}

/* Region image cards (duplicated from regions.css for homepage independence) */
.lit-region-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.lit-rcard {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.lit-rcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.lit-rcard-img {
    position: relative;
    height: 180px;
    background-color: var(--lit-blue);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.lit-rcard-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.08) 100%
    );
    border-radius: 16px;
}

.lit-rcard-content {
    position: relative;
    z-index: 1;
    padding: 14px 16px;
}

.lit-rcard-name {
    font-family: var(--lit-font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--lit-white);
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.lit-rcard-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
}

.lit-rcard-stat {
    display: flex;
    flex-direction: column;
}

.lit-rcard-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    line-height: 1.3;
}

.lit-rcard-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--lit-white);
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .lit-region-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .lit-region-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lit-region-cards-grid {
        grid-template-columns: 1fr;
    }
}

.lit-regions-cta {
    text-align: center;
    margin-top: 28px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.lit-howitworks {
    padding: 64px 0;
    background: var(--lit-white);
}

.lit-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.lit-step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
    position: relative;
}

.lit-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lit-blue);
    color: var(--lit-white);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 12px;
}

.lit-step-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.lit-step-title {
    font-family: var(--lit-font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--lit-charcoal);
    margin: 0 0 8px 0;
}

.lit-step-desc {
    font-size: 14px;
    color: var(--lit-grey);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.lit-step-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--lit-blue);
    text-decoration: none;
}

.lit-step-link:hover {
    text-decoration: underline;
}

.lit-step-connector {
    display: flex;
    align-items: center;
    padding-top: 64px;
    flex-shrink: 0;
}

/* ============================================
   LATEST POSTS / GUIDES
   ============================================ */
.lit-latest-posts {
    padding: 64px 0;
    background: var(--lit-cream);
}

.lit-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lit-post-card {
    display: flex;
    flex-direction: column;
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    border: 1px solid var(--lit-stone);
    overflow: hidden;
    text-decoration: none;
    color: var(--lit-charcoal);
    transition: box-shadow 0.25s, transform 0.25s;
}

.lit-post-card:hover {
    box-shadow: var(--lit-shadow-md);
    transform: translateY(-3px);
}

.lit-post-card-img {
    height: 180px;
    overflow: hidden;
    background: var(--lit-stone);
}

.lit-post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.lit-post-card:hover .lit-post-card-img img {
    transform: scale(1.05);
}

.lit-post-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: var(--lit-cream);
}

.lit-post-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lit-post-card-date {
    font-size: 12px;
    color: var(--lit-grey-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.lit-post-card-title {
    font-family: var(--lit-font-heading);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: var(--lit-charcoal);
}

.lit-post-card-excerpt {
    font-size: 14px;
    color: var(--lit-grey);
    line-height: 1.6;
    flex: 1;
    margin: 0 0 12px 0;
}

.lit-post-card-readmore {
    font-size: 14px;
    font-weight: 600;
    color: var(--lit-blue);
}

.lit-post-card:hover .lit-post-card-readmore {
    text-decoration: underline;
}

.lit-posts-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    border: 2px dashed var(--lit-stone);
    color: var(--lit-grey);
    font-size: 15px;
}

.lit-posts-cta {
    text-align: center;
    margin-top: 28px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.lit-newsletter {
    padding: 64px 0;
    background: var(--lit-white);
}

.lit-newsletter-card {
    display: flex;
    align-items: center;
    gap: 48px;
    background: linear-gradient(135deg, var(--lit-blue) 0%, var(--lit-blue-light) 100%);
    border-radius: var(--lit-radius);
    padding: 48px 56px;
}

.lit-newsletter-content {
    flex: 1;
}

.lit-newsletter-title {
    font-family: var(--lit-font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--lit-white);
    margin: 0 0 8px 0;
}

.lit-newsletter-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin: 0;
    line-height: 1.6;
}

.lit-newsletter-form-wrap {
    flex: 1;
    max-width: 420px;
}

.lit-newsletter-input-group {
    display: flex;
    gap: 8px;
}

.lit-newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--lit-radius-sm);
    font-size: 15px;
    font-family: var(--lit-font-body);
    color: var(--lit-white);
    background: rgba(255,255,255,0.1);
    transition: border-color 0.2s;
    min-width: 0;
}

.lit-newsletter-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.lit-newsletter-input:focus {
    outline: none;
    border-color: var(--lit-white);
    background: rgba(255,255,255,0.15);
}

.lit-newsletter-btn {
    flex-shrink: 0;
    background: var(--lit-terracotta);
    border-color: var(--lit-terracotta);
    padding: 14px 24px;
}

.lit-newsletter-btn:hover {
    background: var(--lit-terracotta-light);
}

.lit-newsletter-note {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 10px 0 0 0;
}

.lit-newsletter-success p {
    color: var(--lit-white);
    font-size: 16px;
    margin: 0;
}

/* ============================================
   Responsive — Homepage
   ============================================ */
@media (max-width: 1024px) {
    .lit-quickfilters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .lit-hero {
        padding: 60px 0 50px;
    }

    .lit-hero-title {
        font-size: 36px;
    }

    .lit-hero-subtitle {
        font-size: 16px;
    }

    .lit-hero-search-input-wrap {
        flex-direction: column;
        border-radius: var(--lit-radius);
        padding: 12px;
        gap: 8px;
    }

    .lit-hero-search-icon {
        display: none;
    }

    .lit-hero-search-input {
        width: 100%;
        padding: 12px;
        text-align: center;
    }

    .lit-hero-search-btn {
        width: 100%;
        border-radius: var(--lit-radius-sm);
    }

    .lit-quickfilters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lit-statsbar-inner {
        flex-wrap: wrap;
        gap: 24px 32px;
    }

    .lit-stat-divider {
        display: none;
    }

    .lit-stat-number {
        font-size: 28px;
    }

    .lit-steps {
        flex-direction: column;
        gap: 24px;
    }

    .lit-step-connector {
        display: none;
    }

    .lit-posts-grid {
        grid-template-columns: 1fr;
    }

    .lit-newsletter-card {
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        text-align: center;
    }

    .lit-newsletter-form-wrap {
        max-width: 100%;
        width: 100%;
    }

    .lit-newsletter-input-group {
        flex-direction: column;
    }

    .lit-section-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .lit-hero-title {
        font-size: 28px;
    }

    .lit-quickfilters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .lit-quickfilter-card {
        padding: 16px 8px;
    }

    .lit-quickfilter-icon {
        font-size: 24px;
    }

    .lit-quickfilter-desc {
        display: none;
    }
}

/* ============================================
   Location Taxonomy Archives — Styles
   (Geographic Region / Region / Province pages)
   Append to living-in-italy.css or enqueue separately
   ============================================ */

/* ---- Breadcrumbs ---- */
.lit-location-breadcrumbs-bar {
    background: var(--lit-white);
    border-bottom: 1px solid var(--lit-stone);
    padding: 12px 0;
}

.lit-breadcrumbs {
    font-size: 13px;
    color: var(--lit-grey);
}

.lit-breadcrumbs a {
    color: var(--lit-grey);
    text-decoration: none;
    transition: color 0.2s;
}

.lit-breadcrumbs a:hover {
    color: var(--lit-blue);
}

.lit-bc-sep {
    margin: 0 8px;
    color: var(--lit-grey-light);
}

.lit-bc-current {
    color: var(--lit-charcoal);
    font-weight: 600;
}

/* ---- Header ---- */
.lit-location-header {
    background: linear-gradient(135deg, var(--lit-blue) 0%, var(--lit-blue-light) 100%);
    padding: 48px 0 40px;
    text-align: center;
}

.lit-location-type-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
    text-decoration: none;
}

.lit-location-type-badge-link:hover {
    background: rgba(255,255,255,0.25);
}

.lit-location-header-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.lit-location-title {
    font-family: var(--lit-font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--lit-white);
    margin: 0 0 8px 0;
}

.lit-location-meta {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.lit-location-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 12px auto 0;
    line-height: 1.6;
}

/* ---- Content ---- */
.lit-location-content {
    padding: 32px 0 60px;
}

.lit-location-section-title {
    font-family: var(--lit-font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--lit-charcoal);
    margin: 36px 0 8px 0;
}

.lit-location-section-subtitle {
    font-size: 14px;
    color: var(--lit-grey);
    margin: 0 0 20px 0;
}

.lit-location-section-subtitle a {
    color: var(--lit-blue);
    text-decoration: none;
    font-weight: 600;
}

.lit-location-section-subtitle a:hover {
    text-decoration: underline;
}

/* ---- Overview Row (Region page) ---- */
.lit-location-overview {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.lit-location-overview-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lit-location-overview-map {
    width: 380px;
    flex-shrink: 0;
}

.lit-location-summary-text {
    font-size: 15px;
    color: var(--lit-charcoal);
    line-height: 1.7;
}

.lit-location-summary-text p {
    margin: 0 0 12px 0;
}

.lit-location-summary-text p:last-child {
    margin-bottom: 0;
}

/* ---- Stats Grid (old — kept for province page) ---- */
.lit-location-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.lit-location-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
    flex: 1;
}

.lit-location-stat-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.lit-location-stat-value {
    font-family: var(--lit-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--lit-charcoal);
}

.lit-location-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--lit-grey);
    margin-top: 2px;
}

/* ---- Stat Cards (region page — punchy individual cards) ---- */
.lit-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.lit-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--lit-white);
    border: 1px solid var(--lit-stone);
    border-radius: var(--lit-radius);
    padding: 16px 18px;
    box-shadow: var(--lit-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.lit-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lit-shadow-md);
}

.lit-stat-card-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lit-cream);
    border-radius: var(--lit-radius-sm);
    flex-shrink: 0;
}

.lit-stat-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lit-stat-card-value {
    font-family: var(--lit-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--lit-charcoal);
    line-height: 1.2;
}

.lit-stat-card-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--lit-grey);
    margin-top: 2px;
}

/* ---- Regions List Grid (Geo Region page) ---- */
.lit-regions-list-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.lit-region-list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--lit-white);
    border: 1px solid var(--lit-stone);
    border-radius: var(--lit-radius);
    padding: 20px 24px;
    text-decoration: none;
    color: var(--lit-charcoal);
    transition: all 0.25s;
}

.lit-region-list-card:hover {
    border-color: var(--lit-blue);
    box-shadow: var(--lit-shadow-md);
    transform: translateX(4px);
}

.lit-region-list-card-body {
    flex: 1;
    min-width: 0;
}

.lit-region-list-name {
    font-family: var(--lit-font-heading);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--lit-charcoal);
}

.lit-region-list-card:hover .lit-region-list-name {
    color: var(--lit-blue);
}

.lit-region-list-summary {
    font-size: 14px;
    color: var(--lit-grey);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.lit-region-list-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--lit-grey);
}

.lit-region-list-arrow {
    font-size: 24px;
    color: var(--lit-grey-light);
    flex-shrink: 0;
    margin-left: 16px;
    transition: color 0.2s;
}

.lit-region-list-card:hover .lit-region-list-arrow {
    color: var(--lit-blue);
}

/* ---- Provinces Grid (Region page) ---- */
.lit-provinces-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.lit-province-card {
    display: flex;
    flex-direction: column;
    background: var(--lit-white);
    border: 1px solid var(--lit-stone);
    border-radius: var(--lit-radius);
    padding: 20px;
    text-decoration: none;
    color: var(--lit-charcoal);
    transition: all 0.25s;
}

.lit-province-card:hover {
    border-color: var(--lit-blue);
    box-shadow: var(--lit-shadow-md);
    transform: translateY(-2px);
}

.lit-province-card-name {
    font-family: var(--lit-font-heading);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--lit-charcoal);
}

.lit-province-card:hover .lit-province-card-name {
    color: var(--lit-blue);
}

.lit-province-card-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--lit-grey);
    flex: 1;
    margin-bottom: 12px;
}

.lit-province-card-arrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--lit-blue);
}

/* ---- Towns Grid (shared by region + province) ---- */
.lit-location-towns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* ============================================
   Redesigned Town Card
   ============================================ */
.lit-location-towns-grid .lit-town-card {
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    padding: 0;
    border: 1px solid var(--lit-stone);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.lit-location-towns-grid .lit-town-card:hover {
    box-shadow: var(--lit-shadow-lg);
    transform: translateY(-4px);
}

/* Accent colours */
.lit-accent-green:hover  { border-color: #10B981; }
.lit-accent-amber:hover  { border-color: #F59E0B; }
.lit-accent-red:hover    { border-color: #EF4444; }
.lit-accent-neutral:hover { border-color: var(--lit-blue); }

/* Top accent bar */
.lit-tc-accent {
    height: 4px;
    width: 100%;
}

.lit-accent-green .lit-tc-accent  { background: linear-gradient(90deg, #10B981, #34D399); }
.lit-accent-amber .lit-tc-accent  { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.lit-accent-red .lit-tc-accent    { background: linear-gradient(90deg, #EF4444, #F87171); }
.lit-accent-neutral .lit-tc-accent { background: linear-gradient(90deg, var(--lit-blue), var(--lit-blue-light)); }

/* Card inner content */
.lit-tc-header {
    padding: 16px 16px 0;
}

.lit-tc-name-link {
    text-decoration: none;
    color: inherit;
}

.lit-tc-name {
    font-family: var(--lit-font-heading);
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--lit-charcoal);
    transition: color 0.2s;
}

.lit-tc-name-link:hover .lit-tc-name {
    color: var(--lit-blue);
}

.lit-tc-province {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--lit-grey);
    background: var(--lit-cream);
    padding: 2px 10px;
    border-radius: 10px;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Score badges row */
.lit-tc-scores {
    display: flex;
    gap: 8px;
    padding: 12px 16px 0;
}

.lit-tc-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.lit-tc-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    width: 100%;
    box-sizing: border-box;
}

.lit-tc-score-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--lit-grey);
    margin-top: 3px;
}

/* Quick stats pills */
.lit-tc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
}

.lit-tc-pill {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--lit-charcoal);
    background: var(--lit-cream);
    padding: 4px 10px;
    border-radius: 16px;
    border: 1px solid var(--lit-stone);
}

/* Button */
.lit-location-towns-grid .lit-btn {
    margin: auto 16px 16px;
    border-radius: var(--lit-radius-sm);
}

/* ---- Empty State ---- */
.lit-location-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--lit-grey);
    font-size: 15px;
}

/* ---- CTA ---- */
.lit-location-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 32px 0 12px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .lit-location-towns-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .lit-location-title {
        font-size: 32px;
    }

    .lit-location-overview {
        flex-direction: column;
    }

    .lit-location-overview-map {
        width: 100%;
    }

    .lit-provinces-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lit-location-towns-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lit-location-stats-grid {
        gap: 12px;
    }

    .lit-location-stat-item {
        min-width: 80px;
    }

    .lit-location-stat-value {
        font-size: 18px;
    }

    .lit-region-list-stats {
        flex-wrap: wrap;
        gap: 8px;
    }

    .lit-location-cta {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .lit-location-title {
        font-size: 26px;
    }

    .lit-provinces-grid {
        grid-template-columns: 1fr;
    }

    .lit-location-towns-grid {
        grid-template-columns: 1fr;
    }

    .lit-region-list-card {
        padding: 16px;
    }

    .lit-region-list-summary {
        display: none;
    }
}

/* ============================================
   Regions Overview Page — Styles
   Matching the image-card layout grouped by geo region
   ============================================ */

/* ---- Page Header ---- */
.lit-regions-page-header {
    background: linear-gradient(135deg, var(--lit-blue) 0%, var(--lit-blue-light) 100%);
    padding: 48px 0 40px;
    text-align: center;
}

.lit-regions-page-title {
    font-family: var(--lit-font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--lit-white);
    margin: 0 0 8px 0;
}

.lit-regions-page-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Body ---- */
.lit-regions-page-body {
    padding: 36px 0 64px;
}

/* ---- Geographic Region Group ---- */
.lit-geo-group {
    margin-bottom: 40px;
}

.lit-geo-group:last-child {
    margin-bottom: 0;
}

.lit-geo-group-title {
    font-family: var(--lit-font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--lit-charcoal);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lit-geo-group-icon {
    font-size: 20px;
}

/* ---- Region Cards Grid ---- */
.lit-region-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* ---- Individual Region Card ---- */
.lit-rcard {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.lit-rcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.lit-rcard-img {
    position: relative;
    height: 180px;
    background-color: var(--lit-blue);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.lit-rcard-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.08) 100%
    );
    border-radius: 16px;
}

.lit-rcard-content {
    position: relative;
    z-index: 1;
    padding: 14px 16px;
}

/* Geo icon badge (top-left) */
.lit-rcard-geo-icon {
    position: absolute;
    top: -110px;
    left: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    font-size: 14px;
}

/* Region name */
.lit-rcard-name {
    font-family: var(--lit-font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--lit-white);
    margin: 0 0 6px 0;
    line-height: 1.2;
}

/* Stats row */
.lit-rcard-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
}

.lit-rcard-stat {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lit-rcard-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    line-height: 1.3;
}

.lit-rcard-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--lit-white);
    line-height: 1.3;
}

/* ---- Province Cards (crest/coat of arms style) ---- */
.lit-pcard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.lit-pcard {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: var(--lit-radius);
    overflow: hidden;
    background: var(--lit-white);
    border: 1px solid var(--lit-stone);
    transition: transform 0.25s, box-shadow 0.25s;
}

.lit-pcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--lit-shadow-lg);
    border-color: var(--lit-blue);
}

.lit-pcard-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 12px;
    background: var(--lit-cream);
    min-height: 120px;
}

/* Hide overlay — not needed for crest style */
.lit-pcard-overlay {
    display: none;
}

/* Crest image — contained, not cropped */
.lit-pcard-img img,
.lit-pcard-crest {
    max-height: 110px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Placeholder when no image */
.lit-pcard-placeholder {
    font-size: 48px;
    opacity: 0.4;
}

.lit-pcard-content {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lit-pcard-name {
    font-family: var(--lit-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--lit-charcoal);
    margin: 0 0 8px 0;
    text-align: center;
}

.lit-pcard:hover .lit-pcard-name {
    color: var(--lit-blue);
}

.lit-pcard-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.lit-pcard-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.lit-pcard-stat-label {
    color: var(--lit-grey);
    font-weight: 400;
}

.lit-pcard-stat-value {
    font-weight: 700;
    color: var(--lit-charcoal);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .lit-region-cards-grid,
    .lit-pcard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .lit-regions-page-title {
        font-size: 28px;
    }

    .lit-region-cards-grid,
    .lit-pcard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lit-rcard-img {
        height: 160px;
    }

    .lit-pcard-img {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .lit-region-cards-grid,
    .lit-pcard-grid {
        grid-template-columns: 1fr;
    }

    .lit-rcard-img {
        height: 180px;
    }

    .lit-geo-group-title {
        font-size: 18px;
    }
}


/* ============================================
   Living in Italy — Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --lit-blue: #1B4965;
    --lit-blue-light: #2A6F97;
    --lit-terracotta: #C4754B;
    --lit-terracotta-light: #D4956B;
    --lit-olive: #5B7553;
    --lit-gold: #D4A853;
    --lit-cream: #F8F9FB;
    --lit-stone: #E5E7EB;
    --lit-charcoal: #1F2937;
    --lit-grey: #6B7280;
    --lit-grey-light: #9CA3AF;
    --lit-white: #FFFFFF;
    --lit-red: #EF4444;
    --lit-green: #10B981;
    --lit-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --lit-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --lit-shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --lit-radius: 12px;
    --lit-radius-sm: 8px;
    --lit-font-heading: 'Playfair Display', Georgia, serif;
    --lit-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--lit-cream);
    color: var(--lit-charcoal);
    font-family: var(--lit-font-body);
    line-height: 1.6;
    font-size: 15px;
}

.lit-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Top Bar
   ============================================ */
.lit-topbar {
    background: var(--lit-white);
    border-bottom: 1px solid var(--lit-stone);
    padding: 12px 0;
}

.lit-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lit-topbar-back {
    font-size: 14px;
    color: var(--lit-charcoal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.lit-topbar-back:hover {
    color: var(--lit-blue);
}

.lit-topbar-tags {
    display: flex;
    gap: 8px;
}

.lit-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.lit-tag:hover { opacity: 0.85; }

.lit-tag-region {
    background: var(--lit-terracotta);
    color: var(--lit-white);
}

.lit-tag-geo {
    background: var(--lit-blue);
    color: var(--lit-white);
}

.lit-tag-small {
    padding: 2px 10px;
    font-size: 11px;
    background: var(--lit-stone);
    color: var(--lit-grey);
    border-radius: 12px;
}

/* ============================================
   Town Header
   ============================================ */
.lit-header {
    background: var(--lit-white);
    padding: 32px 0;
    border-bottom: 1px solid var(--lit-stone);
}

.lit-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lit-town-name {
    font-family: var(--lit-font-heading);
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--lit-charcoal);
}

.lit-town-location {
    font-size: 15px;
    color: var(--lit-grey);
    margin: 0;
}

.lit-header-right {
    text-align: right;
}

.lit-header-pop-value {
    display: block;
    font-family: var(--lit-font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--lit-blue);
}

.lit-header-pop-label {
    font-size: 13px;
    color: var(--lit-grey);
}

/* ============================================
   Content Area
   ============================================ */
.lit-content {
    padding: 24px 20px 40px;
}

/* ============================================
   Row & Card Layout
   ============================================ */
.lit-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.lit-card {
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    padding: 24px;
    box-shadow: var(--lit-shadow);
    border: 1px solid var(--lit-stone);
}

.lit-card-half {
    flex: 1;
    min-width: 0;
}

.lit-card-full {
    flex: 1 1 100%;
}

.lit-card-heading {
    font-family: var(--lit-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--lit-charcoal);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lit-stone);
}

.lit-card-subtitle {
    font-size: 14px;
    color: var(--lit-grey);
    margin: -8px 0 20px 0;
}

/* ============================================
   Detail Rows (Village Details card)
   ============================================ */
.lit-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lit-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lit-detail-icon {
    font-size: 18px;
    width: 24px;
    flex-shrink: 0;
    text-align: center;
    padding-top: 2px;
}

.lit-detail-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--lit-grey);
}

.lit-detail-value {
    display: block;
    font-size: 15px;
    color: var(--lit-charcoal);
    font-weight: 500;
}

.lit-detail-divider {
    height: 1px;
    background: var(--lit-stone);
    margin: 4px 0;
}

.lit-detail-meta {
    font-size: 13px;
    color: var(--lit-grey);
}

.lit-detail-meta strong {
    color: var(--lit-charcoal);
}

/* ============================================
   Map
   ============================================ */
.lit-map-embed {
    border-radius: var(--lit-radius-sm);
    overflow: hidden;
    margin-top: 4px;
}

.lit-map-embed iframe {
    display: block;
    border-radius: var(--lit-radius-sm);
}

/* ============================================
   Info Blocks
   ============================================ */
.lit-info-block {
    margin-bottom: 16px;
}

.lit-info-block strong {
    font-size: 14px;
    color: var(--lit-charcoal);
}

.lit-info-block p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: var(--lit-grey);
    line-height: 1.6;
}

/* ============================================
   Score Display (Walkability)
   ============================================ */
.lit-score-display {
    margin-bottom: 16px;
}

.lit-score-header {
    margin-bottom: 8px;
}

.lit-score-label {
    font-weight: 600;
    font-size: 15px;
}

.lit-score-bar {
    height: 8px;
    background: var(--lit-stone);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.lit-score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lit-terracotta), var(--lit-olive));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.lit-score-desc {
    font-size: 13px;
    color: var(--lit-grey);
    font-style: italic;
}

.lit-score-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.lit-score-good {
    background: #D1FAE5;
    color: #065F46;
}

.lit-score-mid {
    background: #FEF3C7;
    color: #92400E;
}

.lit-score-low {
    background: #FEE2E2;
    color: #991B1B;
}

/* Score levels (1-5 scale) */
.lit-score-5 { color: #065F46; } /* Exceptional - green */
.lit-score-4 { color: #1B4965; } /* Excellent - blue */
.lit-score-3 { color: #92400E; } /* Good - amber */
.lit-score-2 { color: #C4754B; } /* Fair - terracotta */
.lit-score-1 { color: #991B1B; } /* Challenging - red */

/* ============================================
   Climate Grid
   ============================================ */
.lit-climate-type {
    font-size: 18px;
    color: var(--lit-blue);
    margin: 0 0 12px 0;
}

.lit-climate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 20px 0;
}

.lit-climate-season h4 {
    font-family: var(--lit-font-heading);
    font-size: 16px;
    margin: 0 0 12px 0;
}

.lit-climate-season p {
    font-size: 14px;
    color: var(--lit-grey);
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.lit-text-positive { color: var(--lit-olive) !important; }
.lit-text-caution { color: var(--lit-terracotta) !important; }

.lit-highlight-box {
    background: #FEF3C7;
    border-left: 4px solid var(--lit-gold);
    padding: 12px 16px;
    border-radius: 0 var(--lit-radius-sm) var(--lit-radius-sm) 0;
    font-size: 14px;
    margin: 16px 0;
}

.lit-note {
    background: var(--lit-cream);
    padding: 12px 16px;
    border-radius: var(--lit-radius-sm);
    font-size: 14px;
    color: var(--lit-grey);
    margin: 12px 0 0 0;
}

/* ============================================
   Services Table
   ============================================ */
.lit-services-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lit-services-table thead th {
    text-align: left;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--lit-grey);
    border-bottom: 2px solid var(--lit-stone);
}

.lit-services-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--lit-cream);
    vertical-align: top;
}

.lit-services-table tbody tr:hover {
    background: var(--lit-cream);
}

.lit-service-icon {
    margin-right: 6px;
}

/* ============================================
   Similar Towns Grid
   ============================================ */
.lit-similar-section {
    background: var(--lit-cream);
    border: 2px solid var(--lit-stone);
}

.lit-town-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lit-town-card {
    background: var(--lit-white);
    border-radius: var(--lit-radius);
    padding: 20px;
    border: 1px solid var(--lit-stone);
    transition: box-shadow 0.2s;
}

.lit-town-card:hover {
    box-shadow: var(--lit-shadow-md);
}

.lit-town-card-name {
    font-family: var(--lit-font-heading);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.lit-town-card-location {
    font-size: 12px;
    color: var(--lit-grey);
    margin: 0 0 12px 0;
}

.lit-town-card-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 0;
    color: var(--lit-grey);
}

.lit-town-card-stat strong {
    color: var(--lit-charcoal);
}

/* ============================================
   Buttons
   ============================================ */
.lit-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--lit-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: none;
}

.lit-btn-primary {
    background: var(--lit-blue);
    color: var(--lit-white);
}

.lit-btn-primary:hover {
    background: var(--lit-blue-light);
    color: var(--lit-white);
}

.lit-btn-secondary {
    background: var(--lit-charcoal);
    color: var(--lit-white);
}

.lit-btn-secondary:hover {
    background: var(--lit-blue);
    color: var(--lit-white);
}

.lit-btn-outline {
    background: transparent;
    border: 1.5px solid var(--lit-stone);
    color: var(--lit-charcoal);
}

.lit-btn-outline:hover {
    border-color: var(--lit-blue);
    color: var(--lit-blue);
}

.lit-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.lit-btn-block {
    display: block;
    width: 100%;
    margin-top: 12px;
}

.lit-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* ============================================
   Bottom Bar
   ============================================ */
.lit-bottombar {
    background: var(--lit-white);
    border-top: 1px solid var(--lit-stone);
    padding: 16px 0;
    text-align: center;
}

.lit-bottombar-inner {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ============================================
   Hospital Details
   ============================================ */
.lit-hospital-details {
    padding-top: 8px;
}

.lit-hospital-details p {
    font-size: 14px;
    color: var(--lit-grey);
    margin: 4px 0;
}

.lit-hospital-details a {
    color: var(--lit-blue);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .lit-row {
        flex-direction: column;
    }
    
    .lit-town-name {
        font-size: 28px;
    }
    
    .lit-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .lit-header-right {
        text-align: left;
    }
    
    .lit-header-pop-value {
        font-size: 24px;
    }
    
    .lit-climate-grid {
        grid-template-columns: 1fr;
    }
    
    .lit-town-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .lit-services-table {
        font-size: 13px;
    }
    
    .lit-services-table thead th,
    .lit-services-table tbody td {
        padding: 10px 8px;
    }
    
    .lit-topbar-tags {
        display: none;
    }
}

@media (max-width: 480px) {
    .lit-town-name {
        font-size: 24px;
    }
    
    .lit-town-grid {
        grid-template-columns: 1fr;
    }
    
    .lit-card {
        padding: 16px;
    }
    
    .lit-services-table thead {
        display: none;
    }
    
    .lit-services-table tbody td {
        display: block;
        padding: 4px 8px;
    }
    
    .lit-services-table tbody td:first-child {
        padding-top: 12px;
        font-weight: 600;
    }
    
    .lit-services-table tbody td:last-child {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--lit-stone);
    }
}
