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

:root {
    /* Soft Color Palette */
    --primary-navy: #2d3e50;
    --soft-blue: #5a7fa8;
    --accent-coral: #e89e8d;
    --light-cream: #faf8f5;
    --warm-white: #ffffff;
    --soft-gray: #e8e8e8;
    --text-primary: #2d3e50;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --success-green: #7fb069;
    --border-light: #e5e7eb;
    --sidebar-bg: #f9fafb;
    --hover-bg: #f3f4f6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header with Integrated Banner */
.city-banner {
    position: relative;
    z-index: 10;
    overflow: hidden;
    transition: all 0.5s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Compact Banner Layout */
.banner-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.banner-main {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.city-info {
    flex: 1;
    color: white;
}

.brand-name {
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.city-banner[data-city="all"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.city-banner[data-city="new-york"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.city-banner[data-city="london"] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.city-banner[data-city="paris"] {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.city-banner[data-city="washington"] {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.city-banner[data-city="chicago"] {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.city-banner[data-city="tokyo"] {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.city-banner[data-city="rome"] {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.city-banner[data-city="amsterdam"] {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.city-banner[data-city="barcelona"] {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.city-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.city-tagline {
    font-size: 0.875rem;
    opacity: 0.92;
    font-weight: 400;
    margin: 0;
}

.city-silhouette {
    flex: 0 0 auto;
    width: 300px;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0.3;
}

.city-silhouette svg {
    width: 100%;
    height: 100%;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Main Layout */
.main-layout {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar */
.sidebar {
    background: var(--warm-white);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--soft-gray);
}

.sidebar-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Bar */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-light);
    pointer-events: none;
}

#searchInput {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--warm-white);
    transition: all 0.2s;
}

#searchInput:focus {
    outline: none;
    border-color: var(--soft-blue);
    box-shadow: 0 0 0 3px rgba(90, 127, 168, 0.1);
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
}

.custom-select-trigger {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--warm-white);
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    text-align: left;
}

.custom-select-trigger:hover {
    border-color: var(--soft-blue);
    background: var(--hover-bg);
}

.custom-select-trigger:focus {
    outline: none;
    border-color: var(--soft-blue);
    box-shadow: 0 0 0 3px rgba(90, 127, 168, 0.1);
}

.select-arrow {
    color: var(--text-light);
    transition: transform 0.2s;
}

.custom-select-trigger[aria-expanded="true"] .select-arrow {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.custom-select-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.select-option:hover {
    background: var(--hover-bg);
}

.select-option.active {
    background: #e8f0f7;
    color: var(--soft-blue);
    font-weight: 500;
}

/* Tag Filters - Colorful Floating Tags */
.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid transparent;
    user-select: none;
}

.filter-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-tag.active {
    border-color: currentColor;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Tag Color Schemes - Soft Pastel Colors */

/* Art - Soft Pink/Rose */
.filter-tag[data-tag="art"] {
    background: #fef1f7;
    color: #9d5876;
}

.filter-tag[data-tag="art"].active {
    background: #f5d7e6;
    color: #7a3d5b;
}

/* History - Soft Blue */
.filter-tag[data-tag="history"] {
    background: #f0f4ff;
    color: #5b7ba8;
}

.filter-tag[data-tag="history"].active {
    background: #d9e4f7;
    color: #3d5a7f;
}

/* Science - Soft Teal/Cyan */
.filter-tag[data-tag="science"] {
    background: #f0fafb;
    color: #4d8a93;
}

.filter-tag[data-tag="science"].active {
    background: #d6f0f3;
    color: #356469;
}

/* Natural History - Soft Green */
.filter-tag[data-tag="natural-history"] {
    background: #f2f9f4;
    color: #5a8f6a;
}

.filter-tag[data-tag="natural-history"].active {
    background: #dbeee1;
    color: #3d6b4d;
}

/* Modern Art - Soft Orange/Peach */
.filter-tag[data-tag="modern-art"] {
    background: #fff8f0;
    color: #a87c5a;
}

.filter-tag[data-tag="modern-art"].active {
    background: #ffe8d1;
    color: #855f43;
}

/* Free Entrance - Soft Mint Green */
.filter-tag[data-tag="free-entrance"] {
    background: #f1faf5;
    color: #4d9d6f;
}

.filter-tag[data-tag="free-entrance"].active {
    background: #d6f1e0;
    color: #357550;
}

/* Architecture - Soft Purple/Lavender */
.filter-tag[data-tag="architecture"] {
    background: #f7f4ff;
    color: #7d6ba8;
}

.filter-tag[data-tag="architecture"].active {
    background: #e4dcf7;
    color: #5d4e7f;
}

/* Family Friendly - Soft Yellow */
.filter-tag[data-tag="family-friendly"] {
    background: #fffdf0;
    color: #a89e5a;
}

.filter-tag[data-tag="family-friendly"].active {
    background: #fef6d1;
    color: #857943;
}

/* Contemporary - Soft Coral/Salmon */
.filter-tag[data-tag="contemporary"] {
    background: #fff5f2;
    color: #a87669;
}

.filter-tag[data-tag="contemporary"].active {
    background: #ffe0d6;
    color: #85574a;
}

/* Photography - Soft Indigo */
.filter-tag[data-tag="photography"] {
    background: #f3f4ff;
    color: #6a6fa8;
}

.filter-tag[data-tag="photography"].active {
    background: #dde0f7;
    color: #4d517f;
}

/* Archaeology - Soft Brown/Tan */
.filter-tag[data-tag="archaeology"] {
    background: #faf7f2;
    color: #8f7c5a;
}

.filter-tag[data-tag="archaeology"].active {
    background: #eee5d1;
    color: #6b5f43;
}

/* Religious - Soft Gold */
.filter-tag[data-tag="religious"] {
    background: #fffcf0;
    color: #a8995a;
}

.filter-tag[data-tag="religious"].active {
    background: #fef3d1;
    color: #857643;
}

/* Renaissance - Soft Burgundy */
.filter-tag[data-tag="renaissance"] {
    background: #fdf2f5;
    color: #a8697d;
}

.filter-tag[data-tag="renaissance"].active {
    background: #f7d9e1;
    color: #854a5e;
}

/* Impressionism - Soft Lilac */
.filter-tag[data-tag="impressionism"] {
    background: #f9f5ff;
    color: #8d7da8;
}

.filter-tag[data-tag="impressionism"].active {
    background: #ead9f7;
    color: #6a597f;
}

/* Dutch Masters - Soft Amber */
.filter-tag[data-tag="dutch-masters"] {
    background: #fff9f0;
    color: #a88b5a;
}

.filter-tag[data-tag="dutch-masters"].active {
    background: #ffebd1;
    color: #856943;
}

/* Spanish Art - Soft Red/Rose */
.filter-tag[data-tag="spanish-art"] {
    background: #fff3f3;
    color: #a8696f;
}

.filter-tag[data-tag="spanish-art"].active {
    background: #f7dadd;
    color: #854a50;
}

/* European Masters - Soft Slate */
.filter-tag[data-tag="european-masters"] {
    background: #f5f7f9;
    color: #6a7a8f;
}

.filter-tag[data-tag="european-masters"].active {
    background: #dde4eb;
    color: #4d5c6b;
}

/* Asian Art - Soft Jade */
.filter-tag[data-tag="asian-art"] {
    background: #f3faf7;
    color: #5a8f7d;
}

.filter-tag[data-tag="asian-art"].active {
    background: #d9f0e6;
    color: #3d6b5e;
}

/* Japanese Culture - Soft Cherry Blossom */
.filter-tag[data-tag="japanese-culture"] {
    background: #fff5f9;
    color: #a8698f;
}

.filter-tag[data-tag="japanese-culture"].active {
    background: #f7daea;
    color: #854a6b;
}

/* Aviation - Soft Sky Blue */
.filter-tag[data-tag="aviation"] {
    background: #f2f8ff;
    color: #5a7ca8;
}

.filter-tag[data-tag="aviation"].active {
    background: #d6e7f7;
    color: #3d5985;
}

/* Dinosaurs - Soft Forest Green */
.filter-tag[data-tag="dinosaurs"] {
    background: #f3f9f5;
    color: #5a8f6f;
}

.filter-tag[data-tag="dinosaurs"].active {
    background: #daeee0;
    color: #3d6b50;
}

/* Sculpture - Soft Stone Gray */
.filter-tag[data-tag="sculpture"] {
    background: #f7f8f9;
    color: #7a858f;
}

.filter-tag[data-tag="sculpture"].active {
    background: #e4e8eb;
    color: #5c666b;
}

/* Default tag style for any other tags - Soft Neutral */
.filter-tag:not([data-tag]) {
    background: #f8f9fa;
    color: #6b7280;
}

.filter-tag:not([data-tag]).active {
    background: #e5e7eb;
    color: #4b5563;
}

/* Filter Checkboxes (for price and features) */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 1.75rem;
    user-select: none;
}

.filter-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--warm-white);
    border: 1.5px solid var(--border-light);
    border-radius: 4px;
    transition: all 0.2s;
}

.filter-checkbox:hover .checkmark {
    border-color: var(--soft-blue);
    background: var(--hover-bg);
}

.filter-checkbox input:checked ~ .checkmark {
    background-color: var(--soft-blue);
    border-color: var(--soft-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.filter-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* City card filters */
.card-count {
    font-size: 0.75rem;
    color: #999;
    font-weight: normal;
}

.no-cards-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    padding: 0.5rem 0;
}

/* Benefit type filters */
.benefit-type-filters {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.filter-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Reset Filters Button */
.reset-filters {
    width: 100%;
    padding: 0.75rem;
    background: var(--hover-bg);
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-filters:hover {
    background: var(--soft-blue);
    color: var(--warm-white);
    border-color: var(--soft-blue);
}

/* Content Area */
.content-area {
    min-height: 80vh;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.results-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.sort-select {
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--warm-white);
    cursor: pointer;
    transition: all 0.2s;
}

.sort-select:focus {
    outline: none;
    border-color: var(--soft-blue);
}

/* Museum Grid */
.museum-grid {
    display: grid;
    gap: 1.5rem;
}

.museum-card {
    background: var(--warm-white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.museum-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--soft-blue);
}

.museum-card-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
}

.museum-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 200px;
}

.museum-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.museum-content {
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
}

.museum-header {
    margin-bottom: 1rem;
}

.museum-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.original-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.25rem;
    opacity: 0.85;
}

.museum-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.museum-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
}

.rating-stars {
    color: #fbbf24;
}

.rating-text {
    color: var(--text-secondary);
    font-weight: 500;
}

.museum-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.museum-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: var(--hover-bg);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

.tag.free {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.tag.art {
    background: #fce7f3;
    color: #831843;
    border-color: #f9a8d4;
}

.tag.history {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #a5b4fc;
}

.tag.science {
    background: #dbeafe;
    color: #1e3a8a;
    border-color: #93c5fd;
}

.museum-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--soft-gray);
}

.price-section {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1;
}

.price-value.free {
    color: var(--success-green);
}

.museum-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: none;
}

.btn-primary {
    background: var(--soft-blue);
    color: var(--warm-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #4a6a8f;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--warm-white);
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--soft-blue);
}

/* Expanded Card Details */
.museum-details {
    display: none;
    padding: 2rem;
    background: var(--hover-bg);
    border-top: 1px solid var(--border-light);
    grid-column: 1 / -1;
}

.museum-card.expanded .museum-details {
    display: block;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

/* Ticket Options Section */
.ticket-options-section {
    margin-bottom: 3rem;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Official Tickets - Compact List Layout */
.official-tickets-container {
    margin-bottom: 2.5rem;
}

.section-subheading {
    margin-bottom: 1rem;
}

.official-badge-small {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.official-tickets-list {
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.official-ticket-row {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--soft-gray);
    transition: background 0.2s;
}

.official-ticket-row:last-child {
    border-bottom: none;
}

.official-ticket-row:hover {
    background: var(--hover-bg);
}

.official-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.official-ticket-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.official-ticket-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

.official-ticket-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.include-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-official-compact {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.btn-official-compact:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

/* Partner Tickets - Keep Card Grid */
.partner-tickets-container {
    margin-top: 2rem;
}

.partner-badge-small {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.ticket-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.ticket-option {
    position: relative;
    background: var(--warm-white);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.ticket-option:hover {
    border-color: var(--soft-blue);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.ticket-option.popular {
    border-color: var(--soft-blue);
    box-shadow: 0 4px 12px rgba(90, 127, 168, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.source-badge {
    position: absolute;
    top: -12px;
    left: 1.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-badge.official {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.source-badge.affiliate {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.ticket-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--soft-gray);
}

.ticket-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.ticket-price {
    display: flex;
    align-items: baseline;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1;
}

.free-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--success-green);
}

.ticket-includes {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.ticket-includes li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ticket-includes li svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--success-green);
}

.btn-ticket {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--soft-blue);
    color: var(--warm-white);
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: block;
    box-shadow: 0 2px 6px rgba(90, 127, 168, 0.2);
}

.btn-ticket:hover {
    background: #4a6a8f;
    box-shadow: 0 4px 12px rgba(90, 127, 168, 0.3);
    transform: translateY(-2px);
}

.ticket-option.popular .btn-ticket {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ticket-option.popular .btn-ticket:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.detail-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-section p,
.detail-section ul {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.detail-section ul {
    list-style: none;
    padding-left: 0;
}

.detail-section li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section li:before {
    content: "✓";
    color: var(--success-green);
    font-weight: bold;
}

/* Free admission section styling */
.free-admission-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 1rem;
}

.free-admission-section h4 {
    color: #2e7d32;
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.free-admission-section h4 svg {
    color: #4caf50;
}

.free-days-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.free-days-list li {
    padding: 0.5rem 0;
    color: #2e7d32;
    font-weight: 500;
}

.free-days-list li:before {
    content: "🎟️";
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* City cards section styling */
.city-cards-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f9fc 100%);
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 1rem;
}

.city-cards-section h4 {
    color: #1565c0;
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.city-cards-section h4 svg {
    color: #2196f3;
}

.city-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.city-card-item {
    background: white;
    border-radius: 6px;
    padding: 0.75rem;
    border-left: 4px solid #2196f3;
}

.city-card-item.discount {
    border-left-color: #ff9800;
}

.city-card-item.not_included {
    border-left-color: #9e9e9e;
    opacity: 0.7;
}

.city-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.city-card-header strong {
    color: #1565c0;
    font-size: 0.875rem;
}

.benefit-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.benefit-badge.included {
    background: #4caf50;
    color: white;
}

.benefit-badge.discount {
    background: #ff9800;
    color: white;
}

.benefit-badge.not_included {
    background: #9e9e9e;
    color: white;
}

.city-card-notes {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 3px solid var(--soft-gray);
    border-top: 3px solid var(--soft-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-results h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Footer */
footer {
    background: var(--primary-navy);
    color: #e5e7eb;
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--warm-white);
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d1d5db;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--warm-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--warm-white);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
    font-size: 0.8125rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .museum-card-inner {
        grid-template-columns: 1fr;
    }

    .museum-image-wrapper {
        min-height: 200px;
    }

    .museum-content {
        padding: 1.5rem;
    }

    .city-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .city-silhouette {
        width: 250px;
        height: 80px;
        margin-top: 1rem;
    }

    .city-name {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-nav {
        gap: 1rem;
    }

    .main-layout {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .museum-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .museum-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .city-banner {
        min-height: auto;
    }

    .city-name {
        font-size: 1.5rem;
    }

    .city-tagline {
        font-size: 0.875rem;
    }

    .city-silhouette {
        width: 250px;
        height: 100px;
    }
}
