/* ============================================================
   BBLM – TARIFFE (ADMIN)
   Stile tecnico, griglia chiara, leggibile
============================================================ */

/* Contenitore principale */
.bblm-tariffe-container {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Tabs */
.bblm-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    padding: 0;
    list-style: none;
}

.bblm-tabs li {
    padding: 10px 18px;
    background: #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: 0.2s;
}

.bblm-tabs li:hover {
    background: #dfe3e6;
}

.bblm-tabs li.active {
    background: var(--verde-scuro);
    color: #fff;
}

/* Contenuto tab */
.bblm-tab-content {
    display: none;
    padding: 15px 5px;
}

.bblm-tab-content.active {
    display: block;
}

/* Titoli */
.bblm-tab-content h3 {
    margin-top: 0;
    color: var(--verde-scuro);
}

.bblm-tab-content h4 {
    margin-bottom: 10px;
    margin-top: 25px;
    color: #444;
}

/* Form groups */
.bblm-form-group {
    margin-bottom: 15px;
}

.bblm-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.bblm-form-group input[type="text"],
.bblm-form-group input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

/* Pulsante salva */
.bblm-save-btn {
    background: var(--verde-scuro);
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 25px;
}

.bblm-save-btn:hover {
    background: #0f4f2f;
}

/* ============================================================
   BBLM – TARIFFE (CARDS)
============================================================ */

.bblm-tariffe-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .bblm-tariffe-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bblm-tariffe-container {
        grid-template-columns: 1fr;
    }
}

.bblm-tariff-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-left: 6px solid transparent;
}

.bblm-tariff-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
}

.bblm-tariff-card label {
    font-weight: 600;
    color: var(--verde-scuro);
    display: block;
    margin-bottom: 5px;
}

.bblm-tariff-card input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Colori card */
.bblm-tariff-bassa {
    border-left-color: #2e8b57; /* verde */
}

.bblm-tariff-media {
    border-left-color: #ff8c00; /* arancione */
}

.bblm-tariff-alta {
    border-left-color: #cc0000; /* rosso */
}

/* ============================================================
   BBLM – TARIFFE (HEADER)
============================================================ */

.bblm-tariffe-header {
    background: #f7faf9;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.bblm-tariffe-header h2 {
    margin: 0 0 10px;
    color: var(--verde-scuro);
    font-size: 26px;
}

.bblm-tariffe-header p {
    margin: 0;
    color: #444;
    font-size: 15px;
}

/* ============================================================
   BBLM – VALIDAZIONE STAGIONI (BARRA COPERTURA)
   ============================================================ */

#bblm-validazione-stagioni {
    margin-top: 40px;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #ddd;
}

#bblm-validazione-stagioni h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

/* Barra grafica */
#bblm-barra-copertura {
    width: 100%;
    height: 22px;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    border: 1px solid #ccc;
}

/* Ogni giorno dell'anno è un segmento */
.bblm-barra-segmento {
    height: 100%;
    flex: 1;
}

/* Colori dei segmenti */
.bblm-verde {
    background: #2e8b57; /* coperto */
}

.bblm-rosso {
    background: #cc0000; /* scoperto */
}

.bblm-arancio {
    background: #ff8c00; /* sovrapposto */
}

/* Messaggio generale */
#bblm-messaggio-copertura {
    margin-top: 12px;
    font-size: 15px;
    color: #444;
}

/* Lista periodi mancanti */
#bblm-periodi-mancanti {
    margin-top: 10px;
    font-size: 14px;
    color: #444;
}

#bblm-periodi-mancanti ul {
    margin: 5px 0 0 0;
    padding-left: 18px;
}

#bblm-periodi-mancanti li {
    margin-bottom: 3px;
}

/* ============================================================
   LISTINO CAMERE – CARD PUBBLICHE (STILE UGUALE AL BACKEND)
   ============================================================ */

.bblm-listino-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

/* Card generica */
.bblm-card {
    flex: 1;
    min-width: 280px;
    background: #ffffff; /* come admin */
    color: #333;         /* testo scuro */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-left: 6px solid transparent; /* bordo colorato */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bblm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Titolo card */
.bblm-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
    color: var(--verde-scuro);
}

/* Testo periodi */
.bblm-card p {
    margin: 6px 0;
    font-size: 16px;
    line-height: 1.4;
    color: #444;
}

/* Colori bordo come admin */
.bblm-card-bassa {
    border-left-color: #2e8b57;
}

.bblm-card-media {
    border-left-color: #ff8c00;
}

.bblm-card-alta {
    border-left-color: #cc0000;
}

/* Responsive */
@media (max-width: 768px) {
    .bblm-listino-wrapper {
        flex-direction: column;
    }
}

.bblm-listino-descrizione {
    margin-bottom: 20px;
    font-size: 16px;
    color: #444;
    line-height: 1.6;
}

/* ============================================================
   BBLM – COLORI CARD CAMERE (Ginestra, Lavanda, Mimosa)
   Compatibile con le card esistenti
============================================================ */

/* Ginestra – Rosa tenue */
.bblm-tariff-card.cam-ginestra {
    background: #ffe6ef !important; /* rosa chiaro */
    border-left-color: #ff8fb3 !important; /* rosa più intenso */
}

/* Lavanda – Celeste pastello */
.bblm-tariff-card.cam-lavanda {
    background: #e6f3ff !important; /* celeste chiaro */
    border-left-color: #7bbcff !important; /* celeste più intenso */
}

/* Mimosa – Verde chiaro */
.bblm-tariff-card.cam-mimosa {
    background: #e9ffe6 !important; /* verde chiaro */
    border-left-color: #7edc6c !important; /* verde più intenso */
}



/* ============================================================
   BBLM – EVENTI (admin)
   Stile identico al pixel, estratto dagli inline
============================================================ */

/* Messaggi di conferma / errore */
.bblm-event-admin-msg-success {
    padding: 10px;
    background: #ddffdd;
    border-left: 4px solid #009900;
    margin-bottom: 20px;
}

.bblm-event-admin-msg-error {
    padding: 10px;
    background: #ffdddd;
    border-left: 4px solid #cc0000;
    margin-bottom: 20px;
}

/* Contenitore principale */
.bblm-event-admin-section {
    padding: 30px 0;
    background: var(--grigio-chiaro);
}

.bblm-event-admin-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* Box bianco */
.bblm-event-admin-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Titoli */
.bblm-event-admin-title {
    margin-bottom: 20px;
    color: var(--verde-scuro);
}

.bblm-event-admin-subtitle {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--verde-scuro);
}

/* Form */
.bblm-event-admin-label {
    font-weight: 600;
    color: var(--verde-scuro);
    display: block;
    margin-bottom: 5px;
}

.bblm-event-admin-input,
.bblm-event-admin-textarea,
.bblm-event-admin-file {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.bblm-event-admin-textarea {
    resize: vertical;
}

/* Immagine attuale */
.bblm-event-admin-img-preview {
    width: 120px;
    border-radius: 8px;
    margin-top: 5px;
}

/* Tabella eventi */
.bblm-event-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.bblm-event-admin-table th {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background: #f0f0f0;
    text-align: left;
}

.bblm-event-admin-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Stato evento */
.bblm-event-status-active {
    color: green;
}

.bblm-event-status-inactive {
    color: red;
}

/* Azioni */
.bblm-event-admin-action-edit {
    color: #0066cc;
    font-weight: 600;
    margin-right: 15px;
}

.bblm-event-admin-action-delete {
    color: #cc0000;
    font-weight: 600;
}

/* Pulsante salva */
.bblm-event-admin-save-btn {
    background: var(--verde-scuro);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


/* ============================================================
   BBLM – EVENTI (frontend)
   Stile identico al pixel, estratto dagli inline
============================================================ */

.bblm-eventi-home-section {
    padding: 40px 0;
    background: #ffffff;
}

.bblm-eventi-home-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.bblm-eventi-home-title {
    text-align: center;
    color: var(--verde-scuro);
    margin-bottom: 30px;
}

/* Griglia eventi */
.bblm-event-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Card evento */
.bblm-event-card {
    width: 300px;
    background: #f7faf9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: 0.2s;
}

.bblm-event-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.bblm-event-card-body {
    padding: 15px;
}

.bblm-event-card-title {
    margin-top: 0;
    color: var(--verde-scuro);
    font-size: 20px;
}

.bblm-event-card-date {
    margin: 5px 0 10px;
    color: #555;
}

.bblm-event-card-desc {
    margin: 0;
    color: #333;
}


/* ============================================================
   BBLM – EVENTI (popup)
   Stile identico al pixel, ma classi più coerenti e modulari
============================================================ */

/* Overlay */
.bblm-event-popup {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Contenitore popup */
.bblm-event-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Pulsante chiusura */
.bblm-event-popup-close {
    position: absolute;
    top: 10px; 
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

/* Immagine */
.bblm-event-popup-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* Titolo */
.bblm-event-popup-title {
    color: var(--verde-scuro);
    margin-top: 0;
}

/* Date */
.bblm-event-popup-date {
    color: #555;
    font-weight: 600;
}

/* Descrizione */
.bblm-event-popup-desc {
    color: #333;
}