/* LVC Bookings Frontend Styles */

.lvc-booking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lvc-booking-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Booking Steps */
.lvc-booking-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.lvc-booking-steps .step {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin: 0 10px;
    border-bottom: 3px solid transparent;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lvc-booking-steps .step.active {
    color: #2c5aa0;
    border-bottom-color: #2c5aa0;
}

.lvc-booking-steps .step.completed {
    color: #28a745;
    border-bottom-color: #28a745;
}

.lvc-booking-steps .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    font-weight: bold;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.lvc-booking-steps .step.active .step-number {
    background: #2c5aa0;
    color: white;
}

.lvc-booking-steps .step.completed .step-number {
    background: #28a745;
    color: white;
}

/* Booking Content */
.lvc-booking-content {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

/* Form Elements */
.field-group {
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.2);
}

.date-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .date-fields {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.lvc-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.lvc-btn-primary {
    background: #2c5aa0;
    color: white;
}

.lvc-btn-primary:hover {
    background: #1e3f73;
}

.lvc-btn-secondary {
    background: #6c757d;
    color: white;
}

.lvc-btn-secondary:hover {
    background: #545b62;
}

.lvc-btn-success {
    background: #28a745;
    color: white;
}

.lvc-btn-success:hover {
    background: #1e7e34;
}

.lvc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Site Map Legend */
.site-map-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 20px 0 15px 0;
    padding: 12px 20px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #ddd;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid #333;
    display: inline-block;
}

.legend-color.available {
    background: #00ff00;
    opacity: 0.5;
}

.legend-color.pending {
    background: #ff9800;
    opacity: 0.8;
}

.legend-color.confirmed {
    background: #dc3545;
    opacity: 0.8;
}

.legend-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Site Map */
.site-map-container {
    margin: 20px 0;
    text-align: center;
}

.site-map-container svg {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.site-map-container .site {
    cursor: pointer;
    transition: all 0.3s ease;
}

.site-map-container .site:hover {
    fill-opacity: 0.3 !important;
}

/* Pending booking - ORANGE */
.site-map-container .site.pending-booking,
.site-map-container .site[data-status="pending"] {
    cursor: not-allowed !important;
    fill: #ff9800 !important;
    fill-opacity: 0.6 !important;
    stroke: #ff9800 !important;
    stroke-width: 2 !important;
}

.site-map-container .site.pending-booking:hover,
.site-map-container .site[data-status="pending"]:hover {
    fill-opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* Confirmed booking - RED */
.site-map-container .site.confirmed-booking,
.site-map-container .site[data-status="confirmed"] {
    cursor: not-allowed !important;
    fill: #dc3545 !important;
    fill-opacity: 0.6 !important;
    stroke: #dc3545 !important;
    stroke-width: 2 !important;
}

.site-map-container .site.confirmed-booking:hover,
.site-map-container .site[data-status="confirmed"]:hover {
    fill-opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* Fallback for any unavailable site without specific status */
.site-map-container .site[data-available="false"],
.site-map-container .site[aria-disabled="true"],
.site-map-container .site.unavailable {
    cursor: not-allowed !important;
}

.site-map-container .site[data-available="false"]:hover,
.site-map-container .site[aria-disabled="true"]:hover,
.site-map-container .site.unavailable:hover {
    cursor: not-allowed !important;
}

.site-map-container .site.selected {
    fill: #2c5aa0 !important;
    fill-opacity: 0.5 !important;
    stroke: #2c5aa0 !important;
    stroke-width: 3 !important;
}

/* Selected Dates Info */
.selected-dates-info {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Site Selection Info */
.site-selection-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

#price-breakdown {
    margin-top: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.price-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-weight: bold;
    font-size: 18px;
    border-top: 2px solid #2c5aa0;
    margin-top: 10px;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Booking Summary */
.booking-summary {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.booking-summary h4 {
    margin-top: 0;
    color: #2c5aa0;
}

/* Member Details */
.member-details {
    margin-bottom: 30px;
}

/* Guidelines Section */
.guidelines-section {
    background: #fff3cd;
    padding: 20px;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    margin-bottom: 30px;
}

.guidelines-text {
    margin-bottom: 15px;
    line-height: 1.6;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 2px;
}

/* Review Section */
.booking-review {
    margin-bottom: 30px;
}

.review-section {
    margin-bottom: 30px;
}

.review-table {
    width: 100%;
    border-collapse: collapse;
}

.review-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.review-table td:first-child {
    width: 30%;
    font-weight: 600;
}

/* Payment Info */
.payment-info {
    background: #d4edda;
    padding: 20px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 30px;
}

.bank-details {
    background: white;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.bank-details p {
    margin: 5px 0;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message h3 {
    color: #28a745;
    font-size: 28px;
    margin-bottom: 20px;
}

.booking-confirmation {
    background: #d4edda;
    padding: 20px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 20px 0;
}

.next-steps {
    background: #e8f4fd;
    padding: 20px;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    margin: 20px 0;
    text-align: left;
}

.next-steps ol {
    margin: 10px 0;
    padding-left: 20px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lvc-booking-wrapper {
        padding: 10px;
    }
    
    .lvc-booking-content {
        padding: 20px;
    }
    
    .lvc-booking-steps {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .lvc-booking-steps .step {
        margin: 5px;
        padding: 10px 15px;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .lvc-btn {
        width: 100%;
    }
}

/* Site Map Fallback */
.site-map-fallback {
    background: #f8f9fa;
    padding: 40px;
    text-align: center;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
}

/* ====================================
   MY BOOKINGS PAGE STYLES
   ==================================== */

.lvc-my-bookings-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lvc-my-bookings-wrapper h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 32px;
}

/* Filter Buttons */
.lvc-bookings-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.filter-button {
    padding: 12px 24px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-2px);
}

.filter-button.active {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.filter-button .count {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
}

.filter-button.active .count {
    background: rgba(255, 255, 255, 0.3);
}

/* Bookings Container */
.bookings-container {
    display: none;
}

.bookings-container.active {
    display: block;
}

/* No Bookings Message */
.no-bookings {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-bookings p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* Bookings Grid */
.bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Booking Card */
.booking-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.booking-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Booking Card Header */
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.booking-header h3 {
    margin: 0;
    font-size: 24px;
    color: #2c5aa0;
}

/* Status Badges */
.booking-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.booking-status.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.booking-status.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Booking Body */
.booking-body {
    margin: 15px 0;
}

.booking-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.booking-detail:last-child {
    border-bottom: none;
}

.booking-detail .label {
    color: #666;
    font-weight: 500;
}

.booking-detail .value {
    color: #333;
    font-weight: 600;
    text-align: right;
}

/* Booking Actions */
.booking-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.lvc-btn-danger {
    background: #dc3545;
    color: white;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lvc-btn-danger:hover {
    background: #c82333;
}

.lvc-btn-danger:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Rate Type Badge */
.rate-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rate-badge.rate-member {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rate-badge.rate-guest {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.rate-badge.rate-unknown {
    background: #e9ecef;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* Cancellation Notice */
.cancellation-notice {
    background: #fff3cd;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #ff9800;
    font-size: 14px;
    line-height: 1.5;
    color: #856404;
}

.cancellation-notice a {
    color: #2c5aa0;
    font-weight: 600;
    text-decoration: none;
}

.cancellation-notice a:hover {
    text-decoration: underline;
}

/* Cancelled Booking Card */
.booking-card.status-cancelled {
    opacity: 0.7;
    border-color: #f8d7da;
}

/* Messages */
.lvc-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.lvc-booking-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.lvc-booking-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for My Bookings */
@media (max-width: 768px) {
    .lvc-my-bookings-wrapper {
        padding: 15px;
    }
    
    .lvc-my-bookings-wrapper h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .lvc-bookings-filters {
        flex-direction: column;
    }
    
    .filter-button {
        width: 100%;
        text-align: center;
    }
    
    .bookings-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .booking-card {
        padding: 15px;
    }
    
    .booking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .booking-detail {
        flex-direction: column;
        gap: 5px;
    }
    
    .booking-detail .value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .filter-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .booking-header h3 {
        font-size: 20px;
    }
    
    .cancellation-notice {
        font-size: 13px;
    }
}
