/**
 * Modern Clean Art Gallery Master Homepage Stylesheet (home.css)
 * Matches UI Reference Sample: Luminous light surfaces, elegant serif headlines, clean cards, and ambient glows.
 *
 * @package mi-theme
 * @version 2.5.0
 */

/* ─── 1. HERO SECTION (Webflow Art Gallery Video Layout) ──── */
.hero-section.hero-video-layout {
    position: relative;
    width: 100%;
    min-height: 85vh;
    padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem) 0;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    background-image: 
        radial-gradient(ellipse 65% 55% at 5% 10%, rgba(234, 88, 12, 0.18) 0%, rgba(249, 115, 22, 0.07) 40%, rgba(255, 255, 255, 0) 75%),
        radial-gradient(ellipse 65% 55% at 95% 90%, rgba(34, 197, 94, 0.20) 0%, rgba(21, 128, 61, 0.07) 40%, rgba(255, 255, 255, 0) 75%);
    background-repeat: no-repeat;
    contain: paint;
}

/* Background Video Styling (Hardware Accelerated GPU Layer) */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.hero-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.88) 60%, 
        #FFFFFF 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    box-sizing: border-box;
}

/* Centered Title Wrap & Outline Button */
.hero-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 860px;
    margin: var(--space-8) auto 0 auto;
}

.hero-title-wrap .hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.5vw + 1rem, 3.5rem) !important;
    font-weight: 700;
    line-height: 1.15;
    color: #0F172A;
    margin: 0 0 var(--space-4) 0;
    letter-spacing: -0.02em;
}

.hero-title-wrap .hero-description {
    font-family: var(--font-ui);
    font-size: clamp(0.92rem, 1.2vw + 0.65rem, 1.15rem) !important;
    line-height: var(--leading-relaxed);
    color: #475569;
    margin: 0 auto var(--space-8) auto;
    max-width: 680px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: #0F172A;
    color: #FFFFFF;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--duration-base) var(--ease-out);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
}

.btn-hero-primary:hover {
    background: #1E293B;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
}

.button-outline.button-hero-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    color: #0F172A;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--duration-base) var(--ease-out);
    box-shadow: var(--shadow-xs);
}

.button-outline.button-hero-outline:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    color: #0F172A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

@media (max-width: 991px) {
    .hero-title-wrap .hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .hero-section.hero-video-layout {
        min-height: clamp(480px, 78vh, 640px);
        padding: clamp(2.2rem, 5vw, 3.2rem) 0 clamp(2.8rem, 6vw, 4rem) 0;
        background-image: 
            radial-gradient(circle at 10% 12%, rgba(234, 88, 12, 0.22) 0%, rgba(249, 115, 22, 0.08) 45%, rgba(255, 255, 255, 0) 75%),
            radial-gradient(circle at 90% 88%, rgba(34, 197, 94, 0.24) 0%, rgba(21, 128, 61, 0.08) 45%, rgba(255, 255, 255, 0) 75%);
    }

    .hero-title-wrap .hero-title {
        font-size: clamp(1.85rem, 6.5vw + 0.5rem, 2.5rem) !important;
        line-height: 1.18;
        margin-bottom: 12px;
    }

    .hero-title-wrap .hero-description {
        font-size: clamp(0.88rem, 3.2vw + 0.3rem, 1.05rem) !important;
        line-height: 1.55;
        margin-bottom: 24px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        gap: 12px;
    }

    .btn-hero-primary,
    .button-outline.button-hero-outline {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

/* ─── 2. MODERN FEATURED MUSEUMS SECTION ────────────── */
.modern-featured-section {
    position: relative;
    padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(4rem, 8vw, 7rem) 0;
    background-color: #FFFFFF;
    background-image: 
        radial-gradient(ellipse 60% 50% at 5% 15%, rgba(234, 88, 12, 0.16) 0%, rgba(249, 115, 22, 0.06) 45%, rgba(255, 255, 255, 0) 75%),
        radial-gradient(ellipse 60% 50% at 95% 85%, rgba(34, 197, 94, 0.18) 0%, rgba(21, 128, 61, 0.06) 45%, rgba(255, 255, 255, 0) 75%);
    background-repeat: no-repeat;
    overflow: hidden;
    contain: paint;
}

@media (max-width: 768px) {
    .modern-featured-section {
        padding: clamp(2.5rem, 6vw, 3.5rem) 0 clamp(3rem, 7vw, 4.5rem) 0;
        background-image: 
            radial-gradient(circle at 10% 12%, rgba(234, 88, 12, 0.20) 0%, rgba(249, 115, 22, 0.07) 45%, rgba(255, 255, 255, 0) 75%),
            radial-gradient(circle at 90% 88%, rgba(34, 197, 94, 0.22) 0%, rgba(21, 128, 61, 0.07) 45%, rgba(255, 255, 255, 0) 75%);
    }
}

.featured-container {
    position: relative;
    z-index: 2;
}

/* Centered Header Layout */
.featured-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px auto;
}

.featured-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw + 0.8rem, 2.75rem) !important;
    font-weight: 800;
    line-height: 1.2;
    color: #0F172A !important;
    margin: 12px 0 16px 0;
    letter-spacing: -0.02em;
    text-align: center;
}

.featured-subtitle {
    font-family: var(--font-ui);
    font-size: clamp(0.9rem, 1.2vw + 0.55rem, 1.05rem) !important;
    line-height: 1.6;
    color: #475569 !important;
    margin: 0 auto;
    text-align: center;
}

.featured-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 48px;
}

.modern-museums-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
}

/* Modern Architectural Museum Card */
.modern-museum-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--duration-base) var(--ease-spring);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    position: relative;
}

.modern-museum-card:hover {
    transform: translateY(-6px);
    border-color: #E2E8F0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.modern-museum-card .card-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #F1F5F9;
}

.modern-museum-card .media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.modern-museum-card .media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

.modern-museum-card:hover .media-img {
    transform: scale(1.06);
}

.modern-museum-card .category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.modern-museum-card .card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modern-museum-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748B;
    margin-bottom: 12px;
}

.modern-museum-card .meta-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748B;
    font-weight: 500;
}

.modern-museum-card .meta-icon {
    width: 14px;
    height: 14px;
    stroke: #64748B;
}

.modern-museum-card .meta-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #0F172A;
}

.modern-museum-card .star-icon {
    width: 14px;
    height: 14px;
    stroke: #D97706;
    fill: #F59E0B;
}

.modern-museum-card .rev-count {
    color: #94A3B8;
    font-size: 11px;
}

.modern-museum-card .card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-museum-card .card-title a {
    color: #0F172A;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.modern-museum-card:hover .card-title a {
    color: #0F172A;
}

.modern-museum-card .card-excerpt {
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    flex-grow: 1;
}

/* ─── 3. CATEGORIES SECTION ("What Interests You?") ─── */
.categories-section.modern-categories-section {
    padding: var(--space-20) 0 var(--space-24) 0;
    overflow: hidden;
    position: relative;
    background-color: #FFFFFF;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.categories-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.categories-main-title {
    font-family: var(--font-display, sans-serif);
    font-size: clamp(1.75rem, 3.5vw + 0.8rem, 2.75rem) !important;
    font-weight: 800;
    color: #0F172A !important;
    margin: 12px 0 0 0;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Staggered Horizontal Cards Grid Container matching screenshot */
.webflow-categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    max-width: 1040px;
    margin: 0 auto;
}

.webflow-cat-item {
    flex: 0 1 auto;
}

.webflow-category-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 28px 16px 18px;
    transition: all var(--duration-base) var(--ease-spring);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    box-sizing: border-box;
}

.webflow-category-card:hover {
    transform: translateY(-4px);
    border-color: #E2E8F0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.webflow-category-link {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
}

.webflow-category-card .cat-img-box {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F1F5F9;
}

.webflow-category-card .cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-base) var(--ease-out);
}

.webflow-category-card:hover .cat-img {
    transform: scale(1.08);
}

.webflow-category-card .cat-title-text {
    font-family: var(--font-display, sans-serif);
    font-size: clamp(1.1rem, 1.4vw + 0.75rem, 1.35rem) !important;
    font-weight: 700;
    color: #0F172A !important;
    margin: 0;
    white-space: nowrap;
}

/* ─── 4. INTERACTIVE MAP SECTION ─────────────────────── */
.map-section {
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
    background-color: #FFFFFF;
}

.map-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.map-section .section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw + 0.8rem, 2.75rem) !important;
    font-weight: 800;
    color: #0F172A !important;
    margin: 0 0 12px 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-align: center;
}

.map-section .section-subtitle {
    font-family: var(--font-ui);
    font-size: clamp(0.9rem, 1.2vw + 0.55rem, 1.05rem) !important;
    line-height: 1.6;
    color: #475569 !important;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    font-weight: 500;
}

.map-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--color-border-card);
    box-shadow: var(--shadow-lg);
    background: #FFFFFF;
    box-sizing: border-box;
}

.map-canvas {
    height: 520px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.map-skeleton-shimmer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-color: var(--color-surface-2);
}

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

.skeleton-text {
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    margin: 0;
}

.map-overlay-panel {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-5);
    border: 1px solid var(--color-border-mid);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    width: 270px;
    z-index: 1000;
    transition: all var(--duration-base) var(--ease-out);
    box-sizing: border-box;
}

.overlay-title {
    font-family: var(--font-display);
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--color-text-display);
    margin: 0 0 var(--space-2) 0;
}

.overlay-description {
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-4) 0;
}

.overlay-form-group {
    margin: 0;
}

.overlay-select {
    width: 100%;
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border-mid);
    border-radius: var(--radius-md);
    background-color: #FFFFFF;
    color: var(--color-text-body);
    outline: none;
    transition: border-color var(--duration-base) var(--ease-out);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.overlay-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

/* ─── 5. MODERN BLOG SECTION ─────────────────────────── */
.modern-blog-section {
    position: relative;
    padding: var(--space-20) 0 var(--space-24) 0;
    background-color: #FFFFFF;
    overflow: hidden;
}

.blog-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px auto;
}

.blog-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw + 0.8rem, 2.75rem) !important;
    font-weight: 800;
    line-height: 1.2;
    color: #0F172A !important;
    margin: 12px 0 16px 0;
    letter-spacing: -0.02em;
    text-align: center;
}

.blog-subtitle {
    font-family: var(--font-ui);
    font-size: clamp(0.9rem, 1.2vw + 0.55rem, 1.05rem) !important;
    line-height: 1.6;
    color: #475569 !important;
    margin: 0 auto;
    text-align: center;
    font-weight: 500;
}

.modern-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
}

/* Modern Editorial Blog Card (No Author Name) */
.modern-blog-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--duration-base) var(--ease-spring);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    position: relative;
}

.modern-blog-card:hover {
    transform: translateY(-6px);
    border-color: #E2E8F0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.modern-blog-card .card-media {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background-color: #F1F5F9;
}

.modern-blog-card .media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.modern-blog-card .media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

.modern-blog-card:hover .media-img {
    transform: scale(1.06);
}

.modern-blog-card .category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.modern-blog-card .card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modern-blog-card .card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #64748B;
    margin-bottom: 12px;
}

.modern-blog-card .meta-date,
.modern-blog-card .meta-readtime {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748B;
    font-weight: 500;
}

.modern-blog-card .meta-icon {
    width: 14px;
    height: 14px;
    stroke: #64748B;
}

.modern-blog-card .card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-blog-card .card-title a {
    color: #0F172A;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.modern-blog-card:hover .card-title a {
    color: #0F172A;
}

.modern-blog-card .card-excerpt {
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    flex-grow: 1;
}

.modern-blog-card .arrow-icon {
    width: 15px;
    height: 15px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.modern-blog-card:hover .arrow-icon {
    transform: translateX(4px);
}

.blog-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 48px;
}

/* ─── Helper Utility Component Classes ─── */
.label-sparkle-flanked {
    margin-bottom: var(--space-3);
    display: inline-flex;
    align-items: center;
}

.categories-container,
.blog-container {
    position: relative;
    z-index: 10;
}

.map-loader-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
    animation: spin 1s linear infinite;
}

.overlay-form-group {
    margin-bottom: var(--space-4);
}

/* ─── RESPONSIVE BREAKPOINTS (ALL HOMEPAGE SECTIONS) ─── */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .modern-museums-grid,
    .categories-grid,
    .modern-blog-grid,
    .featured-museums-grid,
    .blog-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .hero-title-wrap .hero-title,
    .featured-title,
    .blog-title,
    .categories-section .section-title {
        font-size: 2.25rem;
        line-height: 1.25;
    }

    .featured-subtitle,
    .blog-subtitle,
    .categories-section .section-subtitle,
    .hero-title-wrap .hero-description {
        font-size: 1rem;
    }

    .modern-featured-section,
    .modern-categories-section,
    .modern-blog-section,
    .map-section {
        padding: 56px 0;
    }
}

/* Mobile Devices & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-title-wrap .hero-title,
    .featured-title,
    .blog-title,
    .categories-section .section-title {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        gap: 12px;
    }

    .hero-cta-group .btn-hero-primary,
    .hero-cta-group .button-hero-outline {
        width: 100%;
        justify-content: center;
    }

    .featured-section-header,
    .blog-section-header,
    .categories-section .section-header {
        margin-bottom: 32px;
    }

    .featured-bottom-cta,
    .blog-bottom-cta {
        margin-top: 32px;
    }

    /* Map Section Mobile Responsiveness */
    .map-wrapper {
        display: flex;
        flex-direction: column-reverse;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid #E2E8F0;
    }

    .map-overlay-panel {
        position: relative;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #E2E8F0;
        box-shadow: none;
        padding: 16px;
    }

    .map-canvas,
    #homeLeafletMap,
    #homeMap {
        height: 380px;
        min-height: 340px;
        width: 100%;
    }
}

/* Phone Portrait (max-width: 640px) */
@media (max-width: 640px) {
    .modern-museums-grid,
    .categories-grid,
    .modern-blog-grid,
    .featured-museums-grid,
    .blog-section-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-title-wrap .hero-title,
    .featured-title,
    .blog-title,
    .categories-section .section-title {
        font-size: 1.65rem;
    }

    .featured-subtitle,
    .blog-subtitle,
    .categories-section .section-subtitle {
        font-size: 0.9rem;
    }

    .modern-museum-card .card-media,
    .modern-blog-card .card-media {
        height: 190px;
    }

    .modern-museum-card .card-body,
    .modern-blog-card .card-body {
        padding: 18px;
    }

    .category-card {
        padding: 24px 16px;
    }

    .modern-featured-section,
    .modern-categories-section,
    .modern-blog-section,
    .map-section {
        padding: 40px 0;
    }
}

