@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.tours {
    padding: 10px 0;
    color: #fff;
    position: relative;
    background: #001140;
}

.tours-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 140px 20px 40px 20px;
    position: relative;
}

.tours-bg-1, .tours-bg-2, .tours-bg-3, .tours-bg-4 {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.tours-bg-1.animate, .tours-bg-2.animate, .tours-bg-3.animate, .tours-bg-4.animate {
    opacity: 1;
    transform: translateY(0);
}

.tours-bg-1 {
    position: absolute;
    width: 385px;
    height: 570px;
    object-fit: contain;
    pointer-events: none;
    top: 10px;
    left: -80px;
}

.tours-bg-2 {
    position: absolute;
    width: 630px;
    height: 430px;
    object-fit: contain;
    pointer-events: none;
    top: 860px;
    right: -80px;
}

.tours-bg-3 {
    position: absolute;
    width: 630px;
    height: 430px;
    object-fit: contain;
    pointer-events: none;
    top: 1430px;
    left: -80px;
}

.tours-bg-4 {
    position: absolute;
    width: 385px;
    height: 570px;
    object-fit: contain;
    pointer-events: none;
    top: 1990px;
    right: -80px;
}
    
.tours-title {
    font-family: 'Bodoni 72', serif;
    font-size: 2.625rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.tours-subtitle {
    font-family: 'Bodoni 72', serif;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.city-filter-container {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 20px;
}

.city-filter-wrapper {
    margin-bottom: 1rem;
}

.city-filter-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 300;
}

.city-filter-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px;
}

.city-filter-button {
    width: 100%;
    padding: 12px 20px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.city-filter-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.city-filter-button.open {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.city-filter-button-text {
    flex: 1;
}

.city-filter-arrow {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.city-filter-button.open .city-filter-arrow {
    transform: rotate(180deg);
}

.city-filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: #001140;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.city-filter-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.city-filter-option {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.city-filter-option:last-child {
    border-bottom: none;
}

.city-filter-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.city-filter-option.selected {
    background-color: rgba(255, 255, 255, 0.15);
}

.city-filter-option input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    background-color: transparent;
    position: relative;
    flex-shrink: 0;
}

.city-filter-option input[type="checkbox"]:checked {
    background-color: #fff;
    border-color: #fff;
}

.city-filter-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #001140;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.city-filter-option label {
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #fff;
    flex: 1;
    user-select: none;
}

.selected-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.selected-city-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: #fff;
}

.selected-city-tag span {
    flex: 1;
}

.remove-city {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-weight: 300;
}

.remove-city:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.tour-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tour-item-container {
    margin-bottom: -1px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.tour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    transition: background-color 0.3s ease;
}

.tour-item-container:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.tour-date {
    font-family: 'Bodoni 72', serif;
    min-width: 120px;
    text-align: left;
}

.tour-date .date {
    font-size: 1.55rem;
    line-height: 1;
}

.tour-date .year {
    font-size: 1.875rem;
    line-height: 1;
    margin-top: 5px;
}

.tour-date .time {
    font-size: 1rem;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tour-date .time .beginning {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.tour-date .time .time-value {
    font-size: 1rem;
}

.tour-location {
    flex-grow: 1;
    padding: 0 20px;
}

.tour-location h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.tour-location p {
    margin: 5px 0 0;
    font-weight: 300;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.7);
}

.btn-tickets {
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Montserrat', serif;
    font-size: 1.25rem;
    font-weight: 300;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    padding-right: 45px;
}

.btn-tickets::after {
    content: '';
    width: 8px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    position: absolute;
    right: 25px;
    top: calc(50% - 6px);
}

.tour-item-container.active .btn-tickets::after {
    transform: rotate(-135deg);
    top: calc(50% - 2px);
}

.btn-tickets.disabled::after {
    opacity: 0.5;
}

.btn-tickets.disabled {
    pointer-events: none;
    opacity: 0.7;
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.5);
}

.btn-tickets.sold-out {
    pointer-events: none;
    opacity: 0.7;
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.btn-tickets.sold-out::after {
    display: none;
}

.btn-tickets:hover {
    background-color: #fff;
    color: #00205B;
}

.ticket-operators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 0;
    margin: 0;
    overflow: hidden;
}

.tour-item-container.active .ticket-operators {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    height: auto;
    margin-top: -10px;
    padding: 10px 40px 30px;
}

.ticket-operator {
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-operator:hover {
    background: #fff;
    color: #00205B;
}

.ticket-operator span {
    display: block;
    text-align: center;
}

@media (max-width: 768px) {
    .tours-container {
        padding: 20px 0;
    }

    .tours-title {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }

    .tours-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .city-filter-container {
        padding: 0 15px;
        margin-bottom: 1.5rem;
    }

    .city-filter-dropdown {
        max-width: 100%;
    }

    .city-filter-button {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .city-filter-menu {
        max-height: 250px;
    }

    .city-filter-option {
        padding: 10px 16px;
    }

    .city-filter-option label {
        font-size: 0.875rem;
    }

    .city-filter-option input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }

    .city-filter-option input[type="checkbox"]:checked::after {
        left: 4px;
        top: 1px;
        width: 5px;
        height: 9px;
    }

    .selected-city-tag {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }

    .remove-city {
        width: 18px;
        height: 18px;
        font-size: 1.1rem;
    }

    .tour-list {
        background-image: url('../images/snow.png');
        background-position: center;
        background-repeat: repeat;
        margin: 0;
        padding: 0;
        border-radius: 20px;
    }

    .tour-item {
        padding: 15px;
    }
    
    .tour-date {
        min-width: auto;
        flex: 0 0 auto;
    }

    .tour-date .date {
        font-size: 1.25rem;
    }

    .tour-date .year {
        font-size: 1.5rem;
        margin-top: 3px;
    }

    .tour-date .time {
        margin-top: 5px;
        gap: 1px;
    }

    .tour-date .time .beginning {
        font-size: 0.75rem;
    }

    .tour-date .time .time-value {
        font-size: 0.875rem;
    }

    .tour-location {
        padding: 0 10px;
        flex: 1;
    }

    .tour-location h3 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .tour-location p {
        font-size: 0.875rem;
        margin-top: 4px;
    }

    .btn-tickets {
        padding: 8px 16px;
        font-size: 0.875rem;
        padding-right: 35px;
    }

    .btn-tickets::after {
        width: 6px;
        height: 6px;
        right: 18px;
        top: calc(50% - 4px);
    }

    .tour-item-container.active .btn-tickets::after {
        top: calc(50% - 2px);
    }

    .tours-bg-1,
    .tours-bg-2,
    .tours-bg-3,
    .tours-bg-4 {
        display: none;
    }

    .ticket-operators {
        margin: 0;
        padding: 0;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tour-item-container.active .ticket-operators {
        padding: 15px;
        margin-top: -5px;
    }

    .ticket-operator {
        padding: 10px 20px;
        font-size: 0.875rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        white-space: normal;
        line-height: 1.2;
    }

    .ticket-operator span {
        padding: 0 5px;
    }
}

/* Additional optimization for very small screens */
@media (max-width: 360px) {
    .tour-item-container.active .ticket-operators {
        padding: 10px;
    }

    .ticket-operator {
        padding: 8px 15px;
        font-size: 0.8125rem;
    }
}

/* Landscape mode optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .tours-container {
        padding-top: 40px;
    }

    .tour-list {
        margin: 10px;
    }
} 