/**
 * CSS Frontend Commun - DSI Location
 * Styles partagés pour toutes les pages frontend
 *
 * @package DSI\Location
 * @since 2.0.0
 */

/* ==========================================================================
   Variables CSS
   ========================================================================== */
:root {
    --dsi-primary: #0073aa;
    --dsi-primary-green: #00857f;
    --dsi-primary-teal: #33c1ba;
    --dsi-primary-red: #dd1c1a;
    --dsi-success: #28a745;
    --dsi-danger: #dc3545;
    --dsi-warning: #ffc107;
    --dsi-info: #17a2b8;
    --dsi-light: #f9f9f9;
    --dsi-border: #ddd;
    --dsi-text: #333;
    --dsi-radius: 8px;
    --dsi-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Messages et notifications
   ========================================================================== */
.notice {
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.notice-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}

.notice-error {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

.notice-info {
    background-color: #cff4fc;
    color: #055160;
    border-color: #b6effb;
}

.notice-warning {
    background-color: #fff3cd;
    color: #664d03;
    border-color: #ffecb5;
}

.message {
    margin-bottom: 0.6rem;
}

/* ==========================================================================
   Utilitaires
   ========================================================================== */
.hidden {
    display: none;
}

/* ==========================================================================
   Modales génériques
   ========================================================================== */
.dsi-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 1000;
}

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

.dsi-modal-content {
    position: relative;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    margin: auto;
    z-index: 1001;
}

.dsi-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

/* ==========================================================================
   Single Product - Cacher panier/meta
   ========================================================================== */
.cart,
.product_meta {
    display: none !important;
}

.wc-block-components-quantity-selector {
    display: none !important;
}

/* ==========================================================================
   Conteneurs principaux
   ========================================================================== */
.dsi-location-calendar-wrapper,
.dsi-reservation-form-wrapper {
    margin: 30px 0;
    padding: 25px;
    background: var(--dsi-light);
    border-radius: var(--dsi-radius);
    box-shadow: var(--dsi-shadow);
}

.dsi-location-calendar-wrapper h3,
.dsi-reservation-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--dsi-text);
    font-size: 1.5em;
    font-weight: 600;
}

#dsi-unit-calendars {
    width: 100%;
}
