/*
 Theme Name:   DNRG GP Child
 Theme URI:    https://generatepress.com
 Description:  DNRG Client Website Theme
 Author:       DigitalNRG Ltd.
 Author URI:   https://www.digitalnrg.co.uk
 Template:     generatepress
 Version:      0.1
*/
.elementor-shortcode {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Form Styles */
form#location-room-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

form#location-room-filter label {
    font-weight: bold;
    margin-right: 10px;
    color: var(--e-global-color-secondary);
    flex: 1 1 100%;
    /* Ensures labels are stacked on smaller screens */
}

form#location-room-filter select,
form#location-room-filter button {
    padding: 10px;
    border: 1px solid var(--e-global-color-secondary);
    border-radius: 4px;
    background-color: var(--e-global-color-accent);
    color: var(--e-global-color-text);
    font-size: 1rem;
    flex: 1;
    /* Allows the inputs and buttons to stretch evenly */
}

form#location-room-filter button {
    background-color: var(--e-global-color-primary);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form#location-room-filter button:hover {
    background-color: var(--e-global-color-secondary);
}

/* Calendar Navigation */
.calendar-navigation {
    text-align: center;
    margin-bottom: 15px;
}

.calendar-navigation a {
    color: var(--e-global-color-secondary);
    text-decoration: none;
    font-weight: bold;
}

.calendar-navigation a:hover {
    text-decoration: underline;
}

/* Table Styles */
table.booking-calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table.booking-calendar thead th {
    background-color: var(--e-global-color-secondary);
    color: #fff;
    padding: 10px;
    text-align: center;
}

table.booking-calendar tbody td {
    text-align: center;
    padding: 10px;
    border: 1px solid var(--e-global-color-accent);
}

table.booking-calendar tbody tr:nth-child(even) {
    background-color: var(--e-global-color-accent);
}

/* Booking Button Styles */
.book-now {
    display: inline-block;
    background-color: var(--e-global-color-primary);
    color: #fff;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.book-now:hover {
    background-color: var(--e-global-color-secondary);
}

/* Responsive Styles */
@media (max-width: 768px) {
    form#location-room-filter {
        flex-direction: column;
        gap: 10px;
    }

    form#location-room-filter label {
        margin-right: 0;
    }

    form#location-room-filter select,
    form#location-room-filter button {
        width: 100%;
    }

    .calendar-navigation {
        text-align: left;
    }

    table.booking-calendar {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table.booking-calendar thead th,
    table.booking-calendar tbody td {
        padding: 8px;
        font-size: 0.9rem;
    }

    table.booking-calendar tbody tr {
        display: inline-block;
        width: 100%;
    }
}

@media (max-width: 480px) {
    table.booking-calendar thead {
        display: none;
    }

    table.booking-calendar tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border: 1px solid var(--e-global-color-accent);
        font-size: 0.85rem;
    }

    table.booking-calendar tbody td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
        color: var(--e-global-color-secondary);
    }
}

/* DIVS */
.desk-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    align-items: center;
    gap: 4px;
}

.desk-title {
    flex: 1 1 calc(100% / 8);
    font-weight: bold;
    margin-bottom: 5px;
}

.desk-date {
    flex: 1 1 calc((100% / 8) - 4px);
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    padding: .5rem 0;
    border-radius: 4px;
}

.desk-date.booked {
    background-color: #f5f5f5;
    color: #ccc;
}

.mob_only {
    display: none;
}

@media (max-width: 768px) {
    .desk-date {
        flex: 1 1 calc(100% / 3);
    }

    .mob_only {
        display: block;
    }

    .desk-row {
        display: none;
    }

}

@media (max-width: 480px) {
    .desk-date {
        flex: 1 1 100%;
    }
}


.spinner {
    border: 2px solid #f3f3f3;
    /* Light grey */
    border-top: 2px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.tick {
    color: green;
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
}