/* CSS Variables */
:root {
    --tour-day-available-subtle-bg: #dbe6ff;
    --tour-day-soldout-subtle-bg: #ddd;
    --day-cell-height: 40px;
    --day-cell-border-radius: calc(var(--day-cell-height) / 2);
    --tour-end-circle-available-bg-solid: #dbe6ff;
    --tour-end-circle-soldout-bg-solid: #ddd;
}

/* Font Face */
@font-face {
    font-family: 'G-Sans';
    src: url('webfonts/G-Sans.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Keyframes */
@keyframes blink {
    0% { box-shadow: 0 0 0 0 rgba(0,102,204,.7); }
    50% { box-shadow: 0 0 0 8px rgba(0,102,204,0); }
    100% { box-shadow: 0 0 0 8px rgba(0,102,204,0); }
}

/* Base Elements */
body {
    font-family: -apple-system, Arial, sans-serif;
    font-size: 16px;
    background-color: #f2f4f7;
    color: #000;
    line-height: 1.5;
}
html {
    scroll-behavior: smooth;
}
a {
    color: var(--bs-primary);
    text-decoration: none;
}
a:hover {
    color: #000;
}
h1, h2, h3 {
    font-family: 'G-Sans', -apple-system, Helvetica, sans-serif;
    letter-spacing: -.3px;
    font-weight: 500;
}
h4, h5, h6 {
    font-family: -apple-system, Helvetica, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
}
h1 {
    font-size: 1.5rem;
}
h2 {
    font-size: 1.4rem;
}
h3, h4, h5 {
    font-size: 1.3rem;
}
h6 {
    font-size: 1.2rem;
}
hr {
    height: .5px;
    border: none;
    color: #666;
    background-color: #666;
    margin: 30px auto 20px;
    display: block;
}
ol, ul {
    padding-left: 1em;
}
li::marker {
    color: #999;
}

/* ID Selectors */
#logo img {
    width: 200px;
    height: auto;
}

/* Utility Classes */
.ttv {
    font-family: 'G-Sans', -apple-system, sans-serif;
    letter-spacing: -1.2px;
}
.text-ttv {
    color: #6d6559;
}
.bg-ttv {
    background-color: rgb(0,136,255) !important;
}
.btn {
    font-size: 14px;
}
.blink-border {
    position: relative;
    animation: blink 1.5s infinite;
}
.text-shadow {
    text-shadow: 2px 2px 4px rgba(88,71,71,0.5);
}
.thumb {
    cursor: pointer;
}
.read-more, .read-less {
    color: #06c;
    text-decoration: underline;
}
.itinerary-day {
    padding: 15px;
}

/* Navigation */
.nav-link {
    font-size: 18px;
    text-transform: uppercase;
    font-family: 'G-Sans', -apple-system, sans-serif;
    font-weight: 500;
    font-style: normal;
    letter-spacing: -.5px;
    line-height: 1em;
}
.nav-link a {
    color: #08c;
}
.nav-link:focus, .nav-link:hover {
    color: var(--bs-primary) !important;
}
.nav-item {
    padding: 0 5px;
}
.navbar-toggler {
    border: none;
}
.custom-toggler-icon {
    width: 1em;
    height: 1em;
}

/* Print Image Hover */
.print-img:hover {
    cursor: pointer;
}

/* Carousel */
.carousel-caption {
    bottom: 0;
    padding-left: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    right: 0;
    left: 0;
    text-align: left;
}
.carousel-item-next.carousel-item-start {
    transform: translateX(100%);
}
.carousel-item-prev.carousel-item-end {
    transform: translateX(-100%);
}
.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end,
.carousel-item.active.carousel-item-end,
.carousel-item.active.carousel-item-start {
    transform: translateX(0);
}
.carousel-item.active.carousel-item-start {
    transform: translateX(-100%);
}
.carousel-item.active.carousel-item-end {
    transform: translateX(100%);
}
.carousel-item img {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
    max-width: 1296px;
    margin: 0 auto;
}
.carousel-indicators {
    margin-left: auto;
    margin-right: auto;
}
.carousel-indicators button {
    background-color: #ccc;
    opacity: 0.7;
}
.carousel-indicators .active {
    background-color: var(--bs-primary) !important;
    opacity: 1;
}
.carousel-wrapper {
    position: relative;
}
.carousel-indicators.custom-indicators {
    position: static;
    margin-top: 0.5rem;
}
.carousel-indicators.custom-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #999;
    border: none;
    opacity: 0.5;
    transition: opacity 0.3s, background-color 0.3s;
    margin: 0 4px;
}
.carousel-indicators.custom-indicators button.active {
    background-color: #198754;
    opacity: 1;
}

/* Modal */
.modal-backdrop {
    --bs-backdrop-zindex: 1050;
    --bs-backdrop-bg: #000;
    --bs-backdrop-opacity: 0.5;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}
.modal-backdrop.fade {
    opacity: 0;
}
.modal-backdrop.show {
    opacity: 0.75;
}

/* Check Lists */
.check {
    list-style: none;
    padding-left: 0;
}
.check li {
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
    margin-bottom: 10px;
}
.check li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 1.5em;
    text-align: center;
    color: #999;
    margin-right: 0.5em;
    flex-shrink: 0;
}
.check li span {
    flex-grow: 1;
    display: block;
}

/* Pricing */
.price {
    margin: 10px auto 18px;
    font-size: 12px;
    color: #666;
}
.price span {
    color: #000;
    font-size: 18px;
    font-weight: 500;
}

/* SA Elements */
.sa {
    margin: 0;
    padding: 0 5px 5px;
    text-align: center;
    font-size: 14px;
}
.sa i {
    color: #999;
}

/* SAPO Layout */
.sapo > div[class^="col-"] > span {
    display: inline-block;
    float: left;
}
.sapo > span > strong {
    display: block;
}
.sapo > div[class^="col-"] {
    width: 50%;
}

/* Slide Gallery */
.slide-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.slide-row-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}
.slide-item {
    flex: 0 1 calc(20% - 30px);
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.slide-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}
.slide-item img:hover {
    transform: scale(1.05);
}

/* Calendar */
.multi-calendar-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.calendar-instance {
    font-family: -apple-system, Arial, sans-serif;
}
.calendar-instance .month-year-header {
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.calendar-instance .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    row-gap: 4px;
    text-align: center;
    min-height: var(--day-cell-height);
}
.calendar-instance .day-name {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    padding: 5px 0;
}
.calendar-instance .day {
    font-size: 16px;
    position: relative;
    cursor: default;
    height: var(--day-cell-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}
.calendar-instance .day.tour-day-available {
    cursor: pointer;
}
.calendar-instance .day.other-month {
    color: #ddd !important;
    cursor: default;
}
.calendar-instance .day.cell-tour-bar-start {
    background: linear-gradient(to right, transparent 0%, transparent 49.9%, var(--tour-day-available-subtle-bg) 50%, var(--tour-day-available-subtle-bg) 100%);
}
.calendar-instance .day.cell-tour-bar-start-soldout {
    background: linear-gradient(to right, transparent 0%, transparent 49.9%, var(--tour-day-soldout-subtle-bg) 50%, var(--tour-day-soldout-subtle-bg) 100%);
}
.calendar-instance .day.cell-tour-bar-end {
    background: linear-gradient(to left, transparent 0%, transparent 49.9%, var(--tour-day-available-subtle-bg) 50%, var(--tour-day-available-subtle-bg) 100%);
}
.calendar-instance .day.cell-tour-bar-end-soldout {
    background: linear-gradient(to left, transparent 0%, transparent 49.9%, var(--tour-day-soldout-subtle-bg) 50%, var(--tour-day-soldout-subtle-bg) 100%);
}
.calendar-instance .day.cell-tour-bar-middle {
    background-color: var(--tour-day-available-subtle-bg);
}
.calendar-instance .day.cell-tour-bar-middle-soldout {
    background-color: var(--tour-day-soldout-subtle-bg);
}
.calendar-instance .day.pill-rounded-left {
    border-top-left-radius: var(--day-cell-border-radius);
    border-bottom-left-radius: var(--day-cell-border-radius);
}
.calendar-instance .day.pill-rounded-right {
    border-top-right-radius: var(--day-cell-border-radius);
    border-bottom-right-radius: var(--day-cell-border-radius);
}
.calendar-instance .details-view {
    padding: 5px;
}
.calendar-instance .details-view .list-group-item {
    padding-left: 0;
    padding-right: 0;
}
.day-number-display {
    font-weight: bold;
    line-height: 1;
    position: relative;
    z-index: 1;
}
.day-number-display.is-edge-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--day-cell-height);
    height: var(--day-cell-height);
    border-radius: 50%;
}
.day-number-display.is-edge-circle.circle-end-available-subtle {
    background-color: var(--tour-end-circle-available-bg-solid) !important;
    color: var(--bs-primary) !important;
}
.day-number-display.is-edge-circle.circle-end-soldout-subtle {
    background-color: var(--tour-end-circle-soldout-bg-solid) !important;
    color: var(--bs-secondary) !important;
}

/* Subscription Message */
.subscription-message-box {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
    text-align: center;
    font-family: sans-serif;
}
.subscription-message-box .message-box {
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Media Queries */
@media only screen and (min-width: 1200px) {
    h1 { font-size: 26px; }
    h2 { font-size: 24px; }
    h3 { font-size: 22px; }
    h4 { font-size: 20px; }
    h5 { font-size: 18px; }
    h6 { font-size: 16px; }
    .nav-link { line-height: 1em; }
}
@media only screen and (max-width: 1199.98px) {
    h1 { font-size: 20px; }
    h2, h3, .h2, .h3 { font-size: 18px; }
    h4, h5, h6, .h4, .h5, .h6 { font-size: 16px !important; }
    .nav-link { line-height: 1em; }
}
@media only screen and (max-width: 991.98px) {
    .dropdown-toggle::after { display: none !important; }
    #logo img { width: 168px; }
    h1, h2, h3, .h2, .h3 { font-size: 18px; }
    h4, h5, h6, .h4, .h5, .h6 { font-size: 16px !important; }
    .border-m-bottom { border-bottom: .5px solid #ccc; }
}
@media (max-width: 799px) {
    .carousel-item img { max-height: 80vh; }
}
@media (max-width: 991px) {
    .slide-item { flex: 0 1 calc(33.33% - 30px); }
}
@media (max-width: 767px) {
    .slide-row-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
    .slide-item { flex: 0 1 calc(50% - 30px); }
}
@media (min-width: 933px) {
    .c-10 {
        flex: 0 0 10%;
        max-width: 10%;
    }
}
@media (min-width: 600px) and (max-width: 932px) {
    .c-10 {
        flex: 0 0 16.6667%;
        max-width: 16.6667%;
    }
}
@media (max-width: 600px) {
    .c-10 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

/* Calendar Media Query - This MUST come after the base .multi-calendar-area rule */
@media (min-width: 768px) {
    .multi-calendar-area {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tour Page Styles */
.destination-label, 
.thing-label, 
.hotel-label, 
.participant-label { 
    font-size: 15px; 
}

.cursor-pointer { 
    cursor: pointer; 
}

label:hover { 
    background-color: #f8f9fa; 
}

.border-primary { 
    border-color: #007bff !important; 
}

.participant-label.active, 
.thing-label.active, 
.hotel-label.active { 
    color: #007bff;
    border-color: #007bff !important; 
    background-color: #cfe2ff; 
}

.map-container {
    height: 410px;
    width: 100%;
    overflow: hidden;
}

.map-container iframe {
    position: relative;
    top: -70px;
    width: 100%;
    height: 480px;
    border: none;
}

/* Scene card styles */
.scene-card {
    display: block;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.scene-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.1);
    transform: translateY(-2px);
}

.scene-card.active {
    color: #007bff;
    border-color: #007bff !important;
    background-color: #cfe2ff;
}

.scene-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.scene-title {
    padding: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.scene-card.active .scene-title {
    background-color: #cfe2ff;
}

.calendar-table { 
    width: 100%; 
    border-collapse: collapse; 
    table-layout: fixed; 
    background-color: #ffffff; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
}

.calendar-table th, 
.calendar-table td { 
    text-align: center; 
    padding: 0.5rem; 
    border: none; 
    height: 44px; 
    position: relative; 
    vertical-align: middle; 
}

.calendar-table th { 
    background-color: #f8f9fa; 
    font-size: 0.75rem; 
    font-weight: 600; 
    color: #6c757d; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    border-bottom: 1px solid #e9ecef; 
}

.calendar-table tbody tr { 
    border-bottom: 1px solid #f1f3f4; 
}

.calendar-table tbody tr:last-child { 
    border-bottom: none; 
}

.calendar-day { 
    cursor: pointer; 
    font-size: 0.9rem; 
    transition: all 0.2s ease; 
    font-weight: 500; 
    width: 32px; 
    height: 32px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
}

.calendar-day.available { 
    background-color: var(--bs-success-bg-subtle) !important; 
    color: var(--bs-success) !important; 
    font-weight: 700 !important; 
}

.calendar-day.available:hover { 
    background-color: var(--bs-success) !important; 
    color: #ffffff !important; 
    font-weight: 700 !important; 
    transform: scale(1.1); 
}

.calendar-day.unavailable { 
    background-color: transparent !important; 
    color: #d1d5db !important; 
    cursor: not-allowed; 
}

.calendar-day.other-month, 
.calendar-day.past-date { 
    color: #d1d5db !important; 
    background-color: transparent !important; 
    cursor: default; 
}

.calendar-month-grid { 
    padding: 1rem; 
    margin-bottom: 1.5rem; 
    background-color: #ffffff; 
    border-radius: 12px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
}

.calendar-month-grid h6 { 
    margin-bottom: 1rem; 
    font-weight: 600; 
    color: #1d1d1f; 
    font-size: 1.1rem; 
}

.dependent-fields input[disabled], 
.dependent-fields textarea[disabled], 
.dependent-fields select[disabled], 
.dependent-fields .participant-label.disabled {
    background-color: #e9ecef; 
    opacity: 0.7; 
    pointer-events: none;
}

.dependent-fields .participant-label.disabled {
    border-color: #ced4da !important;
    background-color: #e9ecef !important;
}

.opacity-50 { 
    opacity: 0.5 !important; 
}

.clear-all-btn {
    font-size: 12px;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid #6c757d !important;
}

.tour-sticky-sidebar {
    top: 20px;
}

.tour-calendar-grid {
    max-height: 450px; 
    overflow-y: auto;
}

@media (max-width: 768px) { 
    .map-container {
        height: 480px;
    } 
    
    .map-container iframe {
        top: -40px;
        height: 480px;
    } 
    
    /* Mobile-friendly adjustments */
    .col-sm-8, .col-sm-4 {
        margin-bottom: 2rem;
    }
    
    .sticky-top {
        position: static !important;
    }
    
    .scene-image {
        aspect-ratio: 16/9 !important;
    }
}

/* Responsive improvements */
@media (max-width: 576px) {
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .gap-2 {
        gap: 0.25rem !important;
    }
    
    .px-2 {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    
    .thing-label, .destination-label {
        font-size: 13px;
        margin-bottom: 0.25rem;
    }
    
    .scene-title {
        font-size: 12px;
        padding: 8px;
    }
    
    .btn {
        font-size: 14px;
    }
    
    .h5 {
        font-size: 1.1rem;
    }
}
/* Carousel Indicators */
.carousel-dot {
    width: 10px !important;
    height: 10px !important;
}

/* Plan page styles */
.day-line {
    height: 1px;
    background-color: #ccc;
}

.plan-carousel-button {
    width: 10px;
    height: 10px;
    border: none;
    padding: 0;
}

.read-more-link,
.read-less-link {
    text-decoration: none;
}

/* Subscribe styles */
.subscribe-discount-box {
    max-width: 500px;
}

.subscribe-input-group {
    max-width: 400px;
    margin: auto;
}

/* Book bar styles */
.book-bar {
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

/* Trip detail styles */
.trip-icon-span {
    width: 28px;
    float: left;
}

/* Calendar styles */
.calendar-spacer {
    height: 20px;
}

.calendar-row-spacer {
    height: 3px;
    background-color: #fff !important;
    border: none !important;
}

.calendar-container {
    max-width: 686px;
}

.calendar-inner-container {
    max-width: 568px;
}

/* Cookie alert */
.cookie-alert {
    max-width: 396px;
}

/* External link icon */
.external-link-icon {
    vertical-align: text-bottom;
    margin-left: 0.2em;
}

/* FAQ quote icon */
.faq-quote-icon {
    color: #ccc;
}

/* Button icon */
.button-chevron-icon {
    width: 12px;
}

/* Details view */
.details-view-hidden {
    display: none;
}

/* Subscribe to view box */
.subscribe-to-view-box {
    max-width: 468px;
}

/* Print cart item */
.print-cart-item {
    max-width: 666px;
}
