/* London Museums Directory - Custom Styles V2 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* Professional Museum Directory Color Palette */

/* Remove default margins and padding */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--bg-primary) !important; /* Creme background for all pages */
}

/* Apply creme background to all page content areas */
.london-museums-page,
.page-content,
.main-content,
.content-area,
.site-main,
#main,
#primary,
.archive-content-wrapper,
.error-404-content,
.hero-content {
    background-color: var(--bg-primary) !important; /* Creme background */
}

/* Hero content should have dark translucent background for text visibility */
.page-hero-content {
    background: rgba(0, 0, 0, 0.4) !important;
    padding: 40px 30px !important;
    border-radius: 12px !important;
    backdrop-filter: blur(2px) !important;
}

/* Specific page backgrounds - All Museums, Category pages, etc. */
.museums-listing-page,
.all-museums-page,
.category-museums-page,
.search-results-page {
    background-color: var(--bg-primary) !important;
}

/* Museum cards and content areas */
.museum-card,
.museums-grid,
.listings-container,
.search-container,
.sorting-container {
    background-color: transparent; /* Let parent creme background show through */
}

/* Ensure white content areas within creme pages have proper contrast */
.museum-card,
.content-box,
.info-box {
    background-color: #ffffff !important; /* White cards on creme background */
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.london-museums-body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Override WordPress admin bar padding */
body.admin-bar {
    padding-top: 0 !important;
}

body.logged-in {
    padding-top: 0 !important;
}

.london-museums-homepage {
    margin: 0;
    padding: 0;
}

/* Override Theme Colors - Fix Red Background */
body, html {
    background-color: #ffffff !important;
}

/* Color Variables - Museum Directory Theme */
:root {
    /* Primary Colors - Deep Blue & Gold */
    --primary-color: #1e3a8a;        /* Deep Navy Blue */
    --primary-hover: #1e40af;        /* Slightly lighter blue */
    --secondary-color: #059669;      /* Green instead of red */
    --accent-color: #f59e0b;         /* Gold/Amber - NOT RED */
    --accent-light: #fbbf24;         /* Light Gold */
    
    /* Neutral Colors */
    --text-primary: #1f2937;         /* Dark Gray */
    --text-secondary: #6b7280;       /* Medium Gray */
    --text-light: #9ca3af;           /* Light Gray */
    --bg-primary: #f5f2ea;           /* Darker Creme */
    --bg-secondary: #f5f3f0;         /* Light Creme */
    --bg-tertiary: #f0ede8;          /* Very Light Creme */
    
    /* Status Colors */
    --success-color: #059669;        /* Green */
    --warning-color: #d97706;        /* Orange */
    --error-color: #dc2626;          /* Red */
    --info-color: #0ea5e9;           /* Blue */
    
    /* Museum Specific Colors */
    --museum-art: #8b5cf6;           /* Purple for Art */
    --museum-history: #dc2626;       /* Red for History */
    --museum-science: #059669;       /* Green for Science */
    --museum-natural: #16a34a;       /* Green for Natural History */
    --museum-military: #6b7280;      /* Gray for Military */
    --museum-transport: #0ea5e9;     /* Blue for Transport */
    
    /* Shadows and Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Header Styles */
.london-museums-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--primary-color);
    margin: 0;
    padding: 0;
}

.site-logo img {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.site-title h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.75rem;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.add-listing-btn {
    background: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.add-listing-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Hero Section */
.hero-section {
    background: transparent;
    color: white;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    min-height: 600px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.search-input,
.search-select {
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-button {
    background: var(--secondary-color);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.search-button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Stats Section */
.stats-section {
    background: var(--bg-secondary);
    padding: 80px 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Museum Cards */
.museum-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--bg-tertiary);
}

.museum-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.museum-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.museum-card:hover .card-image {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.free-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--success-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.museum-content {
    padding: 30px;
}

.museum-title {
    margin: 0 0 15px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: none !important;
    font-family: 'Montserrat', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.01em;
}

.museum-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.museum-title a:hover {
    color: var(--primary-color);
}

.museum-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--bg-tertiary);
}

.meta-tag.category {
    background: var(--museum-art);
    color: white;
}

.meta-tag.location {
    background: var(--info-color);
    color: white;
}

.museum-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.learn-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.learn-more-btn:hover {
    color: var(--primary-hover);
    transform: translateX(5px);
}

.learn-more-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.learn-more-btn:hover::after {
    transform: translateX(3px);
}

/* Category Cards */
.category-card {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.category-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.category-count {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1rem;
}

.category-link {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.category-link:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    color: white;
}

/* Free Museums Section */
.free-museums {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.info-box {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    padding: 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    border-left: 5px solid var(--success-color);
    box-shadow: var(--shadow-md);
}

.info-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.info-box h3 {
    color: var(--success-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.info-box p {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.view-free-btn {
    background: var(--success-color);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.view-free-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Single Museum Page Styles */
.single-museum-hero {
    position: relative;
    color: white;
    padding: 120px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 120% auto;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.hero-bg-image {
    width: 120%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    margin: 0;
    padding: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(30, 64, 175, 0.6) 100%);
}

.museum-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.meta-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.free-badge {
    background: var(--success-color);
}

.rating-badge {
    background: var(--accent-color);
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--primary-color);
    display: inline-block;
}

.museum-facts {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-top: 30px;
    border-left: 5px solid var(--primary-color);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fact-item {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.gallery-item {
    text-align: center;
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.gallery-caption {
    margin-top: 15px;
    font-style: italic;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Sidebar */
.museum-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    border: 1px solid var(--bg-tertiary);
}

.sidebar-widget h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.info-item {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.free-entry {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .search-inputs {
        flex-direction: column;
    }
    
    .search-button {
        width: 100%;
    }
    
    .museums-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .museum-title {
        font-size: 2.5rem;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .search-container {
        padding: 25px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .museum-title {
        font-size: 2rem;
    }
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
.btn:focus,
.form-control:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .london-museums-header,
    .search-container,
    .action-buttons {
        display: none;
    }
    
    .museum-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

