#map {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    /* Thêm viền để dễ kiểm tra */
}

.preview-image {
    width: 99px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin: 5px;
}

.modal-body {
    max-height: 500px;
    overflow-y: auto;
}

#modal-images,
#nearby-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-item {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    width: 100%;
}

/* === Modal chung === */
.tourism-modal {
    background: #ffffff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === Header === */
.tourism-modal .modal-header {
    background-color: #007b8f;
    color: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom: none;
}

.tourism-modal .modal-title {
    color: white;
    font-weight: 600;
    font-size: 1.4rem;
}

/* === Nội dung === */
#modal-description {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

#modal-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1rem;
}

#modal-images img {
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#modal-images img:hover {
    transform: scale(1.05);
}

/* === Nút hành động === */
.tourism-modal a.btn {
    background-color: #007b8f;
    color: white;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.tourism-modal a.btn:hover {
    background-color: #005f6e;
    color: #fff;
}

/* === Footer === */
.tourism-modal .modal-footer {
    border-top: none;
    justify-content: flex-end;
}

.tourism-modal .btn-outline-secondary {
    border-color: #007b8f;
    color: #007b8f;
}

.tourism-modal .btn-outline-secondary:hover {
    background-color: #007b8f;
    color: white;
}

.image-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    /* ✅ Đảm bảo cao hơn modal Bootstrap (z-index mặc định: 1050) */
}

.image-lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out;
    transform: scale(1);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*css for booking modal*/
#bookingModal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: #fefefe;
    padding: 1.5rem;
}

#bookingModal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

#bookingModal .modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #2e8b57;
    /* xanh lá du lịch */
}

#bookingModal .form-floating>.form-control,
#bookingModal .form-floating>.form-select {
    border-radius: 10px;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    padding-left: 1rem;
}

#bookingModal .form-floating>.form-control:focus,
#bookingModal .form-floating>.form-select:focus {
    border-color: #2e8b57;
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.25);
}

#bookingModal .btn-primary {
    background-color: #2e8b57;
    border: none;
    font-weight: 600;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

#bookingModal .btn-primary:hover {
    background-color: #24724b;
}

#bookingModal .btn-secondary {
    border-radius: 8px;
}

#bookingModal .modal-footer {
    border-top: none;
    padding-top: 0;
}

#bookingModal .error-message,
#bookingModal .form-floating>div[th\:if] {
    color: red;
    font-size: 0.875rem;
    margin-top: 4px;
}