/* Tour Detail & Calendar Modal CSS */
.booking-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-date-other {
    background: transparent;
    border: 1px solid var(--clr-primary);
    color: var(--clr-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-date-other:hover {
    background: rgba(var(--clr-primary-rgb), 0.05);
}

.btn-booking-now {
    background: var(--clr-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1.5;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-booking-now:hover {
    background: var(--clr-primary-d);
    color: white;
}

/* Gallery Modal Enhanced */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.gallery-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    margin: 5vh auto;
    background: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #374151; /* Dark slate circle */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: #1f2937;
    transform: scale(1.1);
}

.gallery-modal-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center; /* Center everything */
    padding: 20px;
    position: relative;
    background: #f0f2f5;
    gap: 15px;
}

.modal-main-img-wrap {
    width: 85%;
    max-width: 800px; /* Optional: limit max width */
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto; /* Force horizontal centering */
}

.modal-main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Full image without crop, but in fixed box */
}

.modal-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333 !important; /* Force icon color */
    z-index: 20;
}

.modal-nav:hover {
    background: var(--clr-primary);
    color: white !important;
}

.gallery-modal-footer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #eee;
}

.gallery-count {
    font-weight: 700;
    color: #0056b3;
}

.gallery-modal-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.modal-thumb-item {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.modal-thumb-item.active {
    border-color: var(--clr-primary);
}

.modal-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal Stylings */
.calendar-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.calendar-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    animation: modal-slide-down 0.3s ease-out;
}

@keyframes modal-slide-down {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.calendar-close {
    color: #aaa;
    position: absolute;
    right: 10px;
    top: -21px;
    font-size: 50px;
    font-weight: 500;
    cursor: pointer;
}

.calendar-close:hover {
    color: #333;
}

/* Calendar UI */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-header h3 {
    margin: 0;
    color: var(--clr-primary);
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.calendar-nav-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
}

.calendar-nav-btn:hover {
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    padding: 10px 0;
    font-size: 0.9rem;
}

.calendar-day-name.weekend {
    color: var(--clr-primary);
}

.calendar-date {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9f9f9;
    font-weight: 500;
    position: relative;
    padding: 5px;
}

.calendar-date:hover:not(.empty):not(.disabled) {
    background: rgba(var(--clr-primary-rgb), 0.05);
    border: 1px solid var(--clr-primary);
}

.calendar-date.disabled {
    color: #ccc;
    cursor: default;
    background: #f5f5f5;
}

.calendar-date.selected {
    border: 1px solid var(--clr-primary);
    background: #fff;
}

.calendar-date.other-month {
    opacity: 0.4;
}

.calendar-date .price {
    font-size: 0.7rem;
    color: var(--clr-primary);
    font-weight: 600;
    margin-top: 2px;
}

.calendar-date .icon {
    font-size: 0.8rem;
    position: absolute;
    top: 5px;
    right: 5px;
}

.calendar-footer-note {
    margin-top: 25px;
    color: var(--clr-primary);
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
}

/* Selected Date & Quantity Selectors */
.selected-date-info {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--clr-primary);
}

.selected-date-info .info-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 2px;
}

.selected-date-info .info-value {
    font-weight: 700;
    color: var(--clr-primary);
    font-size: 1.1rem;
}

.participant-selectors {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.selector-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.selector-item:last-child {
    border-bottom: none;
}

.selector-label {
    display: flex;
    flex-direction: column;
}

.selector-label strong {
    font-size: 1.1rem;
    color: #333;
}

.selector-label small {
    color: #888;
    font-size: 0.85rem;
}

.selector-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.qty-btn:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.selector-controls input {
    width: 30px;
    border: none;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    background: transparent;
    pointer-events: none;
}
