/* Root Variables */
:root {
    --ba-primary-background: #5d1d1d;
}

/* Prevent scroll-to-top behavior on button clicks */
html {
    scroll-behavior: auto !important;
}

div#content .segment-button:focus {
    outline: none;
    scroll-margin: 0;
    -webkit-scroll-snap-align: none;
    scroll-snap-align: none;
}

div#content .segment-button:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Font Definitions */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.ttf');
    font-weight: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-SemiBold.ttf');
    font-weight: 600;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Bold.ttf');
    font-weight: 800;
}
@font-face {
    font-family: 'Bitter';
    src: url('fonts/Bitter-SemiBold.ttf');
    font-weight: normal;
}
@font-face {
    font-family: 'BordatlasIcon';
    src: url('fonts/Bordatlas-Regular-New.ttf');
    font-weight: 800;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-VariableFont_wdth,wght.ttf');
    font-weight: 500;
}

/*
body {
    font-family: Montserrat, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.4;
}
*/



/* Typography */
div#content h1 {
    font-family: Montserrat;
    font-size: 38px;
    line-height: 46px;
    font-weight: bold;
    letter-spacing: 3.2px;
    color: #582525;
    text-transform: uppercase;
}

div#content h2 {
    font-family: Bitter;
    margin-top: 16px;
    margin-bottom: 10px;
    font-size: 36px;
    line-height: 42px;
    font-weight: bold;
    letter-spacing: 0px;
    color: #5d1d1d;
}

div#content h3 {
    font-family: Bitter;
    font-size: 24px;
    line-height: 30px;
    font-weight: bold;
    color: #5d1d1d;
}

div#content h4 {
    font-family: Montserrat;
    font-size: 20px;
    line-height: 26px;
    font-weight: bold;
    color: #5d1d1d;
}

div#content h5, div#content h6 {
    font-family: Montserrat;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: #582525;
    text-transform: uppercase;
    margin-bottom: 10px;
}

div#content h6 {
    color: #ba7b16;
}

div#content p {
    font-size: 14px;
    line-height: 26px;
    margin-bottom: 10px;
}

div#content .p__big {
    font-size: 16px !important;
}

div#content .reduced__lineheight {
    line-height: 22px !important;
}

div#content a {
    text-decoration: none;
    color: #333333;
}

/* Icon Font */
div#content .font__icon {
    font-family: BordatlasIcon !important;
}

.voucher-ticket{
    font-size: 24px; 
    margin-right: 15px; 
}

/* Layout Classes */
div#content .content__margin {
    margin: 0px 100px;
}

div#content .align_center {
    display: flex;
    align-items: center;
}

div#content .justify_center {
    justify-content: center;
    text-align: center;
}

/* Grid System */
div#content .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

div#content .col {
    padding: 0 15px;
    flex: 1;
    box-sizing: border-box;
}

footer .section{
    height:auto !important;
}

footer a{
    color:#ffffff !important;
}

footer a.button{
    color: #000000 !important;
}

/* Base column classes */
div#content .col-12 { width: 100%; flex: none; }
div#content .col-10 { width: 83.333333%; flex: none; }
div#content .col-9 { width: 75%; flex: none; }
div#content .col-8 { width: 66.666667%; flex: none; }
div#content .col-6 { width: 50%; flex: none; }
div#content .col-4 { width: 33.333333%; flex: none; }
div#content .col-3 { width: 25%; flex: none; }
div#content .col-2 { width: 16.666667%; flex: none; }

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    div#content .col-md-12 { width: 100%; flex: none; }
    div#content .col-md-11 { width: 91.666667%; flex: none; }
    div#content .col-md-10 { width: 83.333333%; flex: none; }
    div#content .col-md-9 { width: 75%; flex: none; }
    div#content .col-md-8 { width: 66.666667%; flex: none; }
    div#content .col-md-7 { width: 58.333333%; flex: none; }
    div#content .col-md-6 { width: 50%; flex: none; }
    div#content .col-md-5 { width: 41.666667%; flex: none; }
    div#content .col-md-4 { width: 33.333333%; flex: none; }
    div#content .col-md-3 { width: 25%; flex: none; }
    div#content .col-md-2 { width: 16.666667%; flex: none; }
    div#content .col-md-1 { width: 8.333333%; flex: none; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    div#content .col-lg-12 { width: 100%; flex: none; }
    div#content .col-lg-11 { width: 91.666667%; flex: none; }
    div#content .col-lg-10 { width: 83.333333%; flex: none; }
    div#content .col-lg-9 { width: 75%; flex: none; }
    div#content .col-lg-8 { width: 66.666667%; flex: none; }
    div#content .col-lg-7 { width: 58.333333%; flex: none; }
    div#content .col-lg-6 { width: 50%; flex: none; }
    div#content .col-lg-5 { width: 41.666667%; flex: none; }
    div#content .col-lg-4 { width: 33.333333%; flex: none; }
    div#content .col-lg-3 { width: 25%; flex: none; }
    div#content .col-lg-2 { width: 16.666667%; flex: none; }
    div#content .col-lg-1 { width: 8.333333%; flex: none; }
}

/* Cards */
div#content .card {
    border-radius: 15px;
    background-color: #f4f4f4;
    box-shadow: none;
    margin-bottom: 20px;
    overflow: hidden;
}

div#content .card-content {
    padding: 20px;
}

div#content .card__image {
    border-radius: 10px !important;
    width: 100%;
    height: auto;
}

/* Map Container */
div#content .map-container {
    height: 40vh;
    min-height: 300px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
}

/* Header Section */
div#content .header-section {
    padding: 20px 0;
}

div#content .text-end {
    text-align: right;
}

/* Share and Bookmark */
div#content .share__text {
    margin: 0px;
}

div#content .bookmark__text {
    padding-right: 10px;
}

div#content .bookmark__icon {
    background-color: #5d1d1d;
    font-size: 20px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    width: 34px;
    height: 34px;
}

div#content .share__icon {
    padding: 0;
    background-color: #ffffff;
    font-size: 20px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #5d1d1d;
    margin-left: 10px;
    cursor: pointer;
    border: 1px solid #5d1d1d;
    width: 40px;
    height: 40px;
}

div#content .share__icon svg{
    width:24px;
    height:24px;
}

/* Bookmark States */
div#content .bookmark_inactive, div#content .bookmark_active {
    width: 20px;
    height: 20px;
    display: none;
}

div#content [data-fav='true'] .bookmark_active {
    display: inline-flex;
}

div#content [data-fav='false'] .bookmark_inactive {
    display: inline-flex;
}

/* Table Styles */
div#content .table, div#content .table tr, div#content .table td {
    display: flex !important;
    align-items: center;
}

div#content .table tr {
    float: left !important;
    width: 100%;
}

div#content .tr__xs { width: 7% !important; padding-top:0px; padding-bottom:0px; }
div#content .tr__s { width: 15% !important; padding-top:0px; padding-bottom:0px; }
div#content .tr__sm { width: 25% !important; padding-top:0px; padding-bottom:0px; }
div#content .tr__md { width: 75% !important; padding-top:0px; padding-bottom:0px; }
div#content .tr__l { width: 85% !important; padding-top:0px; padding-bottom:0px; }
div#content .tr__xl { width: 93% !important; padding-top:0px; padding-bottom:0px; }

/* Buttons */
div#content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

div#content .btn-primary, .btn-primary {
    background-color: #5d1d1d !important;
    color: white;
}
    
div#content .btn-secondary, .btn-secondary {
    background-color: #ba7b16 !important;
    color: white;
}

div#content .btn-full {
    display:block;
    margin-bottom:10px;
    margin-top:10px;
}

div#content .btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

div#content .icon_request {
    margin-left: 10px;
}

/* HR */
div#content .hr_white {
    background-color: #fff;
    height: 1px;
    border: none;
    margin: 15px 0;
}

/* Image Correspondent */
div#content .image__correspondent {
    border-radius: 30px;
    max-width:100%;
}

/* Tour Background Image */
div#content .touren__background__image {
    background-size: cover !important;
    border-radius: 10px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tab Component Styles */
div#content .segment-container {
    margin-bottom: 20px;
}

div#content .segment-buttons {
    display: flex;
    flex-wrap: wrap;
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #f4f4f4;
    overflow: hidden;
    margin-bottom: 0;
    gap: 0;
}

div#content .segment-button {
    font-family: Roboto;
    font-weight: 500 !important;
    text-transform: uppercase;
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 120px;
    background-color: #ffffff !important;
    border-bottom: 2px solid #ffffff !important;
    border-radius: 0 !important;
    color: #666 !important;
    cursor: pointer;
    /*transition: all 0.3s ease;*/
    text-align: center;
    white-space: nowrap;
    position: relative;
    margin:0 !important;
}

div#content .segment-button.active {
    color: #ba7b16 !important;
    border-bottom: 2px solid #ba7b16 !important;
    background-color: #ffffff;
    z-index: 1;

}

div#content .segment-button:last-child {
    border-right: none;
}

div#content .segment-button:hover {
    background-color: #FCF9F6;
    color: #ba7b16 !important;
    border-bottom: 2px solid #ba7b16 !important;
}

div#content .segment-button.active::after {
    /*
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ffffff;
    z-index: 2;
    */
}


div#content .tab-content {
    display: none;
}

div#content .tab-content.active {
    display: block;
}

div#content .pitch__background__image {
    background-size: cover !important;
    border-radius: 10px;
    min-height: 300px;
    overflow: hidden;
}

div#content .pitch__information {
    padding-left: 40px;
}

div#content .pitch__heading {
    font-weight: bold;
}

div#content .pitch__premium {
    color: #69201a;
    font-weight: 600;
}

div#content .border__bottom {
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

div#content .display_flex {
    display: flex;
}

div#content .icon_costs {
    max-width: 160px;
}

div#content .icon_costs_small {
    max-width: 60px;
}

div#content .slide__table__left {
    font-weight: bold;
    width: 30%;
}

div#content .slide__table__right {
    width: 70%;
}

div#content .column__voucher {
    background-color: #ba7b16;
    border-radius: 20px;
    margin: 30px 0px;
    padding: 20px;
}

div#content .voucher__tab__heading {
    display: flex;
    align-items: center;
}

div#content .column__voucher h4, 
div#content .column__voucher p, 
div#content .column__voucher h2 {
    color: #ffffff;
    margin: 10px 0px;
}

div#content .badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

div#content .badge-success {
    background-color: #28a745;
    color: white;
}

div#content .badge-secondary {
    background-color: #ba7b16;
    color: white;
}

div#content .badge-tertiary {
    background-color: #6c757d;
    color: white;
}

div#content .badge-primary {
    background-color: #5d1d1d;
    color: white;
}

div#content .images_expand {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    color: #ffffff;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

div#content .image-gallery-container {
    position: relative;
    margin-bottom: 20px;
}

div#content .image-gallery {
    position: relative;
    margin-bottom: 0;
}

div#content .image-credit {
    font-size: 12px;
    color: #666;
}

/* Lightbox - Keep global since these are fixed positioned overlays */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    align-items: center;
    justify-content: space-between;
}

#lightbox.active {
    display: flex;
}

#lightbox-img {
    height: auto;
    max-width: 80vw;
    border-radius: 15px;
}

.lightbox__button {
    margin: 0 20px;
}

/* Modal Styles - Keep global since these are fixed positioned overlays */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}

/* Hide/Show Classes */
div#content .hide-md-down {
    display: inline-flex;
}
div#content .hide-md-up {
    display: none;
}
div#content .hide-xl-down {
    display: none;
}
div#content .hide-xl-up {
    display: inline-flex;
}

/* Responsive Design */

@media (min-width: 768px) {
    .bottom-tab-bar {
        display: none;
    }
    body {
        padding-bottom: 0;
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    div#content .content__margin {
        margin: 0px 56px;
    }
    
    div#content .border__bottom {
        padding-bottom: 10px;
    }

}

@media only screen and (max-width: 768px) {
    div#content .map-container {
        height: 20vh;
        min-height: 200px;
    }

    .touren__background__image{
        margin-bottom:15px !important;
    }

    .bottom-tab-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .tab-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px 12px;
        text-decoration: none;
        color: #666666;
        transition: color 0.3s ease;
        min-width: 0;
        flex: 1;
    }

    .tab-button:hover,
    .tab-button.active {
        color: #007bff;
        text-decoration: none;
    }

    .tab-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
        font-size: 18px;
    }

    .tab-label {
        font-size: 12px;
        font-weight: 500;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Add bottom padding to body to prevent content being hidden behind tab bar */
    body {
        padding-bottom: 70px;
    }


    div#content .content__margin {
        margin: 0px 30px;
    }
    
    /* Mobile-first: all md columns become full width on mobile */
    div#content .col-md-12,
    div#content .col-md-11,
    div#content .col-md-10,
    div#content .col-md-9,
    div#content .col-md-8,
    div#content .col-md-7,
    div#content .col-md-6,
    div#content .col-md-5,
    div#content .col-md-4,
    div#content .col-md-3,
    div#content .col-md-2,
    div#content .col-md-1 { 
        width: 100% !important; 
        flex: none !important;
    }
    
    /* Mobile-first: all lg columns become full width on mobile */
    div#content .col-lg-12,
    div#content .col-lg-11,
    div#content .col-lg-10,
    div#content .col-lg-9,
    div#content .col-lg-8,
    div#content .col-lg-7,
    div#content .col-lg-6,
    div#content .col-lg-5,
    div#content .col-lg-4,
    div#content .col-lg-3,
    div#content .col-lg-2,
    div#content .col-lg-1 { 
        width: 100% !important; 
        flex: none !important;
    }
    
    div#content h1 { font-size: 28px; line-height: 34px; }
    div#content h2 { font-size: 28px; line-height: 34px; }
    
    div#content .text-end { text-align: left; }
    
    div#content .share__icon {
        margin-left: 0px;
        margin-top: 10px;
    }

    div#content .segment-buttons {
        flex-wrap: wrap;
    }

    .card__correspondent .align_center, .card__correspondent .align_left {
        display: block !important;
        text-align:center !important;
    }
    
    div#content .segment-button {
        min-width: 100px;
        border-radius:0 !important;
        border-bottom-color:#CCCCCC !important; 
        border-right-width: 2px !important;
    }

    div#content .pitch__information {
        margin-top:0px;
        padding-left: 15px;
    }

    div#content .border__bottom {
        padding-bottom: 10px;
    }
    
    div#content .pitch__background__image {
        min-height: 200px;
        margin-bottom:20px;
    }
    
    div#content .icon_costs {
        max-width: 80px;
    }
    
    div#content .icon_costs_small {
        max-width: 40px;
    }
    
    #lightbox-img {
        max-width: 70vw;
    }

    div#content .hide-md-down {
        display: none;
    }
    div#content .hide-md-up {
        display: inline-flex;
    }

    .ion-hide-md-down {
        display: none!important;
    }
}

@media only screen and (max-width: 575px) {
    div#content .justify_center {
        justify-content: center;
        text-align: center;
    }
}

@media only screen and (min-width: 1200px) {
    div#content .hide-xl-down {
        display: inline-flex;
    }
    div#content .hide-xl-up {
        display: none;
    }
}

/* Utility Classes */
div#content .margin-bottom { margin-bottom: 20px; }
div#content .padding { padding: 20px; }
div#content .text-center { text-align: center; }
div#content .text-uppercase { text-transform: uppercase; }
div#content .font-weight-bold { font-weight: bold; }

/* Image Row - Override negative margins for background image */
div#content .image-row {
    margin: 0 !important;
}

div#content .image-row .col {
    padding: 0;
}

div#content .image-row .col:first-child {
    padding-right: 15px;
}

div#content .image-row .col:last-child {
    padding-left: 30px;
}

/* Tab Segment Styling */
div#content .segment-container {
    margin-bottom: 20px;
}



/* Tab Content */
div#content .tab-content {
    display: none;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

div#content .tab-content.active {
    display: block;
}

/* Fade Animations */
div#content .tab-content.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

div#content .tab-content.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

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

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

/* Ensure smooth transitions */
div#content .segment-container {
    position: relative;
    overflow: hidden;
}

/* Responsive Design for Tab Segments */
@media (max-width: 768px) {
    div#content .segment-buttons {
        border-radius: 0;
        background-color: #ffffff;
    }
    
    div#content .segment-button {
        min-width: auto;
        flex: auto;
        width:100%;
        padding: 10px 8px;
        font-size: 13px;
        background-color: #ffffff;
    }
    
    div#content .segment-button:hover {
        background-color: #f8f9fa;
    }
    
    div#content .segment-button.active {
        background-color: #007bff;
        color: #ffffff;
        border-bottom: none;
    }
    
    div#content .segment-button.active::after {
        display: none;
    }

    div#content .image-row .col:last-child {
        padding-left: 0px;
    }

}

@media (max-width: 480px) {
    div#content .segment-buttons {
        flex-wrap: wrap;
    }
    
    div#content .segment-button {
        flex: 1 1 50%;
        border-right: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    div#content .segment-button:nth-child(2n) {
        border-right: none;
    }
    
    div#content .segment-button:nth-last-child(-n+2) {
        border-bottom: none;
    }
}
