@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css');

:root {
    --accent-color: #232839;
    --highlight-color: #292f43;
    --bg-color: #f7f7f7;
    --border-color: #e0e0e0;
    --header-height: 4rem;
    --text-color: #050505;
    --primary-color: #3DF59E;
    --primary-color-rgb: 61, 245, 158;
    --secondary-color: #7F23CB;
    --success-color: #3DF59E;
    --warning-color: #FF9322;
    --danger-color: #EA0B0B;
    --info-color: #3457FF;
}

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

body {
    font-family: "Syne", sans-serif;
    font-weight: 500;
    font-size: 14px;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100dvh;
    overflow: hidden;
    font-variant-numeric: lining-nums proportional-nums;
    font-feature-settings: 'ss04' on;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

button {
    font-family: "Syne", sans-serif !important;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.75);
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 2.5rem;
    height: 2.5rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding-right: 3rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}


.btn-primary { background: var(--primary-color); color: black; }
.btn-success { background: var(--primary-color); color: black; }
.btn-outline { border: 1px solid #ddd; background: white; color: #333;  }
.btn-outline:hover { background: #f0f0f0; }

.app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--border-color);
    display: flex; /* Show on desktop and mobile */
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.header-club-logo {
    height: 3rem;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.header-club-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.header-title {
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-club-contact {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.club-info-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
    text-decoration: none;
}

.club-info-item i {
    flex-shrink: 0;
    font-size: 0.75rem;
}

.club-info-item i::before {
    color: var(--primary-color) !important;
}

.desktop-contact {
    overflow: hidden;
    text-overflow: ellipsis;
}

:root {
    --step-indicator-height: 4.5rem;
    --footer-height: 5rem;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    position: relative;
}

/* Mobile/tablet: with header */
@media screen and (max-width: 1024px) {
    .dashboard-container {
        height: calc(100% - var(--header-height) - var(--step-indicator-height) - var(--footer-height));
    }
}

/* Desktop: with header but without step indicator */
@media screen and (min-width: 1025px) {
    .dashboard-container {
        height: calc(100% - var(--header-height) - var(--footer-height));
    }
}

/* .dashboard-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../fondo_ticketing_2.png") center/cover no-repeat;
  filter: blur(10px);
  transform: scale(1.1);
  z-index: -1;
} */


/* Desktop layout - center and right sidebar only */
@media screen and (min-width: 1025px) {
    /* Hide left sidebar on desktop */
    .filters-sidebar {
        display: none !important;
    }

    /* Two-column layout: center and right sidebar when sidebar exists */
    .dashboard-container:has(.listings-sidebar) {
        grid-template-columns: 1fr 25rem;
    }

    /* Single column when no right sidebar */
    .dashboard-container:not(:has(.listings-sidebar)) {
        grid-template-columns: 1fr;
    }
}

/* Left Sidebar: Club Info & Filters */
.filters-sidebar {
    background: white;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    overflow-y: auto;
}

.ticket-qty-selector {
    display: flex;
    gap: 0.5rem;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.qty-btn.active, .qty-btn:hover {
    background: var(--primary-color);
    color: black;
    border-color: var(--primary-color);
}

.mobile-nav-buttons {
    position: absolute;
}

/* Center: Map */
.map-container {
    /* background: #f9f9f9; */
    position: relative;
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.map-wrapper {
    width: 100%;
    position: relative;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.25rem;
    display: block;
    margin: auto;
}

.select-sector {    
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 25rem;
}

.map-svg-container {
    width: 100%;
    position: relative;
    margin-top: 9rem;
    max-height: calc(100% - 15rem);
    overflow: auto;
}

.map-svg-container svg {
    width: 100%;
    height: auto;
}

/* Right Sidebar: Listings */
.listings-sidebar {
    background: #f8f8f8;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.listings-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.listings-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.listings-header p {
    font-size: 0.8rem;
    color: #777;
}

.listings-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Show ticket listings in right sidebar on desktop */
@media screen and (min-width: 1025px) {
    .listings-sidebar .listings-scroll {
        display: block;
    }

    .listings-sidebar .listings-header {
        border-bottom: 1px solid var(--border-color);
        padding: 1.25rem 1.5rem;
    }

    .listings-sidebar .listings-header h3 {
        margin: 0;
        font-size: 1.1rem;
    }

    .listings-sidebar .listings-header p {
        display: block;
    }

    .listings-sidebar .listings-header .mobile-step-navigation {
        display: none !important;
    }

    .listings-sidebar .listings-header .mobile-only {
        display: none !important;
    }
}

.ticket-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    overflow: hidden;
}

.ticket-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border-color: #d0d0d0;
}

.ticket-card.selected {
    border-color: var(--primary-color);
    background-color: #f8faff;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    transition: all 0.2s;
}

.ticket-header:hover {
    background-color: rgba(0, 14, 38, 0.03);
}

.ticket-expanded-content {
    animation: slideDown 0.3s ease-out;
    margin-top: 0.5rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 1000px;
        transform: translateY(0);
    }
}

.ticket-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.ticket-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.ticket-info {
    font-size: 0.85rem;
    color: #666;
    margin: 0.5rem 0;
}

.ticket-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ticket-actions button {
    width: 100%;
}

.cart-summary {
    background: white;
    border-top: 1px solid #eee;
    padding: 1.5rem;
}

/* Form Elements for Modals */
form {
    padding: 2rem;
    max-width: 100%;
}

label {
    display: block;
    margin-bottom: 1rem;
}

label span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

label input,
label textarea,
label select {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 0.375rem;
    color: #000;
}

label input:focus,
label textarea:focus,
label select:focus {
    outline: none;
    border-color: var(--primary-color);
}

label input::placeholder,
label textarea::placeholder {
    color: #999;
}

button {
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

button[type="submit"],
button.btn-primary {
    background: var(--info-color);
    color: white;
}

button[type="submit"]:hover,
button.btn-primary:hover {
    opacity: 0.9;
}

button.btn-success {
    background: var(--primary-color);
    color: black;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
}

button.btn-success:hover {
    background: #218838;
}

/* Footer */
.app-footer {
    height: auto;
    background: #fafafa;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    z-index: 10;
    gap: 4rem;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 350px;
}

.footer-icon {
    font-size: 2rem;
    color: var(--text-color);
    flex-shrink: 0;
}

.footer-redsys {
    position: absolute; 
    right: 8rem;
    height: 2.75rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

/* Utility */
.hidden { display: none !important; }

/* Step Indicator - visible en desktop y mobile */
.mobile-step-indicator {
    display: none; /* Hidden on desktop by default */
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #fafafa;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 5;
}

.mobile-step-indicator .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.mobile-step-indicator .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.mobile-step-indicator .step.active .step-number {
    background: var(--primary-color);
    color: black;
    transform: scale(1.1);
}

.mobile-step-indicator .step.completed .step-number {
    background: var(--primary-color);
    color: black;
}

.mobile-step-indicator .step-label {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-step-indicator .step.active .step-label {
    color: black;
    font-weight: 700;
}

.mobile-step-indicator .step.completed .step-label {
    color: black;
    font-weight: 600;
}

.mobile-step-indicator .step-divider {
    flex: 1;
    height: 2px;
    background: #eee;
    margin: 0 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.mobile-step-indicator .step-divider.active {
    background: var(--primary-color);
    color: black;
}

/* Mobile Cart Fixed Footer & Panel */
.mobile-cart-fixed-footer {
    display: none !important;
}

.mobile-cart-panel {
    display: none;
}

/* Mobile step navigation buttons - hidden on desktop */
.mobile-step-navigation {
    display: none;
}

/* Mobile-only elements - hidden on desktop */
.mobile-only {
    display: none;
}

/* Event Cards - List Style */
.events-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.events-container-header {
    margin-bottom: 2rem;
}

.events-container-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.events-container-header p {
    font-size: 0.95rem;
    color: #666;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.2s;
    position: relative;
}

.event-item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.event-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    text-align: center;
    padding-right: 1.5rem;
    border-right: 1px solid #e5e5e5;
}

.event-date-day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-color);
}

.event-date-month {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-top: 0.25rem;
}

.event-date-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.event-info {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.35rem;
}

.event-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.event-action {
    margin-left: auto;
}

.btn-comprar {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-comprar:hover {
    background: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-comprar i {
    font-size: 0.85rem;
}

@media screen and (max-width: 1024px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        padding-bottom: 90px; /* Space for fixed cart footer */
    }

    .footer-redsys {
        position: static;
    }

    .mobile-nav-buttons, .selected-event-banner, .select-sector {
        position: static !important;
        width: auto !important;
    }

    .map-svg-container {
        margin-top: 0;
        max-height: auto !important;
        overflow: visible !important;
    }

    .app {
        height: auto;
        min-height: 100%;
    }

    /* Hide filters sidebar on mobile/tablet */
    .filters-sidebar {
        display: none !important;
    }

    /* Show club-info in mobile header */
    .club-info {
        display: flex !important;
    }

    /* Mobile Step Indicator - show on mobile/tablet */
    .mobile-step-indicator {
        display: flex !important;
        padding: 1rem 1.5rem;
        position: sticky;
        top: 0;
        z-index: 50;
    }

    /* Ajustar footer para mobile y tablet */
    .app-footer {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .footer-item {
        max-width: 100%;
        justify-content: flex-start;
    }

    .footer-icon {
        font-size: 1.5rem;
    }

    .footer-title {
        font-size: 0.85rem;
    }

    .footer-description {
        font-size: 0.75rem;
    }

    /* Ajustes específicos para tablet */
    @media screen and (min-width: 641px) and (max-width: 1024px) {
        .app-footer {
            flex-direction: row;
            gap: 2rem;
            padding: 1rem 1.5rem;
        }

        .footer-item {
            max-width: 250px;
        }
    }

    /* Mobile Cart Fixed Footer */
    .mobile-cart-fixed-footer {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e5e5;
        padding: 1rem 1.5rem;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
        z-index: 100;
        gap: 0.75rem;
    }

    .mobile-cart-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-cart-actions {
        display: flex;
        gap: 0.75rem;
        width: 100%;
    }

    .mobile-cart-actions button {
        flex: 1;
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .mobile-cart-actions button.btn-outline {
        border: 2px solid #333;
        background: white;
        color: #333;
    }

    .mobile-cart-actions button i {
        font-size: 1rem;
    }

    /* Mobile Cart Panel */
    .mobile-cart-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
        z-index: 101;
        max-height: 70vh;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
    }

    .mobile-cart-panel.open {
        transform: translateY(0);
    }

    .mobile-cart-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-bottom: 2px solid #eee;
        background: #f8f9fa;
    }

    .mobile-cart-header h3 {
        margin: 0;
        font-size: 1.1rem;
    }

    .mobile-cart-content {
        flex: 1;
        overflow-y: auto;
        padding: 1rem 1.5rem;
    }

    .mobile-cart-item {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 0.75rem;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #eee;
    }

    .mobile-cart-footer {
        padding: 1.5rem;
        border-top: 2px solid #eee;
        background: white;
    }

    .dashboard-container {
        display: block;
        position: relative;
        height: auto;
        background-image: none !important;
    }

    .map-container, .listings-sidebar {
        width: 100%;
        height: auto;
        border: none;
        border-bottom: 3px solid #eee;
        overflow: visible;
        animation: none;
    }

    .map-container {
        order: 2;
        min-height: auto;
        padding: 1.5rem;
        overflow: visible;
    }

    .listings-sidebar {
        order: 3;
        display: flex;
        flex-direction: column;
        background: white;
    }

    .listings-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        border-bottom: 1px solid #eee;
    }

    .listings-scroll {
        overflow: visible;
        padding: 1.5rem;
        flex: none;
    }

    /* Step-based visibility control */
    .step-content {
        display: none !important;
    }

    .dashboard-container[data-step="1"] .step-content.step-1 {
        display: block !important;
    }

    .dashboard-container[data-step="2"] .step-content.step-2 {
        display: block !important;
    }

    .dashboard-container[data-step="3"] .step-content.step-3 {
        display: flex !important;
    }

    .dashboard-container[data-step="4"] .step-content.step-3 {
        display: flex !important;
    }

    .dashboard-container[data-step="5"] .step-content.step-3 {
        display: flex !important;
    }

    /* Always show map in step 2 */
    .dashboard-container[data-step="2"] .map-container {
        display: flex !important;
    }

    /* Mobile step navigation buttons */
    .mobile-step-navigation {
        display: block;
        margin-top: 1rem;
    }

    /* Hide desktop-only elements on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile-only elements on mobile */
    .mobile-only {
        display: block !important;
    }

    .mobile-only.mobile-only-flex {
        display: flex !important;
    }

    .events-container {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .events-container-header h2 {
        font-size: 1.25rem;
    }

    .event-item {
        padding: 1.25rem;
        gap: 1rem;
    }

    .event-date {
        min-width: 70px;
        padding-right: 1rem;
    }

    .event-date-day {
        font-size: 2rem;
    }

    .btn-comprar {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }

    .club-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
        padding-bottom: 1.5rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid #eee;
    }

    .club-info img {
        max-width: 20rem;
        margin-bottom: 0;
    }

    .club-info h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .club-info p {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
        justify-content: center;
    }

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

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

    .filter-group h3 {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .filter-group select {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .ticket-card {
        margin-bottom: 1.5rem;
        padding: 1.25rem;
    }

    .map-wrapper {
        max-width: 100%;
        padding: 1rem;
    }

    .map-wrapper h2 {
        font-size: 1.1rem;
    }

    .map-svg-container svg {
        max-height: 40dvh;
    }
}

@media screen and (max-width: 640px) {
    .app {
        padding-top: var(--header-height);
    }

    .header {
        padding: 0.75rem 1rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        gap: 0.5rem;
    }

    .mobile-step-indicator {
        top: var(--header-height);
    }

    .header-left {
        gap: 0.5rem;
    }

    .header-club-logo {
        height: 2.5rem;
    }

    .header-title {
        font-size: 0.9rem;
    }

    .header-club-contact {
        gap: 0.5rem;
        font-size: 0.7rem;
    }

    /* Hide text in mobile, show only icons with tooltips */
    .desktop-contact {
        display: none;
    }

    .club-info-item {
        position: relative;
    }

    /* Tooltip enhancement for mobile */
    .club-info-item i {
        cursor: help;
        font-size: 0.85rem;
    }

    .header .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header .btn .btn-text {
        display: none;
    }

    .header .btn i {
        margin-right: 0 !important;
    }

    /* filters-sidebar removed - info moved to header */

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

    .filter-group h3 {
        font-size: 0.8rem;
    }

    .ticket-card {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .ticket-price {
        font-size: 1.15rem !important;
    }

    .ticket-title {
        font-size: 0.95rem !important;
    }

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

    .map-container {
        padding: 1rem;
    }

    .map-wrapper {
        padding: 0.75rem;
    }

    .map-wrapper h2 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .events-container {
        background: transparent;
        box-shadow: none;
        padding: 1rem;
    }

    .events-container-header {
        margin-bottom: 1.5rem;
    }

    .events-container-header h2 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .events-container-header p {
        font-size: 0.95rem;
        color: #666;
    }

    .event-item {
        padding: 1.5rem;
        gap: 0;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 16px;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: none;
    }

    .event-item:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

    .event-date {
        min-width: 100%;
        padding-right: 0;
        border-right: none;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e5e5e5;
        margin-bottom: 1rem;
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        text-align: left;
    }

    .event-date-day {
        font-size: 2rem;
        font-weight: 700;
        margin-right: 0.5rem;
    }

    .event-date-month {
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
        margin-top: 0;
        margin-right: 1rem;
    }

    .event-date-time {
        font-size: 0.85rem;
        color: #666;
        margin-top: 0;
        margin-left: auto;
    }

    .event-info {
        width: 100%;
        margin-bottom: 1rem;
    }

    .event-title {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .event-subtitle {
        font-size: 0.95rem;
        color: #666;
    }

    .event-action {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
    }

    .btn-comprar {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 12px;
        background: var(--primary-color);
        color: black;
    }

    .btn-comprar i {
        margin-left: 0.5rem;
    }

    .listings-header {
        padding: 1rem;
    }

    .listings-header h3 {
        font-size: 1rem;
    }

    .listings-scroll {
        padding: 1rem;
    }

    .cart-summary {
        padding: 1rem;
    }

    .listings-sidebar {
        animation: none;
    }

    /* Ocultar el resumen del carrito en el sidebar en móvil (se usa el botón flotante) */
    .listings-sidebar .cart-summary {
        display: none !important;
    }

    .map-container h2 {
        font-size: 1.1rem;
    }

    .map-container p {
        font-size: 0.9rem;
    }

    /* Ajustes para el texto de instrucciones */
    .map-container > div > div[style*="padding: 3rem"] {
        padding: 2rem 1rem !important;
    }

    .map-container > div > div[style*="padding: 1.5rem"] {
        padding: 1rem !important;
    }

    /* Mobile Cart Fixed Footer - Ajustes para móvil pequeño */
    .mobile-cart-fixed-footer {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        padding-bottom: 2rem;
    }

    .mobile-cart-total span {
        font-size: 1.1rem !important;
    }

    .mobile-cart-actions {
        gap: 0.5rem;
    }

    .mobile-cart-actions button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* Selected Event Banner - Shows selected event info after step 1 */
.selected-event-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    margin-top: 4rem;
}

.selected-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    text-align: center;
    padding-right: 1.5rem;
    border-right: 1px solid #e5e5e5;
}

.selected-event-date-day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-color);
}

.selected-event-date-month {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-top: 0.25rem;
}

.selected-event-date-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.selected-event-info {
    flex: 1;
    min-width: 0;
}

.selected-event-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.35rem;
}

.selected-event-subtitle {
    font-size: 0.9rem;
    color: #666;
}

/* Hide mobile event banner in step 3 on desktop */
.listings-sidebar .selected-event-banner.mobile-only {
    display: none;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    /* Show mobile event banner in step 3 on mobile/tablet */
    .listings-sidebar .selected-event-banner.mobile-only {
        display: flex;
    }
}

@media screen and (max-width: 640px) {
    .selected-event-banner {
        padding: 1rem;
        gap: 1rem;
        margin-top: 0;
    }

    .selected-event-date {
        min-width: 60px;
        padding-right: 1rem;
    }

    .selected-event-date-day {
        font-size: 1.75rem;
    }

    .selected-event-date-month {
        font-size: 0.75rem;
    }

    .selected-event-title {
        font-size: 0.95rem;
    }

    .selected-event-subtitle {
        font-size: 0.85rem;
    }
}

/* Modal de entradas compradas */
.resumen {
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.resumen ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resumen li {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s;
}

.resumen li:hover {
    border-color: #8CCCE0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.resumen .tipo-entrada {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resumen .titulo {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resumen .titulo::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #8CCCE0;
}

.resumen .fecha {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resumen .fecha::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #8CCCE0;
}

.resumen .entrada-acciones {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.resumen button {
    cursor: pointer;
    border: 0;
    padding: 0.75rem 1.5rem;
    background-color: #8CCCE0;
    color: #000;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
}

.resumen button:hover {
    background-color: #6ba5c0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(140, 204, 224, 0.3);
}

.resumen .modal-footer {
    margin-top: 2rem;
    padding-top: 0;
    border-top: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.resumen .modal-footer button.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.resumen .modal-footer button.btn-secondary:hover {
    background-color: #e0e0e0;
}

@media screen and (max-width: 640px) {
    .resumen li {
        padding: 1rem;
    }

    .resumen .tipo-entrada {
        font-size: 0.95rem;
    }

    .resumen .titulo,
    .resumen .fecha {
        font-size: 0.85rem;
    }

    .resumen button {
        width: 100%;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .resumen .modal-footer {
        flex-direction: column;
    }

    .resumen .modal-footer button {
        width: 100%;
    }
}

/* Black Footer */
.black-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #333;
}

.black-footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    font-size: 0.85rem;
}

.club-federation {
    color: #cccccc;
    font-weight: 400;
}

.developed-by {
    color: #cccccc;
    font-weight: 400;
}

.developed-by strong {
    color: #ffffff;
    font-weight: 700;
}

#map-svg-container {
    height: 40rem;
}

@media screen and (max-width: 640px) {

    #map-svg-container {
        height: 15rem;
    }

    .black-footer {
        padding: 1rem;
    }

    .black-footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.75rem;
    }
}

/* Language Selector - Dropdown */
.language-selector {
    position: relative;
    margin: 0 0.5rem;
}

.lang-btn-selected {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Syne", sans-serif;
}

.lang-btn-selected:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.lang-btn-selected .flag {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-btn-selected .lang-text {
    font-weight: 600;
    font-size: 0.85rem;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1000;
    min-width: 150px;
}

.lang-dropdown.open {
    display: block;
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
    font-family: "Syne", sans-serif;
}

.lang-option:hover {
    background: #f5f5f5;
}

.lang-option.active {
    background: var(--primary-color);
    color: black;
    font-weight: 700;
}

.lang-option .flag {
    font-size: 1.3rem;
    line-height: 1;
}

.lang-option .lang-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tablet adjustments for language selector */
@media screen and (max-width: 1024px) {
    .language-selector {
        margin: 0 0.35rem;
    }

    .lang-btn-selected {
        padding: 0.45rem 0.6rem;
    }

    .lang-btn-selected .flag {
        font-size: 1.1rem;
    }

    .lang-btn-selected .lang-text {
        font-size: 0.75rem;
    }

    .lang-option {
        padding: 0.65rem 0.85rem;
    }

    .lang-option .flag {
        font-size: 1.2rem;
    }

    .lang-option .lang-text {
        font-size: 0.85rem;
    }
}

/* Mobile adjustments for language selector */
@media screen and (max-width: 640px) {
    .language-selector {
        margin: 0 0.15rem;
    }

    .lang-btn-selected {
        padding: 0.35rem 0.45rem;
        border-width: 1.5px;
        gap: 0.2rem;
    }

    .lang-btn-selected .flag {
        font-size: 0.95rem;
    }

    .lang-btn-selected .lang-text {
        font-size: 0.65rem;
        font-weight: 700;
        display: none;
    }

    .lang-dropdown {
        min-width: 130px;
    }

    .lang-option {
        padding: 0.6rem 0.75rem;
    }

    .lang-option .flag {
        font-size: 1.1rem;
    }

    .lang-option .lang-text {
        font-size: 0.8rem;
    }
}
