/* DVC Confirmed Reservations Widget Styles */

.dvc-confirmed-reservations-widget {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fff;
    border-radius: 8px;
}



/* Search Input (now in popup) */
.dvc-reservations-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dvc-reservations-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* ===== STICKY FILTER BUTTON ===== */
.dvc-filter-sticky-button {
    position: sticky;
    bottom: 0px;
    left: 0px;
    pointer-events: none;
    padding: 0 10px 10px 10px;
    backdrop-filter: blur(.02rem);
}

.dvc-open-filter-popup {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #088B15!important;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 1));
    transition: all 0.3s ease;
    pointer-events: auto; /* Restore pointer events for the button */
    margin-left: 0;
    position: relative;
}

.dvc-open-filter-popup:hover {
    background: #045805!important;
    transform: translateY(-2px);
}

.dvc-filter-icon {
    flex-shrink: 0;
}

/* ===== FILTER POPUP ===== */
.dvc-filter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.dvc-filter-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dvc-filter-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.dvc-filter-popup-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: dvcPopupSlideIn 0.3s ease-out;
}

@keyframes dvcPopupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== POPUP HEADER ===== */
.dvc-filter-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.dvc-filter-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.dvc-close-filter-popup {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 5px 0 5px;
    border-radius: 4px;
    color: #666;
    transition: all 0.2s ease;
}

.dvc-close-filter-popup:hover {
    background: #e9ecef;
    color: #333;
}

/* ===== POPUP BODY ===== */
.dvc-filter-popup-body {
    padding: 0;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

/* ===== ACCORDION STYLES ===== */
.dvc-filter-accordion {
    border: none;
}

.dvc-filter-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.dvc-filter-accordion-item:last-child {
    border-bottom: none;
}

/* Override Elementor global button styles for accordion headers */
.dvc-filter-accordion-header,
.dvc-filter-accordion-header:hover,
.dvc-filter-accordion-header:focus,
.dvc-filter-accordion-header:active {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 24px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: left !important;
    transition: background 0.2s ease !important;
    box-shadow: none !important;
    text-decoration: none !important;
    outline: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    line-height: normal !important;
    min-height: auto !important;
    height: auto !important;
}

/* Nuclear option - override any Elementor global button styles */
.dvc-confirmed-reservations-widget button.dvc-filter-accordion-header,
.dvc-confirmed-reservations-widget button.dvc-filter-accordion-header:hover,
.dvc-confirmed-reservations-widget button.dvc-filter-accordion-header:focus,
.dvc-confirmed-reservations-widget button.dvc-filter-accordion-header:active {
    color: #333 !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    outline: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 16px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: normal !important;
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

/* Ensure accordion headers maintain their styling even with Elementor's global button styles */
.dvc-filter-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: left;
    transition: background 0.2s ease;
}

.dvc-filter-accordion-header:hover {
    background: #f8f9fa !important;
    color: #333 !important;
}

.dvc-filter-accordion-header.active {
    background: #f0f7ff !important;
    color: #007cba !important;
}

.dvc-accordion-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dvc-filter-accordion-header.active .dvc-accordion-icon {
    transform: rotate(180deg);
}

.dvc-filter-accordion-content {
    display: none;
    padding: 0 24px 20px 24px;
    background: #fafbfc;
}

.dvc-filter-accordion-content.active {
    display: block;
    animation: dvcAccordionSlideDown 0.3s ease-out;
}

@keyframes dvcAccordionSlideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

/* ===== FILTER GROUP STYLES ===== */
.dvc-filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.dvc-filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.dvc-filter-group select,
.dvc-filter-group input[type="date"],
.dvc-filter-group input[type="range"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dvc-filter-group select:focus,
.dvc-filter-group input[type="date"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Date Range Filter */
.dvc-date-filter-group .dvc-date-range {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dvc-date-filter-group .dvc-date-from,
.dvc-date-filter-group .dvc-date-to {
    flex: 1;
    min-width: 140px;
}

.dvc-date-separator {
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.dvc-toggle-all-resorts {
    color: #007cba;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.dvc-toggle-all-resorts:hover {
    color: #005a87;
    text-decoration: underline;
}

.dvc-resort-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
}

.dvc-resort-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.dvc-resort-checkbox input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.dvc-resort-checkbox label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

/* Price Range Filter */
.dvc-price-filter-group .dvc-price-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dvc-price-filter {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.dvc-price-filter::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dvc-price-filter::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dvc-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
}

.dvc-price-current {
    font-weight: 600;
    color: #007cba;
    font-size: 15px;
}

/* ===== POPUP FOOTER ===== */
.dvc-filter-popup-footer {
    display: flex;
    justify-content: center;
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.dvc-clear-all-filters {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #6c757d;
    color: white;
}

.dvc-clear-all-filters:hover {
    background: #5a6268;
}

/* Prevent body scroll when popup is open */
body.dvc-popup-open {
    overflow: hidden;
}

/* ===== LAZY LOADING INDICATORS ===== */

/* Scroll to Load More Overlay */
.dvc-scroll-load-more-overlay {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.dvc-scroll-load-more-content {
    background: rgba(0, 124, 186, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: dvcScrollPulse 2s ease-in-out infinite;
    backdrop-filter: blur(4px);
}

.dvc-scroll-load-more-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.dvc-scroll-arrow {
    display: none;
}

@keyframes dvcScrollPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes dvcScrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.dvc-lazy-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.dvc-lazy-loading-indicator p {
    margin: 15px 0 0 0;
    color: #666;
    font-size: 14px;
}

.dvc-end-of-results {
    text-align: center;
    padding: 0 30px 20px;
    color: #999;
    font-style: italic;
}

.dvc-end-of-results p {
    margin: 0;
    font-size: 14px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .dvc-scroll-load-more-overlay {
        bottom: 10px;
    }
    
    .dvc-scroll-load-more-content {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .dvc-scroll-arrow {
        display: none;
    }
    
    .dvc-filter-sticky-button {
        bottom: 0px;
        margin-top: 10px;
        padding: 8px 8px;
    }
    
    .dvc-open-filter-popup {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .dvc-filter-popup-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .dvc-filter-popup-header,
    .dvc-filter-popup-footer {
        padding: 16px 20px;
    }
    
    .dvc-filter-accordion-header,
    .dvc-filter-accordion-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .dvc-date-filter-group .dvc-date-range {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dvc-date-separator {
        text-align: center;
        margin: 4px 0;
    }
    
    .dvc-resort-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .dvc-filter-popup-footer {
        justify-content: center;
    }
}

/* Loading State */
.dvc-confirmed-reservations-loading {
    width: 100%;
    min-height: 400px; /* Prevent layout shift */
    display: flex;
    align-items: center;
    justify-content: center;
}

.dvc-loading-placeholder {
    width: 100%;
    min-height: 400px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dvc-loading-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: dvcLoadingShimmer 2s infinite;
}

@keyframes dvcLoadingShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.dvc-loading-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.dvc-loading-content p {
    margin: 15px 0 0 0;
    color: #666;
    font-size: 18px;
    font-weight: 500;
}

/* Table Styles */
.dvc-confirmed-reservations-table {
    width: 100%;
    border-collapse: separate;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.th-resort, .th-total, .th-savings , .th-status, .th-checkin, .th-checkout{
    text-align: center;
}

/* Sticky Header for Desktop */
@media (min-width: 769px) {
    .dvc-confirmed-reservations-table {
        position: relative;
        overflow: visible; /* Override the overflow: hidden to allow sticky positioning */
    }
    .dvc-confirmed-reservations-table thead {
        filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.7));
    }
    
    .dvc-confirmed-reservations-table thead th {
        position: sticky;
        top: 0;
        z-index: 1; /* Higher z-index to ensure it stays on top */
        background-color: #0048ff;
        color: #ffffff;
        font-weight: 600;
        font-size: 1em;
        padding: 16px 12px;
        border-collapse: separate;
        border:0;
        font-size: 12px;
        text-transform: uppercase;
    }
    
    /* Adjust sticky position when WordPress admin bar is present */
    .dvc-confirmed-reservations-table thead th.has-admin-bar {
        top: 31px; /* WordPress admin bar height */
    }
    
    /* For mobile admin bar */
    @media screen and (max-width: 782px) {
        .dvc-confirmed-reservations-table thead th.has-admin-bar {
            top: 46px; /* Mobile WordPress admin bar height */
        }
    }
}

/* Mobile table header styles (non-sticky) */
@media (max-width: 768px) {
    .dvc-confirmed-reservations-table thead th {
        background-color: #0048ff;
        color: #ffffff;
        font-weight: 600;
        padding: 16px 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

.dvc-confirmed-reservations-table tbody td {
    padding: 8px;
    border-bottom: 1px solid #b3b3b3;
    border-left: none;
    border-right: none;
    border-top: none;
    color: #333;
    font-size: 1em;
    font-family:'roboto', sans-serif;
    vertical-align: middle;
}

.dvc-confirmed-reservations-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.dvc-confirmed-reservations-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.dvc-confirmed-reservations-table tbody tr:nth-child(even):hover {
    background-color: #f1f1f1;
}

/* Clickable row styling */
.dvc-clickable-row:hover {
    background-color: #ebebeb !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.15);
}

.dvc-clickable-row:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 124, 186, 0.2);
}

/* ===== CARD LAYOUT (MOBILE) ===== */
.dvc-confirmed-reservations-cards {
    display: grid;
    padding:5px;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0;
}

.dvc-reservation-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 5px rgb(0 0 0 / 49%);
}

.dvc-reservation-card:hover {
    background-color: #e3f2fd !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 5px rgb(0 0 0 / 49%);
    border-color: #007cba;
}

.dvc-reservation-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 124, 186, 0.2);
}

/* Card Header */
.dvc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.dvc-card-id {
    font-weight: 600;
    color: #0048ff;
    font-size: 1em;
}

.dvc-card-status .dvc-status-badge {
    font-size: 1em;
    padding: 3px 6px;
}

/* Card Body */
.dvc-card-body {
    margin-bottom: 12px;
}

.dvc-card-resort {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.dvc-card-dates {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.dvc-card-checkin,
.dvc-card-checkout {
    font-size: 13px;
    color: #666;
}

.dvc-card-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dvc-card-room,
.dvc-card-view,
.dvc-card-room-view,
.dvc-card-people {
    font-size: 13px;
    color: #666;
}

/* Card Footer */
.dvc-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.dvc-card-pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dvc-card-total {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.dvc-card-savings {
    font-weight: 600;
    color: #28a745;
    font-size: 14px;
}

.dvc-card-actions {
    display: flex;
    align-items: center;
}

.dvc-book-reservation-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #157229;
    color: white!important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dvc-book-reservation-btn:hover {
    background-color: #0f5a1f;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(21, 114, 41, 0.2);
}

/* Status Badges */
.dvc-status-badge {
    display: inline-block;
    padding: 5px;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    white-space: nowrap;
    width: 80px;
    text-align: center;
}

.dvc-status-available {
    background-color: #067d23;
    color: #ffffff;
}

.dvc-status-reduced {
    background-color: #0048ff;
    color: #ffffff;
}

.dvc-status-unknown {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d1d3d4;
}

/* Action Buttons */
.dvc-reservation-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dvc-reservation-action-btn {
    padding: 6px 12px;
    border: 1px solid #007cba;
    background-color: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dvc-reservation-action-btn:hover {
    background-color: #005a87;
    border-color: #005a87;
    text-decoration: none;
    color: white;
}

.dvc-reservation-action-btn.secondary {
    background-color: transparent;
    color: #007cba;
}

.dvc-reservation-action-btn.secondary:hover {
    background-color: #007cba;
    color: white;
}

.dvc-total,
.dvc-savings {
    text-align: right;
}

.dvc-savings {
    color: #28a745;
}

.dvc-check-in,
.dvc-check-out {
    white-space: nowrap;
    text-align: center;
}

/* Empty and Error States */
.dvc-empty-state,
.dvc-error-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.dvc-empty-state h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.dvc-empty-state p,
.dvc-error-state p {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.dvc-empty-state p:last-child {
    margin-bottom: 0;
}

.dvc-check-availability-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dvc-check-availability-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.dvc-retry-btn {
    padding: 8px 16px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.dvc-retry-btn:hover {
    background-color: #005a87;
}



/* Empty State */
.dvc-reservations-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.dvc-reservations-empty h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.dvc-reservations-empty p {
    margin: 0;
    font-size: 14px;
}

/* Error State */
.dvc-reservations-error {
    text-align: center;
    padding: 40px 20px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin: 20px 0;
}

.dvc-reservations-error h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.dvc-reservations-error p {
    margin: 0;
    font-size: 14px;
}

/* ===== RESPONSIVE BREAKPOINT ===== */
/* Hide table on mobile, show cards */
@media (max-width: 768px) {
    .dvc-confirmed-reservations-table {
        display: none !important;
    }
    
    .dvc-confirmed-reservations-cards {
        display: grid !important;
    }
}

/* Hide cards on desktop, show table */
@media (min-width: 769px) {
    .dvc-confirmed-reservations-cards {
        display: none !important;
    }
    
    .dvc-confirmed-reservations-table {
        display: table !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dvc-loading-placeholder {
        min-height: 300px;
    }
    
    .dvc-loading-content p {
        font-size: 16px;
    }
    
    .dvc-loading-spinner {
        width: 28px;
        height: 28px;
        border-width: 3px;
    }
    
    .dvc-confirmed-reservations-table {
        font-size: 12px;
    }
    
    .dvc-confirmed-reservations-table thead th,
    .dvc-confirmed-reservations-table tbody td {
        padding: 8px;
    }
    

    
    .dvc-reservation-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .dvc-reservation-action-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 600px) {
    .dvc-card-footer {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
    }
    
    .dvc-book-reservation-btn {
        text-align: center;
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .dvc-confirmed-reservations-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .dvc-card-dates {
        flex-direction: row;
        gap: 4px;
        justify-content: space-between;
    }
}

/* Loading Animation */
.dvc-loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: dvc-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes dvc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.dvc-confirmed-reservations-table:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.dvc-reservation-action-btn:focus,
.dvc-reservations-search-input:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .dvc-filter-sticky-button,
    .dvc-filter-popup,
    .dvc-scroll-load-more-overlay,
    .dvc-reservation-actions {
        display: none;
    }
    
    .dvc-confirmed-reservations-table {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .dvc-confirmed-reservations-table thead th,
    .dvc-confirmed-reservations-table tbody td {
        border: 1px solid #000;
    }
}

/*========= Sweetheart Popup =========*/
[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    color: #000 !important;
}

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    color:#fff !important;
    }

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    background-color: #007cba;
}