/**
 * Public styles for the GeoVee Client plugin
 */

/* Container */
.geovee-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
    width: 100%;
    padding: 0;
}

/* Search Form */
.geovee-search-form {
    margin-bottom: 20px;
}

.geovee-input-group {
    display: flex;
    gap: 10px;
}

.geovee-address-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.geovee-search-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.geovee-search-button:hover {
    background-color: #005a87;
}

/* Map Container - Modern Google Maps Style */
.geovee-map-container {
    margin-bottom: 20px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

.geovee-map {
    height: 200px; /* Slightly larger for better visibility */
    width: 100%;
    border-radius: 12px;
}

/* Results Container */
.geovee-results-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.geovee-results-header {
    background-color: #f9f9f9;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.geovee-results-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.geovee-results-content {
    padding: 15px;
}

.geovee-result-item {
    margin-bottom: 15px;
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.geovee-result-item:hover {
    background-color: #f7fafc;
    cursor: pointer;
}

.geovee-result-item:last-child {
    border-bottom: none;
}

.geovee-results-separator {
    margin: 20px 0;
    padding: 10px 0;
    border-top: 2px solid #cbd5e0;
    border-bottom: 2px solid #cbd5e0;
    text-align: center;
    font-weight: 600;
    color: #4a5568;
    background: #f7fafc;
}

.geovee-list-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
}

.geovee-next-button {
    padding: 10px 30px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.geovee-next-button:hover {
    background-color: #005a87;
}

.geovee-next-button:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
}

.geovee-result-date {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.geovee-result-time {
    font-size: 16px;
    margin-bottom: 5px;
}

.geovee-result-offer {
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.geovee-result-distance {
    font-size: 14px;
    color: #666;
}

.geovee-results-footer {
    background-color: #f9f9f9;
    padding: 15px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.geovee-next-button {
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.geovee-next-button:hover {
    background-color: #005a87;
}

/* Loading Indicator */
.geovee-loading {
    text-align: center;
    padding: 20px;
}

.geovee-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 115, 170, 0.2);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: geovee-spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

.geovee-loading-text {
    color: #666;
}

@keyframes geovee-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Message */
.geovee-error {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Font Size Classes */
.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

/* View Toggle */
.geovee-view-toggle {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.geovee-view-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.geovee-view-btn:hover {
    background: #f9f9f9;
    border-color: #0073aa;
}

.geovee-view-btn.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.geovee-view-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Calendar View */
.geovee-list-view {
    display: block;
    position: relative;
    z-index: 1;
}

.geovee-calendar-view {
    padding: 20px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.geovee-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.geovee-calendar-prev,
.geovee-calendar-next {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.geovee-calendar-prev:hover,
.geovee-calendar-next:hover {
    background: #f9f9f9;
    border-color: #0073aa;
}

.geovee-calendar-month {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.geovee-calendar-grid {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.geovee-calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.geovee-calendar-day-name {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #4a5568;
}

.geovee-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
    box-sizing: border-box;
    width: 100%;
}

.geovee-calendar-day {
    background: white;
    padding: 8px;
    min-height: 80px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    min-width: 0;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

/* Removed general hover rule that was overriding specific classes */

.geovee-calendar-day.has-availability {
    background: #e6f7ff;
    cursor: pointer;
}

.geovee-calendar-day.has-availability:hover {
    background: #bae7ff;
}

.geovee-calendar-day.has-offers {
    background: #4ade80 !important;
    color: white !important;
}

.geovee-calendar-day.has-offers:hover {
    background: #22c55e !important;
}

/* Remove the overly broad rule that made everything green */

.geovee-calendar-day-offers {
    font-size: 10px;
    color: white;
    margin-top: 2px;
}

.geovee-calendar-day.other-month {
    background: #f9fafb;
    color: #cbd5e0;
}

/* Default hover for calendar days without specific classes */
.geovee-calendar-day:not(.has-availability):not(.has-offers):hover {
    background: #f7fafc;
}

.geovee-calendar-day-number {
    font-weight: 600;
    margin-bottom: 5px;
}

.geovee-calendar-day-slots {
    font-size: 11px;
    color: #0073aa;
    font-weight: 500;
}

/* Day Detail View */
.geovee-calendar-day-detail {
    padding: 20px;
}

.geovee-day-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.geovee-back-to-calendar {
    display: flex;
    align-items: center;
    gap: 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.geovee-back-to-calendar:hover {
    background: #f9f9f9;
    border-color: #0073aa;
}

.geovee-day-detail-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.geovee-day-detail-slots {
    display: grid;
    gap: 10px;
}

.geovee-time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.geovee-time-slot:hover {
    background: #e6f7ff;
    border-color: #0073aa;
}

.geovee-time-slot.selected {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.geovee-time-slot-time {
    font-weight: 600;
    font-size: 16px;
}

.geovee-time-slot-offer {
    font-size: 14px;
    color: #0073aa;
}

.geovee-time-slot.selected .geovee-time-slot-offer {
    color: white;
}

/* Schedule Button */
.geovee-schedule-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.geovee-schedule-button:hover {
    background-color: #059669;
}

.geovee-schedule-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Booking Modal */
.geovee-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geovee-booking-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.geovee-booking-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.geovee-booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.geovee-booking-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.geovee-booking-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #718096;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.geovee-booking-modal-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

.geovee-booking-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.geovee-booking-selected-slot {
    background: #e6f7ff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #91d5ff;
}

.geovee-booking-slot-date {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.geovee-booking-slot-time {
    font-size: 14px;
    color: #0073aa;
}

.geovee-booking-field {
    margin-bottom: 20px;
}

.geovee-booking-field-image {
    margin-bottom: 10px;
}

.geovee-booking-field-image img {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
}

.geovee-booking-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

.geovee-required {
    color: #e53e3e;
}

.geovee-booking-field-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
    background: #f7fafc;
}

.geovee-booking-field-input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.geovee-booking-field-input:not(:disabled) {
    background: white;
    cursor: text;
}

.geovee-booking-field-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.geovee-booking-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.geovee-booking-cancel,
.geovee-booking-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.geovee-booking-cancel {
    background: white;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.geovee-booking-cancel:hover {
    background: #f7fafc;
}

.geovee-booking-submit {
    background: #0073aa;
    color: white;
}

.geovee-booking-submit:hover {
    background: #005a87;
}

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
    .geovee-input-group {
        flex-direction: column;
    }
    
    .geovee-address-input,
    .geovee-search-button {
        width: 100%;
        font-size: 16px !important; /* Prevent zoom on iOS */
        -webkit-appearance: none;
        -webkit-border-radius: 4px;
        border-radius: 4px;
    }
    
    .geovee-address-input {
        padding: 12px 15px !important;
        min-height: 44px !important; /* Touch target size */
        box-sizing: border-box !important;
    }
    
    .geovee-search-button {
        min-height: 44px !important; /* Touch target size */
        padding: 12px 20px !important;
    }
    
    .geovee-search-button {
        margin-top: 10px;
    }
    
    .geovee-view-toggle {
        flex-direction: column;
    }
    
    .geovee-view-btn {
        width: 100%;
        justify-content: center;
    }
    
    .geovee-calendar-days {
        grid-template-columns: repeat(7, 1fr) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .geovee-calendar-day {
        min-height: 60px;
        padding: 6px 0;
        font-size: 12px;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    
    .geovee-calendar-day-number {
        font-size: 12px;
    }
    
    .geovee-calendar-day-slots {
        font-size: 10px;
    }
    
    .geovee-booking-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .geovee-results-footer {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .geovee-schedule-button,
    .geovee-next-button {
        width: 100%;
        margin: 0;
    }
}
/* Enhanced Mobile Calendar Fixes */
@media screen and (max-width: 768px) {
    .geovee-container {
        padding: 10px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* COMPLETE MOBILE CALENDAR OVERHAUL */
    .geovee-calendar-view {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important; /* Full viewport width */
        max-width: 100vw !important;
    }
    
    .geovee-calendar-grid {
        min-width: 350px !important; /* Minimum width to prevent collapse */
        width: 100% !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        overflow: visible !important;
    }
    
    .geovee-calendar-header {
        padding: 15px 10px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        font-size: 14px !important;
    }
    
    .geovee-calendar-nav {
        font-size: 16px !important;
        padding: 8px 12px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    .geovee-calendar-month {
        font-size: 16px !important;
        font-weight: 600 !important;
    }
    
    .geovee-calendar-days-header {
        grid-template-columns: repeat(7, 1fr) !important;
        background: #f8fafc !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    
    .geovee-calendar-day-name {
        padding: 8px 4px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        text-align: center !important;
        color: #4a5568 !important;
    }
    
    .geovee-calendar-days {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 1px !important;
        background: #e2e8f0 !important;
        min-height: 280px !important; /* Ensure minimum height */
    }
    
    .geovee-calendar-day {
        background: white !important;
        min-height: 60px !important;
        padding: 6px 2px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
        font-size: 12px !important;
        position: relative !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        border: none !important;
        aspect-ratio: 1 !important; /* Perfect squares */
        overflow: hidden !important; /* Prevent overflow */
    }
    
    .geovee-calendar-day.has-availability {
        background: #e6f7ff !important;
    }
    
    .geovee-calendar-day.has-availability:hover {
        background: #bae7ff !important;
        transform: scale(1.05) !important; /* Slight zoom on hover */
    }
    
    .geovee-calendar-day.has-offers {
        background: #22c55e !important;
        color: white !important;
    }
    
    .geovee-calendar-day.has-offers:hover {
        background: #16a34a !important;
        transform: scale(1.05) !important;
    }
    
    .geovee-calendar-day.other-month {
        background: #f9fafb !important;
        color: #cbd5e0 !important;
    }
    
    .geovee-calendar-day-number {
        font-weight: 600 !important;
        font-size: 14px !important;
        margin-bottom: 4px !important;
        line-height: 1 !important;
        color: #2d3748 !important;
    }
    
    .geovee-calendar-day-slots {
        font-size: 10px !important;
        color: #3182ce !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
    }
    
    .geovee-calendar-day-offers {
        font-size: 9px !important;
        color: white !important;
        background: rgba(0,0,0,0.7) !important;
        padding: 2px 4px !important;
        border-radius: 3px !important;
        line-height: 1 !important;
        margin-top: auto !important; /* Push to bottom */
    }
    
    .geovee-calendar-day.has-offers .geovee-calendar-day-offers {
        background: rgba(255,255,255,0.2) !important;
    }
    
    .geovee-calendar-day-indicator {
        width: 6px !important;
        height: 6px !important;
        border-radius: 50% !important;
        position: absolute !important;
        top: 4px !important;
        right: 4px !important;
    }
    
    /* Day Detail Mobile */
    .geovee-calendar-day-detail {
        padding: 15px !important;
        min-height: 400px !important; /* Ensure enough space */
    }
    
    .geovee-day-detail-header {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
        padding-bottom: 15px !important;
    }
    
    .geovee-back-to-calendar {
        align-self: center !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
        min-height: 44px !important;
        width: 100% !important;
        max-width: 200px !important;
    }
    
    .geovee-day-detail-title {
        font-size: 20px !important;
        text-align: center !important;
    }
    
    .geovee-day-detail-date {
        font-size: 16px !important;
        text-align: center !important;
    }
    
    .geovee-day-detail-slots {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .geovee-time-slot {
        padding: 15px !important;
        font-size: 14px !important;
        min-height: 50px !important;
    }
    
    .geovee-calendar-header {
        padding: 10px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .geovee-calendar-nav {
        font-size: 18px;
        padding: 8px 12px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .geovee-calendar-month {
        font-size: 18px;
        font-weight: 600;
    }
    
    .geovee-calendar-days {
        gap: 1px;
        display: grid !important; /* Force grid display */
        grid-template-columns: repeat(7, 1fr) !important; /* Ensure 7 columns */
    }
    
    .geovee-calendar-day {
        aspect-ratio: 1;
        min-height: 70px;
        padding: 4px;
        font-size: 12px;
        display: block !important; /* Ensure days are visible */
        visibility: visible !important; /* Force visibility */
    }
    
    .geovee-calendar-day-number {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 2px;
    }
    
    .geovee-calendar-day-offers {
        font-size: 9px;
        line-height: 1.2;
        padding: 2px;
    }
    
    .geovee-calendar-day-indicator {
        width: 4px;
        height: 4px;
    }
    
    /* Day Detail Mobile */
    .geovee-calendar-day-detail {
        padding: 15px;
    }
    
    .geovee-day-detail-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .geovee-back-to-calendar {
        align-self: flex-start;
        padding: 8px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .geovee-day-detail-title {
        font-size: 20px;
    }
    
    .geovee-time-slot {
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 8px;
        min-height: 44px;
    }
    
    .geovee-time-slot-time {
        font-size: 16px;
        font-weight: 600;
    }
    
    .geovee-time-slot-offer {
        font-size: 14px;
        margin-top: 5px;
    }
    
    /* Booking Field Mobile */
    .geovee-booking-field-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        min-height: 44px;
    }
    
    .geovee-booking-submit,
    .geovee-booking-cancel {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 44px;
    }
    
    /* Map Mobile */
    .geovee-map {
        height: 250px;
        border-radius: 8px;
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    /* ULTRA-AGGRESSIVE MOBILE FIXES */
    .geovee-calendar-day {
        min-height: 50px !important;
        padding: 4px 1px !important;
        font-size: 10px !important;
        min-width: 30px !important;
        aspect-ratio: 1 !important;
    }
    
    .geovee-calendar-day-number {
        font-size: 12px !important;
        margin-bottom: 2px !important;
    }
    
    .geovee-calendar-day-slots {
        font-size: 8px !important;
        margin-bottom: 1px !important;
    }
    
    .geovee-calendar-day-offers {
        font-size: 7px !important;
        padding: 1px 2px !important;
        margin-top: auto !important;
    }
    
    .geovee-calendar-day-indicator {
        width: 4px !important;
        height: 4px !important;
        top: 2px !important;
        right: 2px !important;
    }
    
    .geovee-calendar-grid {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }
    
    .geovee-calendar-days {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 240px !important;
        box-sizing: border-box !important;
    }
    
    .geovee-calendar-days-header {
        padding: 0 !important;
    }
    
    .geovee-calendar-day-name {
        padding: 6px 2px !important;
        font-size: 10px !important;
    }
    
    .geovee-calendar-header {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }
    
    .geovee-calendar-nav {
        font-size: 14px !important;
        padding: 6px 8px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }
    
    .geovee-calendar-month {
        font-size: 14px !important;
    }
    
    /* Force hardware acceleration for smooth scrolling */
    .geovee-calendar-day {
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    /* Prevent text selection issues on mobile */
    .geovee-calendar-day {
    }
    
    /* Ensure proper touch targets */
    .geovee-calendar-day {
    }
    
    /* Fix iOS Safari zoom issues */
    .geovee-calendar-day {
        -webkit-text-size-adjust: 100% !important;
    }
    
    .geovee-calendar-day-number {
        font-size: 12px;
    }
    
    .geovee-calendar-day-offers {
        font-size: 8px;
        padding: 1px;
    }
    
    .geovee-booking-modal-content {
        width: 98%;
        margin: 5px;
    }
    
    .geovee-success-modal .geovee-success-content {
        width: 95%;
        padding: 20px;
    }
}

/* Enhanced Beautiful Green Confirmation Popup Styles */
@keyframes geoveeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes geoveeSlideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes geoveeSlideDown {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes geoveeCheckmarkBounce {
    0% { 
        opacity: 0;
        transform: scale(0.3) rotate(-45deg);
    }
    50% { 
        transform: scale(1.1) rotate(0deg);
    }
    100% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes geoveePulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Enhanced Success Modal */
.geovee-success-modal-enhanced {
    backdrop-filter: blur(4px);
}

.geovee-success-content-enhanced {
    position: relative;
    overflow: hidden;
}

.geovee-success-content-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: geoveeShine 2s infinite;
}

@keyframes geoveeShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.geovee-success-btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.geovee-success-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5) !important;
}

.geovee-success-btn-primary:active {
    transform: translateY(0) !important;
}

.geovee-success-btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.geovee-success-btn-secondary:hover {
    background: #f9fafb !important;
    border-color: #22c55e !important;
    color: #22c55e !important;
    transform: translateY(-2px) !important;
}

.geovee-success-btn-secondary:active {
    transform: translateY(0) !important;
}

/* Enhanced Success Message */
.geovee-success-message-enhanced {
    position: relative;
    overflow: hidden;
}

.geovee-success-message-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: geoveeShine 3s infinite;
}

/* Loading Animation for Long Processing */
.geovee-loading-enhanced {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #22c55e;
    border-radius: 50%;
    animation: geoveeSpin 1s linear infinite;
}

@keyframes geoveeSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Bar for Long Operations */
.geovee-progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin: 15px 0;
}

.geovee-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 2px;
    animation: geoveeProgress2 1s linear forwards;
    width: 0%;
}

@keyframes geoveeProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes geoveeProgress20 {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes geoveeProgress2 {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Responsive Design */
@media (max-width: 600px) {
    /* CRITICAL: Ensure views don't overlap */
    .geovee-list-view {
        position: relative !important;
        z-index: 2 !important;
    }
    
    .geovee-calendar-view {
        position: relative !important;
        z-index: 2 !important;
    }
    
    /* When list view is hidden, ensure it doesn't interfere */
    .geovee-list-view[style*="display: none"] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        z-index: -1 !important;
    }
    
    /* When calendar view is hidden, ensure it doesn't interfere */
    .geovee-calendar-view[style*="display: none"] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        z-index: -1 !important;
    }
    
    /* CRITICAL: Force calendar grid to show on mobile ONLY when calendar view is visible */
    .geovee-calendar-view:not([style*="display: none"]) .geovee-calendar-grid {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Removed - was preventing popup from showing */
    
    /* Ensure calendar navigation works */
    .geovee-calendar-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    /* Force calendar days to display in grid */
    .geovee-calendar-days {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        width: 100% !important;
        min-height: 200px !important;
    }
    
    .geovee-calendar-day {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* CRITICAL: Override any JavaScript that might hide the calendar */
    .geovee-calendar-view .geovee-calendar-grid[style*="display: none"] {
        display: block !important;
    }
    
    /* Removed - was preventing popup from showing even when JavaScript set display: block */
    
    /* Ensure back to calendar button works */
    .geovee-back-to-calendar {
        display: block !important;
        width: 100% !important;
        padding: 10px !important;
        margin-bottom: 15px !important;
        background: #0073aa !important;
        color: white !important;
        border: none !important;
        border-radius: 4px !important;
        cursor: pointer !important;
    }
    
    .geovee-success-content-enhanced {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .geovee-success-checkmark {
        font-size: 48px !important;
    }
    
    .geovee-success-title {
        font-size: 24px !important;
    }
    
    .geovee-success-message {
        font-size: 14px !important;
    }
    
    .geovee-success-btn-primary,
    .geovee-success-btn-secondary {
        padding: 12px 20px !important;
        font-size: 14px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
    }
    
    /* FIXED Mobile Calendar View - Force Calendar Grid Display ONLY when visible */
    .geovee-calendar-view:not([style*="display: none"]) {
        padding: 10px !important;
        margin: 0 !important;
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .geovee-calendar-view:not([style*="display: none"]) .geovee-calendar-grid {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Removed - was preventing popup from ever showing on mobile */
    
    .geovee-calendar-header {
        padding: 10px !important;
        gap: 8px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .geovee-calendar-month {
        font-size: 16px !important;
        text-align: center !important;
        flex: 1 !important;
    }
    
    .geovee-calendar-prev,
    .geovee-calendar-next {
        padding: 8px 12px !important;
        font-size: 14px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .geovee-calendar-days-header {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 0 !important;
    }
    
    .geovee-calendar-days {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 1px !important;
        background: #e2e8f0 !important;
    }
    
    .geovee-calendar-day {
        min-height: 50px !important;
        padding: 4px 2px !important;
        font-size: 11px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        background: white !important;
        border: none !important;
        cursor: pointer !important;
    }
    
    .geovee-calendar-day-number {
        font-size: 12px !important;
        margin-bottom: 2px !important;
        font-weight: 600 !important;
    }
    
    .geovee-calendar-day-slots {
        font-size: 9px !important;
        margin-bottom: 1px !important;
        text-align: center !important;
    }
    
    .geovee-calendar-day-offers {
        font-size: 8px !important;
        padding: 1px 2px !important;
        text-align: center !important;
    }
    
    /* Mobile-friendly booking modal */
    .geovee-booking-modal-content {
        width: 95% !important;
        margin: 10px !important;
        padding: 20px !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        /* Fix for mobile keyboard covering fields */
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* When keyboard is open, allow full scrolling */
    .geovee-booking-modal {
        align-items: flex-start !important;
        padding-top: 20px !important;
    }
    
    .geovee-booking-modal-header {
        padding: 15px !important;
        margin: -20px -20px 20px -20px !important;
    }
    
    .geovee-booking-modal-body {
        max-height: calc(85vh - 120px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 40px !important; /* Extra space at bottom for keyboard */
    }
    
    .geovee-booking-field {
        margin-bottom: 15px !important;
    }
    
    .geovee-booking-field-input {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 12px !important;
    }
    
    /* Mobile progress bar improvements */
    .geovee-progress-bar {
        height: 6px !important;
        margin: 10px 0 !important;
    }
    
    .geovee-progress-text {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
}
