/* ═══════════════════════════════════════════════════════════
   SBC Beach Profile v4.0 — Stat Cards + Chips + Badges
   Loaded by sbc-theme on single-listing pages
   ═══════════════════════════════════════════════════════════ */

/* ─── SECTION FRAME ─── */
.sbc-section {
    background: #fff;
    border: 1px solid #E5E7F2;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(10, 22, 40, 0.03);
}

.sbc-section-header {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F1F5F9;
}

.sbc-section-header h3 {
    font-size: 17px !important;
    font-weight: 600;
    color: #1E293B;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.sbc-section-header h3 i {
    color: #00B4D8;
    font-size: 16px;
}

.sbc-section-body { padding: 0; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT 1: STAT CARDS (Beach Overview)
   ═══════════════════════════════════════════════════════════ */
.sbc-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.sbc-stat-card {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    transition: all 0.2s;
}

.sbc-stat-card:hover {
    border-color: #00B4D8;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.08);
    transform: translateY(-2px);
}

.sbc-stat-icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 6px;
}

.sbc-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #0A1628;
    margin-bottom: 4px;
    line-height: 1.2;
}

.sbc-stat-value .sbc-price-level {
    color: #00B4D8;
    letter-spacing: 1px;
}

.sbc-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748B;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   FEATURE BADGES (checkbox results — bottom of cards/chips)
   ═══════════════════════════════════════════════════════════ */
.sbc-feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #E2E8F0;
}

.sbc-feature-badges:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.sbc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.sbc-badge-icon {
    font-size: 13px;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT 2: CHIPS (Vibe, Services, Eco, Accessibility)
   ═══════════════════════════════════════════════════════════ */
.sbc-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
}

.sbc-chip-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sbc-chip-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    min-width: 110px;
    flex-shrink: 0;
}

.sbc-chip-value {
    font-size: 13px;
    color: #1E293B;
    font-weight: 500;
}

.sbc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
}

.sbc-chip {
    padding: 4px 10px;
    background: #F0F9FF;
    color: #0369A1;
    border: 1px solid #BAE6FD;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.sbc-chip-select {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FDE68A;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT 3: MIXED (label/value rows + tables)
   ═══════════════════════════════════════════════════════════ */
.sbc-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sbc-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 13px;
}

.sbc-detail-row:last-child {
    border-bottom: none;
}

.sbc-detail-label {
    color: #64748B;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 140px;
}

.sbc-detail-value {
    color: #1E293B;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

.sbc-detail-value a {
    color: #0077B6;
    text-decoration: none;
    border-bottom: 1px dotted #0077B6;
}
.sbc-detail-value a:hover { color: #00B4D8; border-bottom-style: solid; }

.sbc-detail-value .sbc-chips {
    justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════
   TABLES (Sunbed pricing, Cocktails, Activities pricing…)
   ═══════════════════════════════════════════════════════════ */
.sbc-table-wrap {
    margin-top: 12px;
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}

.sbc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

.sbc-table thead {
    background: #F8FAFC;
}

.sbc-table th {
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
}

.sbc-table th.sbc-th-right { text-align: right; }

.sbc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
}

.sbc-table tbody tr:last-child td { border-bottom: none; }
.sbc-table tbody tr:hover { background: #F8FAFC; }

.sbc-td-bold {
    font-weight: 600;
    color: #0A1628;
}

.sbc-td-right {
    text-align: right;
    font-weight: 600;
    color: #00B4D8;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sbc-section {
        padding: 12px 14px;
        margin-bottom: 8px;
    }
    .sbc-section-header h3 { font-size: 15px !important; }
    .sbc-stat-cards {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    .sbc-stat-card { padding: 12px 8px; }
    .sbc-stat-value { font-size: 14px; }
    .sbc-stat-label { font-size: 9px; }
    .sbc-chip-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .sbc-chip-label { min-width: auto; }
    .sbc-detail-row {
        flex-direction: column;
        gap: 2px;
        padding: 8px 0;
    }
    .sbc-detail-label { min-width: auto; font-size: 11px; }
    .sbc-detail-value { text-align: left; }
    .sbc-detail-value .sbc-chips { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .sbc-stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .sbc-section-header h3 { font-size: 14px !important; }
}
