/* ==========================================================================
   RESERVATION ENHANCEMENTS - CLEAN & MINIMAL VERSION
   ========================================================================== */

/* --- Base Components --- */
.btn-success {
    background-color: #4fa438 !important;
    border: none !important;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-success:hover {
    background-color: #3d8a2d !important;
}

.btn-success:active {
    transform: scale(0.98);
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.65;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 1em;
    height: 1em;
    top: 50%;
    left: 50%;
    margin: -0.5em 0 0 -0.5em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Form Controls --- */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #4fa438;
    box-shadow: 0 0 0 0.2rem rgba(79, 164, 56, 0.15);
    outline: none;
}

.is-invalid-custom {
    border-color: #dc3545 !important;
}

.is-valid-custom {
    border-color: #28a745 !important;
}

.invalid-feedback-custom {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.is-invalid-custom ~ .invalid-feedback-custom {
    display: block;
}

/* --- Accommodation Cards --- */
.accommodation-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
    background: #fff;
}

.accommodation-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.accommodation-card .card-header {
    padding: 0;
    border: none;
    position: relative;
}

.accommodation-card .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.accommodation-card.card-active {
    border: 2px solid #4fa438;
}

.accommodation-price-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Calendar --- */
.calendar-container {
    background: #fff;
    /* border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem; */
}

.mini-calendar table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
}

.mini-calendar th, .mini-calendar td {
    text-align: center;
    padding: 8px 4px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.mini-calendar td.selectable {
    cursor: pointer;
    background-color: #f8f9fa;
    transition: background-color 0.1s ease;
}

.mini-calendar td.selectable:hover {
    background-color: #e9ecef;
}

.mini-calendar td.day-available {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.mini-calendar td.day-unavailable {
    background-color: #ffebee;
    color: #c62828;
    cursor: not-allowed;
}

.mini-calendar td.day-blocked {
    background-color: #dc3545;
    color: #721c24;
    cursor: not-allowed;
    position: relative;
}

.mini-calendar td.day-blocked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        #dc3545,
        #dc3545 2px,
        #b8420f 2px
    );
}

.mini-calendar td.selected-start,
.mini-calendar td.selected-end {
    background-color: #4fa438 !important;
    color: #fff !important;
    font-weight: 700;
}

.mini-calendar td.in-range {
    background-color: rgba(79, 164, 56, 0.15) !important;
}

/* --- Reservation Steps & Progress --- */
.steps-progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.step-indicator-item {
    display: flex;
    align-items: center;
    color: #adb5bd;
    font-size: 0.9rem;
}

.step-indicator-item.active {
    color: #4fa438;
    font-weight: 700;
}

.step-indicator-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 0.8rem;
}

.step-indicator-item.active .step-indicator-dot {
    background: #4fa438;
    color: #fff;
}

.form-section {
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* --- Summary & Confirmation --- */
.summary-container-enhanced {
    background: #f8f9fa;



}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
}

.summary-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
    font-size: 1.25rem;
    font-weight: 700;
    color: #4fa438;
}

.confirmation-container {
    text-align: center;
    padding: 3rem 1rem;
    background: #e8f5e9;
    border-radius: 12px;
    color: #2e7d32;
}

.success-circle {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #4fa438;
    font-size: 2.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- Gallery & Modals --- */
.property-gallery {
    margin-bottom: 2rem;
}

.main-image-container, .gallery-image-container {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #eee;
}

.main-image-container { height: 400px; }
.gallery-image-container { height: 195px; margin-bottom: 10px; }

.main-property-image, .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.main-image-container:hover .main-property-image,
.gallery-image-container:hover .gallery-image {
    opacity: 0.9;
}

/* --- Utilities & Responsive --- */
@media (max-width: 768px) {
    .main-image-container { height: 250px; }
    .gallery-image-container { height: 120px; }
    
    .steps-progress-indicator {
        padding: 0.75rem;
    }
    
    .step-indicator-item span:last-child {
        display: none;
    }
}

.sticky-reservation-card {
    position: sticky;
    top: 20px;
}

.no-scroll {
    overflow: hidden;
}

/* --- Sticky Mobile Bar --- */
.mobile-book-now-bar,
.mobile-sticky-price-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    padding: 12px 20px;
    z-index: 1060;
    border-top: 1px solid #eee;
}

/* Hide the main page's sticky bar when a modal is open */
body.modal-open .mobile-book-now-bar {
    display: none !important;
}

.mobile-book-now-bar {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-book-now-bar {
        display: block;
    }
    
    body {
        padding-bottom: 80px !important;
    }
}

.mobile-sticky-price-bar {
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-sticky-price-bar.visible {
    display: block;
    transform: translateY(0);
}

.price-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.mobile-total-price-display strong {
    color: #4fa438;
    font-size: 1.25rem;
    font-weight: 700;
}

.mobile-price-details {
    display: none;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.mobile-sticky-price-bar.expanded .mobile-price-details {
    display: block;
}

/* Custom Scrollbar */
/* ::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #4fa438;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d8a2d;
} */
