html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Fix badge overflow on MyBookings tabs */
.booking-tabs {
    background-color: #e0e0e0 !important;
}

.booking-tabs .mud-tabs-tabbar {
    background-color: #e0e0e0 !important;
}

.booking-tabs .mud-tabs-tabbar-wrapper {
    overflow: visible !important;
}

.booking-tabs .mud-tabs-tabbar-content {
    overflow: visible !important;
}

.booking-tabs .mud-tab {
    padding-right: 24px !important;
    display: flex !important;
    align-items: center !important;
}

/* Center align badges vertically with tab text */
.booking-tabs .mud-tab-badge {
    display: inline-flex !important;
    align-items: center !important;
    height: 100%;
}

.booking-tabs .mud-badge-wrapper {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 4px;
}

.booking-tabs .mud-badge {
    position: static !important;
    transform: none !important;
}

h1:focus {
    outline: none;
}

/* Override MudBlazor Color.Secondary to be black instead of gray */
.mud-secondary-text {
    color: #000000 !important;
}

/* Override MudBlazor body1 typography */
.mud-typography-body1 {
    text-align: center;
    font-weight: bold;
}

@media (min-width: 769px) {
    .mud-chip-outlined.mud-chip-color-primary {
        min-width: 300px;
    }

    /* Override for filter summary chips - use natural width */
    .filter-summary-container .mud-chip-outlined.mud-chip-color-primary {
        min-width: auto;
    }
}

/* Override MudBlazor medium dialog width */
.mud-dialog-width-md {
    max-width: 400px !important;
}

@media (max-width: 480px) {
    .mud-dialog-width-md {
        max-width: 100% !important;
        margin: 16px;
    }
}

/* Orange border for selected chips in Search Refinement Dialog */
.party-type-chips .mud-chip-selected,
.venue-type-chips .mud-chip-selected,
.radius-chips .mud-chip-selected,
.guest-count-chips .mud-chip-selected,
.age-range-chips .mud-chip-selected,
.services-chips .mud-chip-selected {
    border-width: 3px !important;
    border-style: solid !important;
    border-color: #ff6b35 !important;
    background-color: #f5f5f5 !important;
    color: #333333 !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Keep icons dark for selected chips */
.party-type-chips .mud-chip-selected .mud-icon,
.venue-type-chips .mud-chip-selected .mud-icon,
.radius-chips .mud-chip-selected .mud-icon,
.guest-count-chips .mud-chip-selected .mud-icon,
.age-range-chips .mud-chip-selected .mud-icon,
.services-chips .mud-chip-selected .mud-icon {
    color: #333333 !important;
}

/* Keep checkmark dark for selected chips */
.party-type-chips .mud-chip-selected .mud-chip-checkmark,
.venue-type-chips .mud-chip-selected .mud-chip-checkmark,
.radius-chips .mud-chip-selected .mud-chip-checkmark,
.guest-count-chips .mud-chip-selected .mud-chip-checkmark,
.age-range-chips .mud-chip-selected .mud-chip-checkmark,
.services-chips .mud-chip-selected .mud-chip-checkmark {
    color: #333333 !important;
}

a, .btn-link {
    color: #0071c1;
}

.mud-container-maxwidth-lg {
    max-width: 1400px !important;
}

/* Header Paper Gradient */
.header-paper {
    background: linear-gradient(0deg, #f6f4f4 0%, #ffffff 100%) !important;
    position: relative;
}

.header-paper::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/uk-bg-removebg.png') center top no-repeat;
    background-size: auto;
    opacity: 0.1;
    pointer-events: none;
}

.header-paper img {
    height: 90px;
}

/* Mobile - Resize logo */
@media (max-width: 768px) {
    .header-paper img {
        height: 45px !important;
    }
}

.btn-primary {
    color: #fff;
    background-color: #003b95;
    border-color: #003b95;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #003b95;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Square slider thumb */
.square-slider .mud-slider-thumb {
    border-radius: 0 !important;
    width: 16px !important;
    height: 16px !important;
}

/* Prominent carousel arrows for venue cards */
.venue-carousel {
    position: relative !important;
}

.venue-carousel .mud-carousel-elements-wrapper {
    position: relative !important;
}

.venue-carousel .mud-carousel-controls {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    position: absolute !important;
    z-index: 10 !important;
}

.venue-carousel .mud-button-root.mud-icon-button.mud-ripple {
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    z-index: 11 !important;
}

.venue-carousel .mud-button-root.mud-icon-button.mud-ripple:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    transform: scale(1.15);
}

.venue-carousel .mud-button-root.mud-icon-button .mud-icon-root {
    color: #424242 !important;
    font-size: 22px !important;
}

/* Elegant Mockup3 Home Page Design */
.elegant-home-container {
    min-height: 100vh;
    padding: 0 20px 20px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Home Banner Wrapper */
.home-banner-wrapper {
    width: 100%;
    height: 400px;
    max-height: 680px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 20px auto;
    max-width: 1200px;
    overflow: hidden;
}

/* Mobile: Use viewport height for banner */
@media (max-width: 768px) {
    .elegant-home-container {
        padding: 0;
    }

    .home-banner-wrapper {
        height: 100vh;
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }
}

.home-banner-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/banner-img1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    border-radius: 16px;
    z-index: 0;
}

.home-banner-wrapper > * {
    position: relative;
    z-index: 1;
}

/* Why Choose Us Section */
.why-choose-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.why-choose-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.why-choose-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.why-choose-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 160px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.why-choose-icon {
    margin-bottom: 16px;
}

.emoji-icon {
    font-size: 40px;
    line-height: 1;
    display: block;
}

.why-choose-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.why-choose-card-desc {
    font-size: 13px;
    color: #6b6b6b;
    margin: 0;
    line-height: 1.4;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 992px) {
    .why-choose-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 576px) {
    .why-choose-cards {
        grid-template-columns: 1fr;
    }

    .why-choose-title {
        font-size: 20px;
    }

    .why-choose-card {
        min-height: auto;
    }
}

.elegant-header {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 40px;
}

.elegant-hero h1 {
    color: #0b346f;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.elegant-hero p {
    color: #5A6C7D;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Search Panel Container - Centers and constrains search panel width */
.search-panel-container {
    width: 80%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Featured Venues Section */
.featured-venues-section {
    width: 100%;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.featured-venues-title {
    font-size: 32px;
    font-weight: 700;
    color: #003b95;
    margin-bottom: 24px;
    text-align: center;
}

.featured-venues-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.featured-venue-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.featured-venue-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.featured-venue-info {
    padding: 16px;
}

.featured-venue-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.featured-venue-location {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
}

.featured-venue-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    color: #FFA726;
    font-size: 16px;
}

.rating-value {
    font-size: 14px;
    font-weight: 600;
    color: #003b95;
}

/* Responsive - 3 columns on tablet */
@media (max-width: 1024px) {
    .featured-venues-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive - 2 columns on mobile landscape */
@media (max-width: 768px) {
    .featured-venues-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .featured-venues-title {
        font-size: 24px;
    }
}

/* Responsive - 1 column on mobile portrait */
@media (max-width: 480px) {
    .featured-venues-grid {
        grid-template-columns: 1fr;
    }
}

/* Results Container - Full width, align to start */
.results-container-with-filters {
    width: 100%;
    align-self: flex-start;
}

/* API Health Check - Position at top */
.api-health-margin {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Compact Search Bar (shown with results) */
.compact-search-bar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 16px 20px;
    background: #fff;
}

@media (max-width: 768px) {
    .compact-search-bar-container {
        padding: 0;
    }
}

.horizontal-search-bar.compact-mode {
    margin-bottom: 0;
}

.horizontal-search-bar.compact-mode .search-field-label {
    display: none;
}

/* Search Panel Title */
.search-panel-title {
    color: #0b346f;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: left;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: capitalize;
}

.search-panel-subtitle {
    color: #0b346f;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 24px;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Map Toggle Button */
.map-toggle-btn {
    border-color: #FFA726 !important;
    color: #FFA726 !important;
}

.map-toggle-btn:hover {
    background-color: rgba(255, 167, 38, 0.08) !important;
}

/* Venue Map Container */
.venue-map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.venue-map-container #map {
    border-radius: 8px;
}

/* Fullscreen Map Overlay */
.map-overlay-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: white;
    display: flex;
    gap: 0;
}

.map-overlay-venues {
    flex: 0 0 auto;
    width: 606px;
    max-width: 606px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    background: #f8f9fa;
    position: relative;
    transition: width 300ms ease, opacity 300ms ease, padding 300ms ease;
}

/* Collapsed state */
.map-overlay-venues.collapsed {
    width: 0;
    min-width: 0;
    max-width: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
}

/* Venue panel collapse/expand button */
.venue-panel-collapse-btn {
    position: absolute;
    top: 50%;
    left: 606px;
    z-index: 10;
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border-radius: 4px !important;
    width: 48px !important;
    height: 32px !important;
    transform: translateY(-50%);
    transition: left 300ms ease, box-shadow 200ms ease;
}

/* Button position when panel is collapsed */
.venue-panel-collapse-btn.collapsed {
    left: 0px;
}

.venue-panel-collapse-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* Custom scrollbar for overlay venue panel */
.map-overlay-venues::-webkit-scrollbar {
    width: 8px;
}

.map-overlay-venues::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.map-overlay-venues::-webkit-scrollbar-thumb {
    background: #FFA726;
    border-radius: 4px;
}

.map-overlay-venues::-webkit-scrollbar-thumb:hover {
    background: #FF9800;
}

.map-overlay-map {
    flex: 1 1 auto;
    position: relative;
    background: white;
}

.map-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.map-close-button:hover {
    background: #f5f5f5 !important;
}

/* Responsive: Adjust overlay on medium screens */
@media (max-width: 1400px) {
    .map-overlay-venues {
        width: 606px;
        max-width: 606px;
    }

    .map-overlay-venues.collapsed {
        width: 0;
        max-width: 0;
    }

    /* Adjust button position to match panel width - on map side */
    .venue-panel-collapse-btn {
        left: 606px;
    }

    .venue-panel-collapse-btn.collapsed {
        left: 0px;
    }
}

/* Responsive: Stack vertically on tablets */
@media (max-width: 1024px) {
    .map-overlay-fullscreen {
        flex-direction: column;
    }

    .map-overlay-venues {
        width: 100%;
        max-width: 100%;
        max-height: 50vh;
        overflow-y: auto;
    }

    .map-overlay-map {
        flex: 1 1 auto;
        min-height: 50vh;
    }

    /* Hide collapse button on mobile */
    .venue-panel-collapse-btn {
        display: none;
    }

    /* On mobile, no collapse - current stacking behavior */
    .map-overlay-venues.collapsed {
        width: 100%;
        max-width: 100%;
        padding: 24px;
        opacity: 1;
        max-height: 50vh;
    }
}

/* Elegant Search Card */
/* Search card on banner - transparent background */
.elegant-search-card {
    background: transparent;
    padding: 20px 0;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Flip animation for search card - flip out */
.elegant-search-card.flip-animation,
.ai-search-card.flip-animation {
    -webkit-animation: flipCardOut 0.4s ease-in forwards;
    animation: flipCardOut 0.4s ease-in forwards;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* Flip animation - flip in */
.elegant-search-card.flip-animation-in,
.ai-search-card.flip-animation-in {
    -webkit-animation: flipCardIn 0.4s ease-out forwards;
    animation: flipCardIn 0.4s ease-out forwards;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

@-webkit-keyframes flipCardOut {
    0% {
        -webkit-transform: rotateX(0deg);
        transform: rotateX(0deg);
        opacity: 1;
    }
    100% {
        -webkit-transform: rotateX(90deg);
        transform: rotateX(90deg);
        opacity: 0;
    }
}

@keyframes flipCardOut {
    0% {
        -webkit-transform: rotateX(0deg);
        transform: rotateX(0deg);
        opacity: 1;
    }
    100% {
        -webkit-transform: rotateX(90deg);
        transform: rotateX(90deg);
        opacity: 0;
    }
}

@-webkit-keyframes flipCardIn {
    0% {
        -webkit-transform: rotateX(-90deg);
        transform: rotateX(-90deg);
        opacity: 0;
    }
    100% {
        -webkit-transform: rotateX(0deg);
        transform: rotateX(0deg);
        opacity: 1;
    }
}

@keyframes flipCardIn {
    0% {
        -webkit-transform: rotateX(-90deg);
        transform: rotateX(-90deg);
        opacity: 0;
    }
    100% {
        -webkit-transform: rotateX(0deg);
        transform: rotateX(0deg);
        opacity: 1;
    }
}

/* Search cards container */
.search-cards-container {
    position: relative;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* AI Search Card */
.ai-search-card {
    background: transparent;
    padding: 20px 0;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.ai-search-card.flip-animation {
    -webkit-animation: flipCard 0.8s ease-in-out;
    animation: flipCard 0.8s ease-in-out;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.ai-search-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ai-search-content .search-panel-title {
    display: flex;
    align-items: center;
    color: var(--mud-palette-primary);
}

.ai-search-input {
    width: 100%;
}

.ai-search-input .mud-input-slot textarea::placeholder {
    color: #6B7280 !important;
    opacity: 1 !important;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ai-search-input .mud-input-slot textarea::-webkit-input-placeholder {
    color: #6B7280 !important;
    opacity: 1 !important;
    font-style: italic;
}

.ai-search-input .mud-input-slot textarea::-moz-placeholder {
    color: #6B7280 !important;
    opacity: 1 !important;
    font-style: italic;
}

.ai-search-input .mud-input-outlined .mud-input-outlined-border {
    border-color: #E0E7EF !important;
}

.ai-search-input .mud-input-outlined:focus-within .mud-input-outlined-border {
    border-color: var(--mud-palette-primary) !important;
}

.ai-search-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 600px) {
    .ai-search-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ai-search-actions .mud-button-root {
        width: 100%;
        margin-left: 0 !important;
    }
}

/* Compact Search Cards Container */
.compact-search-cards-container {
    position: relative;
    width: 100%;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.compact-search-card {
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.compact-ai-search-card {
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Flip animations for compact mode */
.compact-search-card.flip-animation,
.compact-ai-search-card.flip-animation {
    -webkit-animation: flipCardOut 0.4s ease-in forwards;
    animation: flipCardOut 0.4s ease-in forwards;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.compact-search-card.flip-animation-in,
.compact-ai-search-card.flip-animation-in {
    -webkit-animation: flipCardIn 0.4s ease-out forwards;
    animation: flipCardIn 0.4s ease-out forwards;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* Compact AI Search Content */
.ai-search-content.compact {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #E0E7EF;
}

.ai-search-content.compact .ai-search-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.ai-search-input.compact .mud-input-slot textarea {
    font-size: 0.9rem;
}

.ai-search-actions.compact {
    gap: 8px;
}

@media (max-width: 600px) {
    .ai-search-content.compact {
        padding: 16px;
    }

    .ai-search-actions.compact {
        flex-direction: column;
        align-items: stretch;
    }

    .ai-search-actions.compact .mud-button-root {
        width: 100%;
    }
}

.elegant-search-card .mud-paper {
    background: transparent !important;
    border-radius: 16px !important;
    padding: 32px !important;
    box-shadow: none !important;
}

.elegant-search-card .mud-input-slot,
.elegant-search-card .mud-select,
.elegant-search-card .mud-input-control,
.elegant-search-card .mud-input-root {
    background: white !important;
    border-radius: 8px;
}

.elegant-search-card .mud-input-outlined .mud-input-outlined-border {
    border-color: #E0E7EF !important;
}

.elegant-search-card .mud-input-outlined:focus-within .mud-input-outlined-border {
    border-color: #FFA726 !important;
}

.elegant-search-card .mud-input-label {
    color: #5A6C7D !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.elegant-search-card .mud-slider {
    color: #FFA726 !important;
}

.elegant-search-card .mud-slider .mud-slider-thumb {
    background-color: #FFA726 !important;
    border: 3px solid white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.elegant-search-card .mud-slider .mud-slider-track {
    background-color: #E0E7EF !important;
}

.elegant-search-card .mud-expansion-panels {
    background-color: white !important;
}

/* AI Search Checkbox - Transparent Background */
.ai-checkbox-transparent,
.ai-checkbox-transparent .mud-checkbox,
.ai-checkbox-transparent .mud-button-root,
.ai-checkbox-transparent .mud-checkbox-root,
.ai-checkbox-transparent .mud-input-control,
.ai-checkbox-transparent > span {
    background-color: #D6E4F0 !important;
}

/* Elegant Find Venues Button */
.btn-elegant-find {
    background: #003b95 !important;
    color: white !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.1s !important;
}

.btn-elegant-find .mud-icon-root {
    color: white !important;
}

.btn-elegant-find:hover {
    background: #002d73 !important;
    transform: translateY(-1px);
}

/* Elegant Results Section */
.elegant-results-header {
    color: #1A1A2E;
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px !important;
}

/* Desktop - header and buttons inline */
@media (min-width: 769px) {
    .results-section > .elegant-results-header,
    .results-section > .results-buttons-container {
        display: inline-flex;
    }

    .results-section {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .results-buttons-container {
        margin-left: auto;
    }
}

/* Venue Grid Container - 3 columns grid */
.venue-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Venue List Container - Single column for horizontal cards */
.venue-list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Elegant Venue Cards */
.elegant-venue-card {
    height: 520px;
    display: flex;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

/* Tablet responsive - 2 columns */
@media (max-width: 1024px) {
    .venue-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile responsive - 1 column */
@media (max-width: 599px) {
    .venue-grid-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.elegant-venue-card .mud-paper {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    height: 100%;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.elegant-venue-card .mud-card-media {
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important;
}

.elegant-venue-card .mud-carousel {
    border-radius: 12px 12px 0 0 !important;
}

.elegant-venue-card .mud-carousel .mud-carousel-item,
.elegant-venue-card .mud-carousel .mud-carousel-item > div {
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important;
}


.elegant-venue-card .mud-card-content {
    flex: 1;
    overflow: hidden;
}

.elegant-venue-card .venue-name {
    font-size: 17px;
    font-weight: 600;
    color: #1A1A2E;
}

.elegant-venue-card .venue-location {
    color: #FFA726;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    flex-shrink: 0;
    min-height: 20px;
}

.elegant-venue-card .venue-rating {
    color: #FFA726;
}

.elegant-venue-card .venue-description {
    color: #5A6C7D;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elegant-venue-card .venue-badges {
    min-height: 32px;
    margin-top: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Responsive */
@media (max-width: 768px) {
    .elegant-hero h1 {
        font-size: 32px;
    }

    .elegant-search-card .mud-paper {
        padding: 24px !important;
    }
}

/* Map marker tooltip for horizontal venue card (dynamically positioned near pin) */
.map-marker-tooltip {
    position: fixed;
    z-index: 999;
    pointer-events: auto; /* Allow clicking on the venue card */
    animation: tooltipFadeIn 200ms ease-in-out;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
    width: 558px;  /* Horizontal card width */
}

/* Additional styling for tooltip positioned above pin */
.map-marker-tooltip.tooltip-above {
    /* No additional transforms needed - position is calculated inline */
}

/* Additional styling for tooltip positioned below pin */
.map-marker-tooltip.tooltip-below {
    /* No additional transforms needed - position is calculated inline */
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Small venue name tooltip on pin hover */
.map-pin-name-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 60px)); /* Above center */
    z-index: 998;
    pointer-events: none;
    background: rgba(26, 26, 46, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: tooltipFadeIn 150ms ease-in-out;
}

.map-pin-name-tooltip strong {
    font-weight: 600;
    margin-right: 8px;
}

.map-pin-name-tooltip .rating {
    color: #FFA726;
    font-size: 13px;
}

/* Label shown above highlighted pin when hovering over venue card */
.map-pin-highlight-label {
    --label-offset: -80px; /* Distance above the pin */
    position: absolute;
    transform: translate(-50%, calc(-100% + var(--label-offset))); /* Position above the enlarged pin */
    background: white;
    color: #1A1A2E;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 2px solid #FFA726;
    z-index: 1000;
    pointer-events: none;
    animation: labelBounceIn 200ms ease-out;
}

@keyframes labelBounceIn {
    0% {
        transform: translate(-50%, calc(-100% + var(--label-offset))) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, calc(-100% + var(--label-offset))) scale(1.05);
    }
    100% {
        transform: translate(-50%, calc(-100% + var(--label-offset))) scale(1);
        opacity: 1;
    }
}

/* Wrapper for venue cards in list to handle hover without affecting card styles */
.venue-card-wrapper {
    cursor: pointer;
}

/* Highlighted venue card in left panel when pin is hovered */
.venue-card-highlighted {
    background: #FFF9E6 !important;
    border: 2px solid #FFA726 !important;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(255, 167, 38, 0.3) !important;
    transition: all 200ms ease-in-out;
}

/* Ensure highlight is visible */
.venue-card-highlighted .mud-paper {
    border: 2px solid #FFA726 !important;
}

/* Package Booking Dialog - Two-Panel Layout */

/* Sticky booking panel on desktop */
@media (min-width: 960px) {
    .booking-panel {
        position: sticky;
        top: 0;
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Package panel scrolling */
.package-panel {
    max-height: 70vh;
    overflow-y: auto;
    width: 100%;
}

/* Ensure package expansion panels take full width */
.package-panel .mud-expansion-panels {
    width: 100%;
}

.package-panel .mud-expansion-panel {
    width: 100%;
}

.package-panel .mud-radio-group {
    width: 100%;
}

/* Selected package highlight - removed border, using text indicator instead */

/* Mobile spacing */
@media (max-width: 959px) {
    .package-panel {
        margin-bottom: 24px;
    }
}

/* Custom 1240px max-width for venue offerings dialog (packages & pricing) */
.venue-offerings-dialog {
    max-width: 1240px !important;
}

.venue-offerings-dialog .mud-dialog {
    overflow: hidden !important;
}

.venue-offerings-dialog .mud-dialog-title {
    background: #003b95 !important;
    color: white !important;
    padding: 16px 24px !important;
    margin: 0 !important;
}

.venue-offerings-dialog .mud-dialog-title .mud-icon-root {
    color: white !important;
}

.venue-offerings-dialog .mud-expand-panel-header {
    background: #F5F5F5 !important;
    padding: 16px 18px !important;
    border: 1px solid #003b95 !important;
    border-radius: 4px !important;
}

/* Add hover effect for expansion panels */
.venue-offerings-dialog .mud-expand-panel-header:hover {
    background: #E8EAF6 !important;
}

/* Package expansion panel with all borders */
.package-panel-bordered {
    border: 1px solid var(--mud-palette-lines-default) !important;
    border-radius: 4px !important;
}
/* Horizontal Search Bar */
/* Unified Search Bar - Booking.com Style */
.horizontal-search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    gap: 16px;
}

.horizontal-search-bar .search-field {
    display: flex;
    flex-direction: column;
    max-width: 200px;
    flex: 1 1 200px;
}

.compact-search-bar-container .horizontal-search-bar.compact-mode .search-field {
    display: flex;
    flex-direction: column;
    max-width: 268px;
    flex: 1 1 200px;
}

.horizontal-search-bar .search-field.search-field-guest-count, .compact-search-bar-container .horizontal-search-bar.compact-mode .search-field.search-field-guest-count {
    max-width: 90px;
    flex: 1 1 90px;
}

.horizontal-search-bar .recent-searches-wrapper {
    flex: 1 1 100%;
    width: 100%;
}

@media (max-width: 768px) {
    .horizontal-search-bar .search-field, .horizontal-search-bar .search-field.search-field-guest-count, .compact-search-bar-container .horizontal-search-bar.compact-mode .search-field, .horizontal-search-bar .search-field.search-field-guest-count, .compact-search-bar-container .horizontal-search-bar.compact-mode .search-field.search-field-guest-count {
        min-width: 100%;
        flex: 1 1 100%;
        width: 100%;
    }
}

.search-field-label {
    font-size: 12px;
    font-weight: 600;
    color: #5A6C7D;
}

@media (max-width: 768px) {
    .search-field-guest-count {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Reduce spacing between checkbox and icon in venue type multi-select dropdown */
.search-field-venue-types .mud-list-item-icon {
    max-width: 30px !important;
}

.search-field-venue-types .d-flex.align-center .mud-icon-root {
    margin-right: 6px !important;
}

/* Override MudBlazor dropdown list item defaults */
.mud-list-item-icon {
    min-width: 30px !important;
}

.mud-list-item-text {
    white-space: nowrap !important;
}

.search-button {
    flex: 0 0 auto;
}

.search-bar-button {
    background-color: #003b95 !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    text-transform: none !important;
    font-size: 16px !important;
    min-width: 120px !important;
    height: 48px !important;
    flex-shrink: 0;
}

.search-bar-button:hover {
    background-color: #002d73 !important;
}

.search-field-location {
}

.search-field-radius {
}

.search-button {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 5px;
}

.search-button .mud-button-root {
    white-space: nowrap;
    font-size: 14px;
}

/* Tablet (600px - 1024px) */
@media (max-width: 1024px) {
    .search-field-party-type,
    .search-field-venue-types,
    .search-field-location,
    .search-field-radius {
        flex: 1 1 calc(50% - 8px);
        min-width: 150px;
    }

    .search-button {
        flex: 1 1 100%;
    }
}

/* Mobile (<600px) */
@media (max-width: 600px) {
    .horizontal-search-bar {
        flex-direction: column;
        padding: 16px;
        gap: 5px;
    }

    .search-field-party-type,
    .search-field-venue-types,
    .search-field-location,
    .search-field-radius,
    .search-button {
        flex: 1 1 100%;
        width: 100%;
    }

    .search-bar-button {
        width: 100%;
        margin-top: 12px;
    }
}

/* Filter Panel Layout Styles */
.results-container-with-filters {
    display: flex;
    gap: 0;
    width: 100%;
    align-items: flex-start;
}

.results-section {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Filter toggle button styling */
.filter-toggle-btn {
    border-color: #1976D2 !important;
    color: #1976D2 !important;
}

.filter-toggle-btn:hover {
    background-color: rgba(25, 118, 210, 0.08) !important;
}

/* Results header row - inline header and buttons */
.results-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.results-header-row .elegant-results-header {
    margin-bottom: 0;
}

.results-buttons-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 600px) {
    .results-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .results-buttons-group {
        flex-direction: column;
        width: 100%;
    }

    .results-buttons-group .mud-button-root {
        width: 100%;
    }
}

/* Filter Overlay - only visible on mobile */
.filter-overlay {
    display: none;
}

@media (max-width: 768px) {
    .filter-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1299;
        animation: fadeIn 0.3s ease-in-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* Mobile responsive - stack filter panel */
@media (max-width: 768px) {
    .results-container-with-filters {
        flex-direction: column;
        padding: 20px;
    }

    .filter-toggle-btn {
        /* margin-bottom: 12px; */
    }

    .results-buttons-container {
        margin-bottom: 20px;
        gap: 6px !important;
    }
}

/* Tablet and desktop - ensure proper spacing */
@media (min-width: 769px) {
    .results-section {
        padding-left: 16px;
    }
}

/* Section Containers (shared styles for FAQ, etc.) */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212121;
    text-align: center;
    margin-bottom: 16px;
}

/* FAQ Section */
.faq-section {
    background: #ffffff;
    /* Break out of MudContainer to be full width */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.faq-panels {
    max-width: 800px;
    margin: 0 auto;
}

.faq-panels .mud-expand-panel {
    margin-bottom: 12px;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.faq-panels .mud-expand-panel-header {
    padding: 20px 24px;
    font-weight: 500;
}

.faq-panels .mud-expand-panel-content {
    padding: 0 24px 20px;
}

.faq-panels p {
    color: #757575;
    line-height: 1.7;
}

/* Footer */
.landing-footer {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    /* Break out of MudContainer to be full width */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #757575;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #212121;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: #757575;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #003b95;
}

.footer-bottom {
    background: #e8e8e8;
    padding: 20px 24px;
    text-align: center;
    /* Full width inside the already-broken-out footer */
    width: 100%;
}

.footer-bottom p {
    color: #757575;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive FAQ & Footer */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-container {
        padding: 60px 16px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 60px 16px;
    }

    .section-title {
        font-size: 1.6rem;
    }
}
