:root {
    --bs-border-radius: 0.15rem;
    --bs-border-radius-lg: 0.25rem;

    /*old blue: #0d6efd*/
    .btn-primary {
        --bs-btn-color: #fff;
        --bs-btn-bg: #345e41;
        --bs-btn-border-color: #345e41;
        --bs-btn-hover-color: #fff;
        --bs-btn-hover-bg: #223c2a;
        --bs-btn-hover-border-color: #223c2a;
        --bs-btn-focus-shadow-rgb: 49, 132, 253;
        --bs-btn-active-color: #fff;
        --bs-btn-active-bg: #223c2a;
        --bs-btn-active-border-color: #223c2a;
        --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
        --bs-btn-disabled-color: #fff;
        --bs-btn-disabled-bg: #5a615c;
        --bs-btn-disabled-border-color: #5a615c;
    }

    --swiper-pagination-color: #345e41 !important;
    --swiper-theme-color: #345e41 !important;
    --swiper-navigation-color: #203828 !important;

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-weight: 900;
    }
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: #FAFAF7;
    color: #4A4A4A;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

.row_ {
    --bs-gutter-x: 0;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    padding: 0 2rem;
    background: #FDFDFB;
    border-bottom: 1px solid #E0E0DC;
    position: sticky;
    top: 0;
    transition: transform .5s ease, top .5s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    z-index: 100;
}

.logo-container img {
    width: 85px !important;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

nav {
    transition: transform 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    padding: 0 25px;
}

nav ul li.active a {
    border-bottom: 5px #345e41 solid;
    color: #345e41;
}

nav ul li a {
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 25px;
    color: #333;
    text-decoration: none;
}

nav ul li a:hover {
    color: #345E41;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #333;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(250, 250, 247, 0.95);
        transform: translateY(-100%);
        justify-content: center;
        align-items: center;
    }

    nav.active {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        padding: 25px 0;
    }

    .menu-toggle {
        display: flex;
    }
}

.container {
    max-width: 1071px;
    margin: 0 auto;
    padding: 0 2rem;
    line-height: 1.63em
}

.flexbox {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    justify-content: center;
    max-width: 1071px;
    margin: 0 auto;
}

form label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #345E41;
    font-weight: 400;
}

form label.form-confirmation-checkbox-label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 13px;
}

.form-control,
.form-select {
    border-radius: 2px;
}

.form-control:focus,
.form-select:focus {
    border-color: #345E41;
    box-shadow: 0 0 0 0.25rem rgb(52 94 65 / 25%);
}

.align-content-center {
    align-content: center;
}

.search-section {
    flex-wrap: nowrap;
    justify-content: center;
}

.search-section .filter {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 220px;
    min-height: 350px;
    background: #FFF;
    padding: 1rem;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    box-shadow: var(--bs-box-shadow-sm);
    border-radius: var(--bs-border-radius-lg);
}

.search-section .filter div {
    width: 100%;
}

.search-section .filter form {
    display: flex;
    gap: .5rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    flex-direction: column;
    font-family: 'Prompt', sans-serif;
    --webkit-font-smoothing: antialiased;
}

.search-section .filter form button {
    background: #345E41;
    color: #FFF;
    border: none;
    padding: 6px 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    font-weight: 500;
    font-size: 12px;
    border-radius: var(--bs-border-radius-lg);
    width: 100%;
}

.search-section .filter form button:hover {
    background: #2A4B33;
}

.search-section .results {
    display: flex;
    gap: 2rem;
    flex-grow: 1;
    width: calc(1071px - 220px - 2rem);
    min-width: calc(1071px - 220px - 2rem);
    max-width: calc(1071px - 220px - 2rem);
}

.search-section .results .card {
    flex: 1 1 calc(33.333% - 2rem);
    background: #FFF;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    box-shadow: var(--bs-box-shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease;
    border-radius: var(--bs-border-radius-lg);
    max-height: fit-content;
}

.hero {
    background: url('/assets/images/home-1.jpg') center/cover no-repeat;
    color: #FFF;
    text-align: center;
    padding: 8rem 1rem 14rem 1rem;
    position: relative;
}

.hero h1 {
    font-size: 70px;
    line-height: 70px;
    font-weight: 500;
    text-align: left;
    font-family: 'Prompt', sans-serif;
    width: 65%;
    margin: 0 auto;
    max-width: 800px;
}

.flatpickr-day {
    margin: 2px 0 !important;
    border-radius: 5px;
}

.flatpickr-day.selected {
    background: #345e41;
    border-color: #345e41;
}

.flatpickr-day.today {
    border-color: #345e41;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
    border-color: #345e41;
    background: #345e41;
    color: #fff;
}

.flatpickr-day.today .flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    cursor: not-allowed;
    color: rgb(244 0 0 / 25%);
    background: rgba(244 0 0 / 6%);
}

@media(max-width: 768px) {
    .search-section .filter {
        display: none; 
    }
    .search-section .results {
        display: block;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .search-section .results .card.vehicle{
        margin-bottom: 2rem;
    }
}

.availability-form {
    position: absolute;
    left: 50%;
    bottom: -3rem;
    transform: translateX(-50%);
    background: #FFF;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 85%;
    max-width: 1071px;
    border-radius: var(--bs-border-radius);
}

.availability-form>div {
    flex: 1 1 200px;
    min-width: 200px;
}

.availability-form label {
    /* font-size: 12px; */
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    /* color: #333; */
    /* font-weight: 500; */
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.availability-form label i {
    font-size: 12px;
    color: #345E41;
}

.availability-form input[type=text],
.custom-dropdown select {
    border: none;
    border-bottom: 1px solid #CCC;
    background: transparent;
    padding: 0.5rem 0;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    font-family: 'Prompt';
}

.availability-form button {
    background: #345E41;
    color: #FFF;
    border: none;
    padding: 16px 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    align-self: flex-end;
    -webkit-font-smoothing: antialiased;
    border-radius: var(--bs-border-radius);
}

@media(max-width: 768px) {
    .availability-form {
        display: none !important;
    }
}

h4,
.h4 {
    font-family: Prompt, sans-serif;
    font-weight: 500;
    color: #000;
    font-size: 25px;
    line-height: 1.52em;
    margin: 25px 0;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
}

.card {
    flex: 1 1 calc(50% - 2rem);
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border: none;
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--bs-box-shadow-sm);
}

.card.vehicle {
    max-width: 49%;
}

.card-image img:hover {
    transform: scale(1.026) translateX(3px);
}

.card-image img {
    height: auto;
    max-width: 100%;
    -webkit-box-shadow: none;
    box-shadow: none;
    transform: scale(1.02) translateX(0);
    transition: transform .6s cubic-bezier(.19, .41, .61, 1.03);
    transform-origin: 30% 0;
    will-change: transform;
}

.card-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin-bottom: 0;
    background-color: transparent;
    border-bottom: none;
}

.card-content {
    padding-top: 1rem;
}

.card-title {
    margin: 0;
    width: 70%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.card-title a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.4s ease-in-out;
}

.card-title a:hover {
    color: #345E41;
}

.card-info .bi {
    margin: 0 .3rem;
    color: #345E41;
    display: inline-block;
}

.card-info {
    font-size: 13px;
    color: #666;
    text-align: right;
    display: inline-flex;
    vertical-align: middle;
    flex-wrap: wrap;
    line-height: 2em;
}

.card-description {
    font-size: 14px;
    margin-bottom: 1rem;
    min-height: 55px;
    max-height: 55px;
    height: 55px;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
    background-color: transparent;
    padding: 0;
}

.card-icons {
    display: flex;
    gap: 0.5rem;
    font-size: 1rem;
    color: #345e41;
}

.check-availability a span,
.check-availability>span {
    font-family: 'Prompt', sans-serif;
    padding: 0 !important;
    font-size: 13px;
    line-height: 1.46em;
    font-weight: 600;
    color: #000;
    background-color: transparent;
    border: 0;
}

.check-availability a,
.check-availability>span {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: auto;
    margin: 0;
    font-family: Prompt, sans-serif;
    font-size: 13px;
    line-height: 1.46em;
    letter-spacing: .05em;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 0;
    outline: 0;
    transition: color .3s ease-in-out, background-color .3s ease-out, border-color .3s ease-out;
}

.a:hover,
.check-availability a:hover span {
    color: #345e41;
    transition: color .3s ease-in-out, background-color .3s ease-out, border-color .3s ease-out;
}


#booking_request_form {
    background: #fafaf9;
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin-top: 20px;
    top: -75px;
    z-index: 1;
    border-radius: 10px 10px 0 0;
    background-color: rgb(250, 250, 249);
    padding: 36px 40px 40px;
}

@media (max-width: 768px) {
    #booking_request_form {
        top: 0;
    }
}

.text-booked {
    color: rgb(255 199 199) !important;
}

.bg-booked {
    background-color: rgb(220 53 69 / 60%) !important
}

.bg-requested {
    background-color: rgba(255, 181, 7, 0.6) !important
}

.text-requested {
    color: rgb(147 107 44) !important
}

.text-not_available {
    color: #9d9d9d !important;
    text-decoration: line-through !important;
}

.bg-not_available {
    background-color: rgba(108, 117, 125, 0.162) !important;
}

/* Blocked dates styling */
.text-blocked {
    color: #e65100 !important;
}

.bg-blocked {
    background-color: #fff3e0 !important;
    text-decoration: line-through;
}

.bg-blocked .price-display {
    color: #e65100 !important;
}

/* Calendar price display styles */
.price-display {
    opacity: 0.9;
    /* text-shadow: 1px 1px 2px rgba(0,0,0,0.3); */
    font-size: 0.65rem;
    font-weight: 400;
}

/* Price colors based on availability status */
.bg-success .price-display {
    color: #caffd2 !important;
    font-weight: 400;
}

.bg-booked .price-display {
    color: rgb(255 199 199) !important;
    text-decoration: line-through;
}

.bg-requested .price-display {
    color: rgb(147 107 44) !important;
    opacity: 0.7;
}

.bg-not_available .price-display {
    color: #9d9d9d !important;
    text-decoration: line-through;
}

/* Mobile optimization for calendar cells */
@media (max-width: 768px) {
    .table td {
        padding: 0.25rem !important;
    }

    .price-display {
        font-size: 0.55rem !important;
        line-height: 1.1;
    }

    .calendar-nav-btn {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* Calendar navigation buttons */
.calendar-nav-btn {
    border: 1px solid #dee2e6;
    background: #ffffff;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.calendar-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* External calendar navigation buttons */
.calendar-nav-external:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.calendar-nav-external:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading state for calendar */
.calendar-container[data-loading="true"] {
    opacity: 0.6;
    pointer-events: none;
}

.calendar-container .table > :not(caption) > * > * {
    font-weight: 600;
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 100%;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

footer {
    background-color: #1f2822;
    color: #ccc;
    padding: 2rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1 1 200px;
    min-width: 200px;
}

.footer-section h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icons a {
    font-size: 1.2rem;
    color: #ccc;
}

.newsletter input[type=email] {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0;
    width: 100%;
    color: #ccc;
}

.newsletter button {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1rem;
    padding-left: 0.5rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #ccc;
}

.back-to-top {
    background: #345e41;
    color: #fff;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-align: center;
}


.top-section {
    padding-top: 65px;
}

.top-section.extra-padding {
    padding-top: 125px;
}

.last-section {
    margin-bottom: 10rem;
}

.section-title {
    color: rgba(210, 210, 210, .7);
    font-size: 110px;
    font-weight: 600;
    font-family: Prompt, sans-serif;
    line-height: 89px;
}

.section-subtitle,
h2 {
    font-family: Prompt, sans-serif;
    font-weight: 500;
    color: #000;
    font-size: 40px;
    line-height: 1.225em;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    margin: 0;
    position: relative;
    top: -27px;
}

.agb h2 {
    top: 0;
}

@media (max-width: 576px){
    
.section-title {
    font-size: 45px;
    line-height: 25px;
}

.section-subtitle,
h2 {
    font-size: 20px;
    line-height: 0.925em;
    top: -1.7px;
}

}

@media (max-width: 768px) {
    .top-section.extra-padding {
        padding-top: 65px;
    }

    .footer-container {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .availability-form>div {
        flex: 1 1 calc(50% - 1rem);
    }

    .availability-form button {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 5rem 1rem 9rem 1rem;
        position: relative;
        height: 300px;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 40px;
        font-weight: 500;
        text-align: left;
        width: auto;
        margin-left: 7%;
        max-width: 100%;
    }

    .availability-form {
        width: 100%;
        margin: 0 auto;
        left: 0;
        transform: none;
        padding: 25px;
        width: auto;
    }

    .availability-form>div {
        flex: 1 1 100%;
    }

    .availability-form button {
        flex: 1 1 100%;
        width: 100%;
        padding-top: 20px;
        padding-bottom: 20px;
        line-height: 17px;
    }

    .card.vehicle {
        max-width: 100%;
    }

    .card {
        margin-top: inherit;
    }

    .card:last-child {
        margin-bottom: 5rem;
    }

    .check-availability {
        width: 100%;
        text-align: right;
    }
}

/* Pricelist Form Styles */
#addItemForm {
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

#addItemForm.show {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#addItemForm.loading {
    opacity: 0.7;
    pointer-events: none;
}

#addItemForm.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    border-radius: 8px;
}

#itemsTable {
    font-size: 0.9rem;
}

#itemsTable td {
    vertical-align: middle;
}

.badge {
    font-size: 0.75rem;
}

.btn-group-actions {
    display: flex;
    gap: 5px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Style for disabled/unavailable select options */
select option:disabled {
    color: #6c757d;
    background-color: #f8f9fa;
    font-style: italic;
}

select option[style*="display: none"] {
    display: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #345e41;
    box-shadow: 0 0 0 0.25rem rgba(52, 94, 65, 0.25);
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
}

/* Loading state for buttons */
.btn.loading {
    position: relative;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Alert for no available items */
.alert-info.no-items-available {
    background-color: #e3f2fd;
    border-color: #90caf9;
    color: #1565c0;
}

/* Mobile responsiveness for pricelist items */
@media (max-width: 768px) {
    #itemsTable {
        font-size: 0.8rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    #addItemForm .row .col-md-3,
    #addItemForm .row .col-md-2 {
        margin-bottom: 10px;
    }
}

/* Privacy Statement */
#privacy-policy h2 {
    margin-top: 30px;
    font-size: 28px;
    font-weight: bold;
    top: 0;
    font-family: 'Times New Roman', Times, serif;
}

#privacy-policy,
#privacy-policy p {
    font-family: 'Times New Roman', Times, serif !important;
}