* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f8f9fa;
    --text-color: #333333;
    --heading-color: #2c3e50;
    --secondary-heading-color: #495057;
    --muted-text-color: #6c757d;
    --surface-color: #ffffff;
    --surface-alt-color: #f1f3f5;
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover-color: rgba(0, 0, 0, 0.15);
    --shadow-strong-color: rgba(0, 0, 0, 0.12);
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --divider-color: #f1f3f5;
    --input-bg-color: #ffffff;
    --tag-bg-color: #f8f9fa;
    --border-hover-color: #dee2e6;
    --soft-accent-color: #dee2e6;
    --hover-accent-bg: #f8f9ff;
}

body.dark-theme {
    --bg-color: #121212;
    --text-color: #e5e5e5;
    --heading-color: #ffffff;
    --secondary-heading-color: #d1d5db;
    --muted-text-color: #b0b3b8;
    --surface-color: #1f1f1f;
    --surface-alt-color: #25272b;
    --border-color: #34373d;
    --shadow-color: rgba(0, 0, 0, 0.6);
    --shadow-hover-color: rgba(0, 0, 0, 0.8);
    --shadow-strong-color: rgba(0, 0, 0, 0.7);
    --primary-gradient: linear-gradient(135deg, #4a5fd0 0%, #5b3e93 100%);
    --divider-color: #2a2d31;
    --input-bg-color: #1f1f1f;
    --tag-bg-color: #2b2d31;
    --border-hover-color: #454950;
    --soft-accent-color: #3d4046;
    --hover-accent-bg: rgba(102, 126, 234, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
    background: var(--primary-gradient);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

body.dark-theme .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #f5f5f5;
}

.theme-toggle-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

body.dark-theme .theme-toggle-btn:focus-visible {
    outline-color: #d2d6ff;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

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

.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.page {
    display: none;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

#location-details .page {
    margin: 0;
    max-width: 100%;
}

.page.active {
    display: block;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero-section h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--muted-text-color);
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-input {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    width: 300px;
    outline: none;
    transition: border-color 0.3s ease;
    background: var(--input-bg-color);
    color: var(--text-color);
}

.search-input::placeholder {
    color: var(--muted-text-color);
}

.search-date,
.search-time,
.search-duration,
.search-pax {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    background: var(--input-bg-color);
    color: var(--text-color);
}

.search-date {
    width: 180px;
}

.search-time {
    width: 140px;
    cursor: pointer;
}

.search-duration {
    width: 120px;
    cursor: pointer;
}

.search-pax {
    width: 140px;
    cursor: pointer;
}

.search-input:focus,
.search-date:focus,
.search-time:focus,
.search-duration:focus,
.search-pax:focus {
    border-color: #667eea;
}

.search-btn {
    padding: 1rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

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

.advanced-search-section {
    margin-bottom: 2rem;
}

.advanced-search-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.advanced-search-toggle:hover {
    background: var(--surface-alt-color);
    border-color: #667eea;
}

.toggle-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.advanced-search-content {
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.type-filter-section {
    margin-bottom: 2rem;
}

.type-filter-section h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary-heading-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.type-filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.type-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--surface-color);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 2px 8px var(--shadow-color);
    color: var(--text-color);
}

.type-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-hover-color);
    border-color: #667eea;
}

.type-filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.type-filter-btn .icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.type-filter-btn .label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-align: center;
}

.type-filter-btn .count {
    font-size: 0.8rem;
    opacity: 0.8;
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    min-width: 30px;
    text-align: center;
}

.type-filter-btn:not(.active) .count {
    background: var(--surface-alt-color);
    color: var(--muted-text-color);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--surface-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-color);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Make emojis bigger in buttons */
.emoji-large {
    font-size: 1.4em;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.2em;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.location-card {
    background: var(--surface-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover-color);
}

.location-image {
    width: 100%;
    height: 200px;
    background-color: var(--surface-alt-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center;
}

.location-card h3 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.location-card .type {
    color: var(--muted-text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.search-time-info {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.location-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted-text-color);
}

.stat-value {
    font-weight: bold;
    color: var(--heading-color);
}

.crowd-level {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.crowd-low {
    background-color: #e6f3ff;
    color: #1E90FF;
}

.crowd-moderate {
    background-color: #fff4e6;
    color: #FF8C00;
}

.crowd-high {
    background-color: #ffe6e6;
    color: #DC143C;
}

.facilities {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.facility-icon {
    background-color: var(--surface-alt-color);
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--surface-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.3s ease;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.favorited {
    color: #e74c3c;
}

.location-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.back-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

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

.location-info h2 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.location-info p {
    color: var(--muted-text-color);
    margin-bottom: 1rem;
}

.seat-selection h3 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.seat-legend {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-alt-color);
    border-radius: 12px;
}

.seat-status-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.seat-features-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.seat-features-legend h4 {
    margin-right: 0.5rem;
    font-size: 0.95rem;
    color: var(--secondary-heading-color);
}

.feature-item {
    padding: 0.4rem 0.8rem;
    background: var(--surface-color);
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.seat-demo {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.seat-demo.available {
    background-color: #FF8C00;
}

.seat-demo.occupied {
    background-color: #DC143C;
}

.seat-demo.selected {
    background-color: #1E90FF;
}

.seat-map {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 100%;
    width: 100%;
    margin: 0 0 2rem 0;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Two-column layout for floor selection and seat map */
.floor-layout-container {
    display: flex !important;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
}

.floor-layout-container .floor-selector {
    flex: 0 0 350px;
    position: sticky;
    top: 100px;
    margin-bottom: 0;
    max-width: 350px;
}

.floor-layout-container .floor-seat-map-wrapper {
    flex: 1;
    min-width: 0;
    width: auto;
}

.seat {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

.seat:hover {
    transform: scale(1.1);
}

.seat.available:hover {
    background-color: #FF7F00;
}

.seat.premium:hover {
    background-color: #A0522D;
}

.seat.available {
    background-color: #FF8C00;
    color: white;
}

.seat.occupied {
    background-color: #DC143C;
    color: white;
    cursor: not-allowed;
}

.seat.selected {
    background-color: #1E90FF;
    color: white;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.3);
}

.seat.premium {
    background-color: #8B4513;
    color: white;
    border: 2px solid #D2691E;
}

.seat-number {
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.seat-icons {
    display: flex;
    gap: 2px;
    font-size: 0.8rem;
    justify-content: center;
}

.seat-map.layout-grid .seat-icons,
.seat-map.layout-lounge .seat-icons,
.seat-map.layout-multimedia .seat-icons {
    font-size: 0.75rem;
}

/* Custom Layout Styles for Woodlands Regional Library */
.seat-map.layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 100%;
    justify-items: center;
    padding: 20px;
}

.seat-map.layout-grid .table-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.seat-map.layout-grid .seats-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.seat-map.layout-grid .table {
    width: 180px;
    height: 60px;
    background: #4caf50;
    border: 3px solid #388e3c;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(56, 142, 60, 0.25);
}

.seat-map.layout-grid .seat {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Lounge Layout Styles */
.seat-map.layout-lounge {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    padding: 20px;
}

.seat-map.layout-lounge .lounge-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    justify-items: center;
}

.seat-map.layout-lounge .lounge-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.seat-map.layout-lounge .table-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.seat-map.layout-lounge .seats-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.seat-map.layout-lounge .table {
    width: 180px;
    height: 60px;
    background: #4caf50;
    border: 3px solid #388e3c;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(56, 142, 60, 0.25);
}

.seat-map.layout-lounge .sofa-element {
    background: #e53935;
    border: 3px solid #c62828;
    border-radius: 12px;
    padding: 20px 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.seat-map.layout-lounge .sofa-label {
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    letter-spacing: 1px;
}

.seat-map .table-name {
    margin: 0;
}

.seat-map .table {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Multimedia Layout Styles */
.seat-map.layout-multimedia {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    padding: 20px;
}

.seat-map.layout-multimedia .table-groups-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
}

.seat-map.layout-multimedia .multimedia-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    letter-spacing: 1px;
    width: 100%;
}

.seat-map.layout-multimedia .table-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.seat-map.layout-multimedia .seats-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.seat-map.layout-multimedia .table {
    width: 180px;
    height: 60px;
    background: #4caf50;
    border: 3px solid #388e3c;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(56, 142, 60, 0.25);
}

.seat-map.layout-multimedia .seat {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.booking-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.booking-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.booking-label {
    font-weight: 600;
    color: var(--heading-color);
    min-width: 120px;
}

.booking-input {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    flex: 1;
    background: var(--input-bg-color);
    color: var(--text-color);
}

.booking-input:focus {
    border-color: #667eea;
}

.booking-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.book-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.book-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.book-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.clear-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.bookings-list,
.favorites-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.booking-card {
    background: var(--surface-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    border-left: 5px solid #28a745;
}

.group-booking {
    border-left: 5px solid #667eea;
}

.group-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.booking-card h4 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.booking-details {
    color: var(--muted-text-color);
    margin-bottom: 1rem;
}

.cancel-btn {
    padding: 0.5rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background: #c82333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--surface-color);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--muted-text-color);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-btn.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modal-btn.secondary {
    background: var(--surface-alt-color);
    color: var(--secondary-heading-color);
    border: 2px solid var(--border-color);
}

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

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--muted-text-color);
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--heading-color);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-actions {
        gap: 1rem;
    }

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

    .search-input {
        width: 100%;
        max-width: 250px;
    }

    .search-date,
    .search-time,
    .search-duration,
    .search-pax {
        width: 120px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .seat-map {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }

    .seat {
        width: 50px;
        height: 50px;
    }

    .booking-controls {
        padding: 1.5rem;
        gap: 1rem;
    }

    .booking-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .booking-label {
        min-width: auto;
        font-size: 0.9rem;
    }

    .booking-input {
        width: 100%;
    }

    .booking-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .type-filter-bar {
        gap: 0.5rem;
    }

    .type-filter-btn {
        min-width: 100px;
        padding: 0.8rem 1rem;
    }

    .type-filter-btn .icon {
        font-size: 1.5rem;
    }

    .type-filter-btn .label {
        font-size: 0.8rem;
    }

    .type-filter-btn .count {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }

    .filter-bar {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .summary-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .summary-header h2 {
        font-size: 1.8rem;
    }

    .summary-card {
        padding: 1.5rem;
    }

    .summary-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

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

@media (max-width: 480px) {
    .page {
        padding: 1rem;
    }

    .hero-section {
        padding: 1rem 0;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .seat-map {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-content {
        margin: 25% auto;
        padding: 1.5rem;
    }

    .summary-card {
        padding: 1rem;
    }

    .summary-card h3 {
        font-size: 1.1rem;
    }
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted-text-color);
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Booking Summary Page Styles */
.summary-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.summary-header h2 {
    color: var(--heading-color);
    font-size: 2.2rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.summary-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.booking-summary-card {
    background: var(--surface-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px var(--shadow-strong-color);
    margin-bottom: 2rem;
    border: 1px solid var(--divider-color);
    position: relative;
    overflow: hidden;
}

.booking-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.summary-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--divider-color);
}

.location-info h3 {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.location-info p {
    color: var(--muted-text-color);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.booking-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.booking-badge::before {
    content: '🪑';
    font-size: 1.2rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.8rem;
    background: linear-gradient(135deg, var(--surface-alt-color) 0%, var(--surface-color) 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.summary-icon {
    font-size: 1.8rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

.summary-details {
    flex: 1;
}

.summary-label {
    font-size: 0.85rem;
    color: #8e9aaf;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.2rem;
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.4;
}

.summary-note {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.summary-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.summary-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--divider-color);
}

.edit-btn {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.2);
    position: relative;
    overflow: hidden;
}

.edit-btn::before {
    content: '✏️';
    font-size: 1.1rem;
}

.confirm-btn {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
}

.confirm-btn::before {
    content: '✅';
    font-size: 1.1rem;
}

.edit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(108, 117, 125, 0.3);
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(40, 167, 69, 0.3);
}

.edit-btn:active,
.confirm-btn:active {
    transform: translateY(-1px);
}

/* Enhanced facility display */
.facility-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.facility-tag {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Progress indicator */
.booking-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-step.active {
    color: #667eea;
    font-weight: 600;
}

.progress-step::after {
    content: '→';
    margin-left: 1rem;
    color: var(--soft-accent-color);
}

.progress-step:last-child::after {
    display: none;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--soft-accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.progress-step.active .step-number {
    background: var(--primary-gradient);
}

/* Responsive Design for Booking Summary */
@media (max-width: 768px) {
    .summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .summary-header h2 {
        font-size: 1.8rem;
    }

    .booking-progress {
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }

    .progress-step {
        font-size: 0.8rem;
    }

    .progress-step span {
        display: none;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .summary-container {
        padding: 0 1rem 2rem;
    }

    .booking-summary-card {
        padding: 2rem 1.5rem;
    }

    .summary-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .location-info h3 {
        font-size: 1.6rem;
    }

    .booking-badge {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .summary-item {
        padding: 1.5rem;
        flex-direction: row;
        align-items: center;
    }

    .summary-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

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

    .summary-value {
        font-size: 1.1rem;
    }

    .summary-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .edit-btn,
    .confirm-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }

    .facility-tags {
        gap: 0.3rem;
    }

    .facility-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .summary-header h2 {
        font-size: 1.6rem;
    }

    .booking-summary-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .location-info h3 {
        font-size: 1.4rem;
    }

    .summary-item {
        padding: 1.2rem;
        gap: 1rem;
    }

    .summary-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .summary-note {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .edit-btn,
    .confirm-btn {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }
}

/* Floor Selector Styles */
.floor-selector {
    margin-bottom: 2rem;
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.floor-selector h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.2rem;
}

.floor-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.floor-btn {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.floor-btn:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.floor-btn.active {
    border-color: #667eea;
    background: var(--primary-gradient);
    color: white;
}

.floor-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.floor-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.floor-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.floor-availability {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: inline-block;
    margin-top: 0.25rem;
    width: fit-content;
}

.floor-btn.active .floor-availability {
    background: rgba(255, 255, 255, 0.2);
}

.floor-btn:not(.active) .floor-availability {
    background: var(--surface-alt-color);
    color: var(--muted-text-color);
}

.floor-seat-map-wrapper {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.floor-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.floor-header h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.floor-header p {
    color: var(--muted-text-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.floor-image {
    margin-bottom: 1rem;
}

.floor-image img {
    width: 100%;
    max-width: 400px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* Responsive floor selector */
@media (max-width: 1024px) {
    .floor-layout-container {
        flex-direction: column;
    }

    .floor-layout-container .floor-selector {
        flex: 1;
        width: 100%;
        position: static;
    }

    .floor-layout-container .floor-seat-map-wrapper {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .floor-btn {
        padding: 0.8rem;
    }

    .floor-name {
        font-size: 1rem;
    }

    .floor-description {
        font-size: 0.85rem;
    }

    .seat-map.layout-grid,
    .seat-map.layout-lounge .lounge-container,
    .seat-map.layout-multimedia .table-groups-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .floor-layout-container {
        flex-direction: column;
    }

    .floor-layout-container .floor-selector {
        position: relative;
        top: 0;
        max-width: 100%;
        flex: 1;
    }
}

/* Enhanced Filter Section Styles */
.filter-section {
    background: var(--surface-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h4 {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
}

.region-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.region-filter-btn {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--text-color);
}

.region-filter-btn:hover {
    border-color: #667eea;
    background: var(--hover-accent-bg);
}

.region-filter-btn.active {
    border-color: #667eea;
    background: var(--primary-gradient);
    color: white;
}

.sort-location-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.sort-select {
    flex: 1;
    min-width: 200px;
    padding: 0.7rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--input-bg-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
    color: var(--text-color);
}

.sort-select:focus {
    outline: none;
    border-color: #667eea;
}

.find-nearby-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.find-nearby-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.find-nearby-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Distance badge for location cards */
.distance-badge {
    position: absolute;
    top: 10px;
    right: 50px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Region badge for location cards */
.region-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Responsive design for filters */
@media (max-width: 768px) {
    .filter-section {
        padding: 1rem;
    }

    .region-filter-bar {
        gap: 0.3rem;
    }

    .region-filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .sort-location-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-select {
        min-width: auto;
    }

    .find-nearby-btn {
        width: 100%;
    }
}
