html {
    scroll-behavior: smooth;
}

#aisc h1 {
    text-align: center;
    margin-top: 2rem;
}

body {
    font-family: 'Fira Sans', sans-serif;
    background-color: var(--bs-light);
}

.btn-primary:hover {
    color: white;
    border-color: white;
}

#ferry-search #ferry-form button.inactive {
    cursor: not-allowed;
}

#ferry-search #ferry-form p.vehicle-add {
    color: white;
    font-weight: bold;
}

#ferry-search #ferry-form .form-check-label {
    color: var(--bs-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

#ferry-search #ferry-form .ferry-info-text {
    color: var(--bs-gray-800);
}

#ferry-search-recap {
    color: white;
    font-weight: bold;
    background-color: var(--bs-primary);
    padding: 1rem;
}
#ferry-search-recap i {
    margin: 0 0.8rem 0 0.8rem;
}
#ferry-search-recap a {
    color: white;
}

#ferry-offers .wait h1 {
    margin-top: 4rem;
    font-size: 2rem;
    color: var(--bs-info);
    text-align: justify;
}
#ferry-offers .wait .spinner-border {
    width: 3rem;
    height: 3rem;
}

#ferry-offers .card:hover {
    background-color: var(--bs-light);
}

#ferry-offers .itinerary p {
    margin:0;
    padding: 0;
    color: var(--bs-gray-600);
}
#ferry-offers .itinerary i {
    color: var(--bs-gray-600);
}
#ferry-offers .itinerary p.leg-time {
    font-size: 1.2rem;
    font-weight: bold;
}
#ferry-offers .itinerary p.leg-date {
    font-size: 1rem;
}
#ferry-offers .price {
    color: var(--bs-orange);
    font-size: 2.2rem;
    font-weight: bold;
}
#ferry-offers .card .card-body .price small {
    font-size: 0.9rem;
    display: block;
}

#ferry-accommodations h1 {
    color: white;
    background-color: var(--bs-secondary);
    padding: 1rem;
    border-radius: 5px;
}
#ferry-accommodations h2 {
    color: var(--bs-primary);
    margin-top: 2rem;
}
#ferry-accommodations .card {
    margin-top: 1rem;
}
#ferry-accommodations .card .desc {
    font-weight: bold;
}
#ferry-accommodations .card small {
    font-weight: normal;
    font-size: 0.75rem;
}
#ferry-accommodations .card .card-body .text-secondary i {
    font-size: 1.5rem;
}

#ferry-destinations h2 {
    color: var(--bs-primary);
    font-size: 2rem;
}
#ferry-destinations h3 {
    font-size:1.8rem;
}
#ferry-destinations p {
    font-size: 1.2rem;
}
#ferry-destinations a {
    color: color-mix(in srgb, var(--bs-secondary), black 20%);
}
#ferry-destinations .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
#ferry-destinations .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
#ferry-destinations .card-img-overlay {
    pointer-events: none;
}
#ferry-destinations .badge[data-bs-toggle="tooltip"] {
    pointer-events: auto;
    z-index: 10;
    padding: 0.6em 0.9em;
    font-size: 100%;
    gap: 0.5rem !important;
}
#ferry-destinations .badge svg {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}
.tooltip-primary .tooltip-inner {
    background-color: var(--bs-primary);
}
.tooltip-primary .tooltip-arrow::before {
    border-bottom-color: var(--bs-primary);
    border-top-color: var(--bs-primary);
}

.ferry-breadcrumb .breadcrumb {
    margin-bottom: 0;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.ferry-breadcrumb .breadcrumb-item a {
    color: var(--bs-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}
.ferry-breadcrumb .breadcrumb-item a:hover {
    color: var(--bs-secondary);
    transform: translateX(2px);
}
.ferry-breadcrumb .breadcrumb-item.active {
    color: var(--bs-secondary);
}
.ferry-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-secondary);
    font-weight: bold;
}

.quote-expiry-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
}

.quote-expiry-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1051;
    max-width: 500px;
    width: 90%;
}

.ferry-fields-loading {
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.ferry-fields-loaded {
    transition: opacity 0.3s ease;
}