/*
 * About Hampton Roads - Custom Styles
 * Mobile-first responsive design
 */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2b6cb0;
    --accent-color: #ed8936;
    --text-dark: #1a202c;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ===== Base Styles ===== */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* ===== Navigation ===== */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.brand-about {
    font-style: italic;
    font-weight: 500;
}

.brand-hr {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.dropdown-item {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
}

.dropdown-header {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* ===== Buttons ===== */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}

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

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    opacity: 0.9;
    color: var(--accent-gold, #f0c14b);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 600px;
}

/* ===== City Cards ===== */
.city-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.city-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.city-card .card-body {
    padding: 1.25rem;
}

.city-card .card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.city-card .card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Section Headers ===== */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== City Detail Page ===== */
.city-hero {
    background-size: cover;
    background-position: center;
    min-height: 250px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.city-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.city-hero .container {
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
}

.city-hero h1 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== Venue Lists ===== */
.venue-section {
    margin-bottom: 2rem;
}

.venue-section h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    margin-bottom: 1rem;
}

.venue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.venue-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.venue-list li:last-child {
    border-bottom: none;
}

/* ===== Rich Venue Cards ===== */
.venue-card-rich {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.venue-card-rich:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.venue-card-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-light);
}

.venue-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.venue-card-rich:hover .venue-card-image img {
    transform: scale(1.05);
}

.venue-rating-overlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.venue-card-rich.has-photo .venue-card-header {
    padding-top: 0.75rem;
}

.venue-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1rem 0.5rem;
    gap: 0.5rem;
}

.venue-card-header .venue-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: var(--text-dark);
}

.venue-rating-badge {
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    min-width: 2.5rem;
    text-align: center;
}

.venue-rating-badge-sm {
    flex-shrink: 0;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
}

.venue-card-body {
    padding: 0 1rem 1rem;
    flex-grow: 1;
}

.venue-stars {
    font-size: 0.85rem;
}

.venue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.venue-price {
    font-weight: 700;
    color: #38a169;
}

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

.venue-open {
    font-size: 0.8rem;
    font-weight: 500;
}

.venue-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    display: flex;
    gap: 0.5rem;
}

/* Simple venue cards (attractions, events, beaches) */
.venue-card-simple {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.venue-card-simple:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.venue-card-simple h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.venue-card-beach {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-color: #80deea;
}

/* Mobile venue cards - Rich */
.venue-card-mobile {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.venue-card-mobile:last-child {
    margin-bottom: 0;
}

.venue-mobile-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
}

.venue-mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-open-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.venue-mobile-content {
    padding: 0.875rem;
}

.venue-mobile-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

.venue-mobile-meta {
    font-size: 0.8rem;
    line-height: 1.6;
}

.venue-price-mobile {
    font-weight: 700;
    color: #38a169;
    margin-left: 0.25rem;
}

.venue-mobile-address {
    margin-bottom: 0.5rem;
}

.venue-mobile-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.venue-mobile-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
}

/* Mobile venue cards - Simple (attractions, events, beaches) */
.venue-card-mobile-simple {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.venue-card-mobile-simple:last-child {
    margin-bottom: 0;
}

.venue-card-mobile-simple h6 {
    font-size: 0.95rem;
    font-weight: 600;
}

.venue-mobile-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    color: white;
}

.venue-mobile-icon i {
    font-size: 1rem;
}

.venue-card-mobile-beach {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-color: #80deea;
}

/* Keep old styles for backwards compatibility */
.venue-list-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.venue-meta-mobile {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.venue-meta-mobile span {
    margin-right: 0.5rem;
}

/* Accordion styling for venues */
.accordion-venue .accordion-button {
    font-weight: 600;
}

.accordion-venue .accordion-body {
    padding: 0;
}

/* Tab styling for venues */
.nav-tabs-venue {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs-venue .nav-link {
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}

.nav-tabs-venue .nav-link.active {
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    margin-bottom: -2px;
}

.nav-tabs-venue .nav-link:hover:not(.active) {
    color: var(--text-dark);
    border: none;
}

/* ===== Tabs (for city detail) ===== */
.nav-tabs .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    padding: 0.75rem 1rem;
}

.nav-tabs .nav-link.active {
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    background: transparent;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--secondary-color);
}

/* ===== Accordion (for mobile) ===== */
.accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-light);
    color: var(--secondary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

/* ===== Quick Links ===== */
.quick-link-card {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.quick-link-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.quick-link-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.quick-link-card h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.quick-link-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.testimonial-card .quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-card .client-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

.testimonial-card .stars {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* ===== Utility/Info Cards ===== */
.info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.info-card h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card .utilities-list li {
    padding: 0.75rem 0;
}

.info-card .utilities-list li strong {
    color: var(--primary-color);
}

/* ===== Region Badge ===== */
.region-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    color: var(--text-muted);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.region-badge.southside {
    background-color: #c6f6d5;
    color: #276749;
}

.region-badge.peninsula {
    background-color: #bee3f8;
    color: #2b6cb0;
}

/* ===== Footer ===== */
footer {
    background-color: var(--primary-color) !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

/* ===== Page Header ===== */
.page-header {
    background-color: var(--bg-light);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ===== Responsive Adjustments ===== */

/* Tablets and up */
@media (min-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .city-card .card-img-top {
        height: 200px;
    }

    .city-hero {
        min-height: 350px;
    }

    .page-header {
        padding: 4rem 0;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* Desktop and up */
@media (min-width: 992px) {
    .hero {
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .city-hero {
        min-height: 400px;
    }

    .city-hero h1 {
        font-size: 3rem;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* ===== Utility Classes ===== */
.text-primary-dark {
    color: var(--primary-color) !important;
}

.bg-light-custom {
    background-color: var(--bg-light) !important;
}

.shadow-soft {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.border-radius-lg {
    border-radius: 1rem;
}

/* ===== Animations & Transitions ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth image loading */
.city-card img,
.card-img-top {
    background-color: var(--bg-light);
    transition: opacity 0.3s ease;
}

/* Better link transitions */
a {
    transition: color 0.2s ease;
}

/* Card image hover zoom */
.city-card {
    overflow: hidden;
}

.city-card img {
    transition: transform 0.3s ease;
}

.city-card:hover img {
    transform: scale(1.05);
}

/* Quick link card icon animation */
.quick-link-card i {
    transition: transform 0.3s ease;
}

.quick-link-card:hover i {
    transform: scale(1.1);
}

/* Button hover effects */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Info card hover */
.info-card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== Image Placeholders ===== */
.img-placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Scroll behavior ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Weather Card ===== */
.weather-card {
    background: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%);
    border-radius: 12px;
    padding: 1.25rem;
    color: white;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-temp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-icon {
    font-size: 2.5rem;
}

.temp-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.weather-details {
    flex: 1;
}

.weather-desc {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.weather-feels {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.weather-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    opacity: 0.85;
}

.weather-forecast {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    flex: 1;
    text-align: center;
}

.forecast-date {
    font-weight: 600;
    opacity: 0.9;
}

.forecast-day i {
    font-size: 1.25rem;
}

.forecast-temps {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Weather card mobile adjustments */
@media (max-width: 576px) {
    .weather-card {
        padding: 1rem;
    }

    .weather-icon {
        font-size: 2rem;
    }

    .temp-value {
        font-size: 2rem;
    }

    .forecast-day {
        font-size: 0.7rem;
    }

    .forecast-day i {
        font-size: 1rem;
    }
}

/* ===== Hampton Roads Pulse ===== */
.pulse-widget {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.pulse-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.pulse-header h3 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Collapsible header styles */
.pulse-header-collapsible {
    cursor: pointer;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    transition: background-color 0.2s ease;
    border-radius: 8px 8px 0 0;
    margin: -1.5rem -1.5rem 0;
    padding: 1.5rem;
}

.pulse-header-collapsible:hover {
    background-color: var(--bg-light);
}

.pulse-header-collapsible h3 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.pulse-toggle {
    background: var(--bg-light);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.pulse-header-collapsible:hover .pulse-toggle {
    background: var(--secondary-color);
    color: white;
}

.pulse-chevron {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.pulse-preview {
    display: none;
    margin-top: 0.75rem;
}

.pulse-preview .badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pulse-content-wrapper {
    padding-top: 1.5rem;
}

/* Bottom expand/collapse button */
.pulse-bottom-toggle {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.pulse-expand-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 3rem;
    border-radius: 2rem;
    transition: all 0.2s ease;
    min-width: 180px;
}

.pulse-expand-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
}

.pulse-expand-btn:active {
    transform: translateY(0);
}

/* Extra items that hide when collapsed */
.pulse-item-extra {
    transition: opacity 0.2s ease;
}

.pulse-section {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.25rem;
    height: 100%;
}

.pulse-section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.pulse-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pulse-item {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pulse-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pulse-item:first-child {
    padding-top: 0;
}

.pulse-topic,
.pulse-headline {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.375rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.pulse-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.pulse-relevance {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-style: italic;
}

.pulse-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pulse-timestamp {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.pulse-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Category badge colors */
.badge.bg-development-cat { background-color: #48bb78 !important; color: white; }
.badge.bg-traffic-cat { background-color: #ed8936 !important; color: white; }
.badge.bg-events-cat { background-color: #9f7aea !important; color: white; }
.badge.bg-weather-cat { background-color: #4299e1 !important; color: white; }
.badge.bg-crime-cat { background-color: #f56565 !important; color: white; }
.badge.bg-politics-cat { background-color: #667eea !important; color: white; }
.badge.bg-business-cat { background-color: #38b2ac !important; color: white; }
.badge.bg-community-cat { background-color: #ed64a6 !important; color: white; }
.badge.bg-military-cat { background-color: #1a365d !important; color: white; }

/* Pulse mobile adjustments */
@media (max-width: 768px) {
    .pulse-widget {
        padding: 1rem;
    }

    .pulse-header h3 {
        font-size: 1.25rem;
    }

    .pulse-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .pulse-topic,
    .pulse-headline {
        font-size: 0.9rem;
    }

    .pulse-summary {
        font-size: 0.8rem;
    }
}

/* Landing page has padding, so remove calculator margin */
.bg-light-custom .drive-calculator {
    margin-top: 0;
}

/* ===== Drive Time Calculator ===== */
.drive-calculator {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.drive-calc-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
}

.drive-calc-header h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.drive-calc-header p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.drive-calc-form {
    padding: 1.5rem;
}

.drive-calc-form .form-label {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.drive-calc-form .form-control,
.drive-calc-form .form-select {
    border-color: var(--border-color);
    font-size: 0.95rem;
}

.drive-calc-form .form-control:focus,
.drive-calc-form .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(43, 108, 176, 0.15);
}

.drive-calc-form .btn-primary {
    color: #fff !important;
}

.drive-time-toggle {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.drive-time-toggle .form-check {
    margin-bottom: 0;
}

.drive-time-toggle .form-check-label {
    font-size: 0.875rem;
    cursor: pointer;
}

/* Drive Calculator Results */
.drive-calc-results {
    padding: 1.5rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.drive-results-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.drive-results-header h5 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.drive-route {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.drive-route:last-child {
    margin-bottom: 0;
}

.drive-route:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.drive-route-fastest {
    border-color: #38a169;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.drive-route-fastest:hover {
    border-color: #276749;
}

.drive-route-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.drive-route-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.drive-route-distance {
    font-size: 0.9rem;
}

.drive-route-via {
    font-size: 0.85rem;
}

.drive-results-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.drive-results-actions .btn {
    font-size: 0.85rem;
}

/* Share Toast */
.drive-share-toast {
    background: #dcfce7;
    color: #166534;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading and Error States */
.drive-calc-loading,
.drive-calc-error {
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.drive-calc-error {
    color: #92400e;
    background: #fef3c7;
}

/* Drive Calculator Mobile */
@media (max-width: 576px) {
    .drive-calculator {
        margin-top: 1.5rem;
    }

    .drive-calc-header {
        padding: 1rem 1.25rem;
    }

    .drive-calc-header h4 {
        font-size: 1rem;
    }

    .drive-calc-form {
        padding: 1rem 1.25rem;
    }

    .drive-time-toggle {
        padding: 0.5rem 0.75rem;
    }

    .drive-time-toggle .form-check {
        display: block;
        margin-bottom: 0.5rem;
    }

    .drive-time-toggle .form-check:last-child {
        margin-bottom: 0;
    }

    .drive-calc-results {
        padding: 1rem 1.25rem;
    }

    .drive-route {
        padding: 0.875rem;
    }

    .drive-route-time {
        font-size: 1rem;
    }

    .drive-results-actions {
        flex-direction: column;
    }

    .drive-results-actions .btn {
        width: 100%;
    }
}
