/* --- Scuba Calendar: List View --- */
.calendar-container {
    max-width: 1100px;
    margin: 20px auto;
    background: white;
    border-top: 5px solid #d32f2f;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Header Responsive Grid */
.calendar-container .header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.calendar-container .logo-section {
    font-size: 22px;
    font-weight: bold;
    flex: 1;
    min-width: 200px;
}

.calendar-container .search-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.calendar-container input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

.calendar-container .month-title {
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px dashed #ccc;
    background-color: #fafafa;
}

/* Event Row Responsive */
.calendar-container .event-row {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 20px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.calendar-container .event-row:hover {
    background-color: #f9f9f9;
}

.calendar-container .event-date {
    text-align: center;
    min-width: 70px;
}

.calendar-container .day {
    font-size: 32px;
    font-weight: 800;
    display: block;
    color: #333;
}

.calendar-container .month {
    font-size: 14px;
    color: #777;
    text-transform: uppercase;
}

.calendar-container .event-img-container {
    flex-shrink: 0;
}

.calendar-container .event-img-container img {
    width: 150px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.calendar-container .event-info {
    flex: 1;
}

.calendar-container .event-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #111;
}

.calendar-container .event-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* --- MOBILE RESPONSIVE QUERIES --- */
@media (max-width: 768px) {
    .calendar-container .event-row {
        flex-direction: column;
        /* Sab kuch ek ke niche ek aa jayega */
        align-items: flex-start;
        gap: 15px;
    }

    .calendar-container .event-date {
        display: flex;
        align-items: baseline;
        gap: 8px;
        border-bottom: 2px solid #eee;
        width: 100%;
        padding-bottom: 5px;
    }

    .calendar-container .day {
        font-size: 24px;
    }

    .calendar-container .event-img-container img {
        width: 100%;
        /* Image poori width legi mobile par */
        height: auto;
        max-height: 200px;
    }

    .calendar-container .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-container .search-controls {
        width: 100%;
    }

    .calendar-container input[type="text"] {
        flex: 1;
        /* Input boxes mobile par stretch ho jayenge */
    }
}

/* --- Scuba Calendar: Detail View --- */
.scuba-details-container {
    display: none;
    /* Hidden by default */
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    background-color: #e9ecef;
    /* Derived from root var */
    padding: 20px;
}

.scuba-details-container .back-btn {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.scuba-details-container .top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.scuba-details-container .card {
    background: #ffffff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.scuba-details-container .event-title {
    margin-top: 0;
    font-size: 22px;
}

.scuba-details-container .promo-text {
    font-size: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.scuba-details-container .contact-info p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.scuba-details-container .contact-info a {
    color: #007bff;
    text-decoration: none;
}

.scuba-details-container .featured-image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: #333;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scuba-details-container .featured-image img {
    width: 95%;
    height: 85%;
    object-fit: cover;
    border-radius: 4px;
}

.scuba-details-container .section-title {
    font-size: 18px;
    margin: 20px 0 10px 0;
    font-weight: bold;
}

.scuba-details-container .dates-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.scuba-details-container .dates-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.scuba-details-container .date-row:nth-child(odd) {
    background-color: #f1f7fd;
}

.scuba-details-container .reg-text {
    text-align: right;
    color: #666;
    font-style: italic;
}

.scuba-details-container .map-container {
    width: 100%;
    height: 350px;
    background: #ddd;
    margin-top: 15px;
    border-radius: 4px;
    position: relative;
}

/* Detail Mobile Responsiveness */
@media (max-width: 850px) {
    .scuba-details-container .top-section {
        grid-template-columns: 1fr;
    }

    .scuba-details-container .dates-table td {
        display: block;
        width: 100%;
        text-align: left !important;
        padding: 8px 15px;
    }

    .scuba-details-container .dates-table tr {
        border-bottom: 2px solid #ddd;
        display: block;
        margin-bottom: 10px;
    }
}

/* --- Booking Modal Styles --- */
.scuba-book-now-btn {
    background-color: #d32f2f;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.scuba-book-now-btn:hover {
    background-color: #b71c1c;
}

.scuba-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.scuba-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    font-family: 'Segoe UI', sans-serif;
}

.scuba-close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.scuba-close-modal:hover,
.scuba-close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.scuba-modal-content .form-group {
    margin-bottom: 15px;
}

.scuba-modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.scuba-modal-content input[type="text"],
.scuba-modal-content input[type="email"],
.scuba-modal-content select,
.scuba-modal-content textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

.scuba-modal-content .submit-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.scuba-modal-content .submit-btn:hover {
    background-color: #0056b3;
}

#scuba-booking-msg {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.scuba-success {
    color: green;
}

.scuba-error {
    color: red;
}