/* ============================================================
   InfoAlpin Salvamont — Design System v3
   Palette: #EE874E orange · #232323 text · #f5f4f2 bg · #fff card
   ============================================================ */

/* BASE */
.ias-wrap *, .ias-wrap *::before, .ias-wrap *::after { box-sizing: border-box; font-family: inherit; }
.ias-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #232323;
    line-height: 1.6;
    font-size: 15px;
}

/* ── HERO ───────────────────────────────────────────────── */
.ias-hero {
    background: #f5f4f2;
    border: 1px solid #e8e7e5;
    border-radius: 14px;
    padding: 36px 40px;
    margin-bottom: 24px;
}
.ias-hero-inner {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 40px;
    align-items: center;
}
@media (max-width: 720px) {
    .ias-hero { padding: 24px 20px; }
    .ias-hero-inner { grid-template-columns: 1fr; gap: 24px; }
}

.ias-hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #EE874E;
    margin: 0 0 10px;
}
.ias-hero-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #232323;
    line-height: 1.1;
    margin: 0 0 10px;
    letter-spacing: -.5px;
}
.ias-hero-sub {
    font-size: 14px;
    color: #888;
    margin: 0 0 20px;
    line-height: 1.6;
    max-width: 480px;
}
.ias-hero-phones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}
.ias-hero-note {
    font-size: 12px;
    color: #aaa;
    margin: 14px 0 0;
    line-height: 1.6;
}
.ias-hero-note strong { color: #666; font-weight: 600; }

/* Phone buttons */
.ias-phone-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    border-radius: 10px;
    padding: 13px 20px;
    transition: opacity .15s, transform .15s;
}
.ias-phone-btn:hover { opacity: .9; transform: translateY(-1px); }
.ias-phone-btn--red {
    background: #fff;
    border: 1.5px solid #e8e7e5;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ias-phone-btn--red .ias-phone-btn-num { color: #c0392b; }
.ias-phone-btn--red .ias-phone-btn-lbl { color: #aaa; }
.ias-phone-btn--orange {
    background: #EE874E;
    border: 1.5px solid transparent;
    box-shadow: 0 2px 8px rgba(238,135,78,.3);
}
.ias-phone-btn--orange .ias-phone-btn-num { color: #fff; }
.ias-phone-btn--orange .ias-phone-btn-lbl { color: rgba(255,255,255,.8); }
.ias-phone-btn-num { font-size: 20px; font-weight: 800; letter-spacing: .3px; line-height: 1; }
.ias-phone-btn-lbl { font-size: 11px; margin-top: 4px; }

/* Hero stats */
.ias-hero-right { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 720px) {
    .ias-hero-right { flex-direction: row; flex-wrap: wrap; }
    .ias-stat-hero { flex: 1; min-width: 120px; }
}
.ias-stat-hero {
    background: #fff;
    border: 1px solid #e8e7e5;
    border-radius: 10px;
    padding: 14px 16px;
}
.ias-stat-hero-num { display: block; font-size: 24px; font-weight: 800; color: #232323; line-height: 1; letter-spacing: -.5px; }
.ias-stat-hero-lbl { display: block; font-size: 11px; color: #aaa; margin-top: 4px; }


/* ── TABS ────────────────────────────────────────── */
.ias-tabs-anchor { margin-bottom: 20px; }
.ias-tabs {
    display: flex;
    gap: 6px;
    background: transparent;
    padding: 0;
}
.ias-tab {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e8e7e5;
    border-radius: 7px;
    background: #f5f4f2;
    font-size: 13.5px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    font-family: inherit;
    text-align: center;
}
.ias-tab:hover {
    background: #edecea;
    color: #232323;
    border-color: #d8d7d5;
}
.ias-tab--active {
    background: #EE874E !important;
    color: #fff !important;
    border-color: #EE874E !important;
    font-weight: 600;
}
@media (max-width: 600px) {
    .ias-tabs { flex-wrap: wrap; }
    .ias-tab { min-width: calc(50% - 4px); font-size: 12px; padding: 9px 8px; }
}


/* ── PANELS ─────────────────────────────────────────────── */
.ias-panel { display: none; }
.ias-panel--active { display: block; }

.ias-panel-header { margin-bottom: 20px; }
.ias-panel-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #232323;
    margin: 0 0 5px;
}
.ias-panel-header p { font-size: 13px; color: #888; margin: 0; }

/* ── SECTION LABEL ──────────────────────────────────────── */
.ias-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #aaa;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ebebeb;
}

/* ── FILTER BAR ─────────────────────────────────────────── */
.ias-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f5f4f2;
    border-radius: 8px;
    border: 1px solid #eae9e7;
}
.ias-search-wrap { position: relative; flex: 1; min-width: 160px; }
.ias-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; pointer-events: none; color: #bbb; }
.ias-search-wrap input {
    width: 100%;
    padding: 8px 10px 8px 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    outline: none;
    font-family: inherit;
    color: #232323;
}
.ias-search-wrap input:focus { border-color: #EE874E; }
.ias-filter-btns { display: flex; gap: 4px; }
.ias-filter-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    color: #666;
    font-family: inherit;
    transition: all .15s;
}
.ias-filter-btn:hover { border-color: #EE874E; color: #EE874E; }
.ias-filter-btn--active { background: #EE874E; border-color: #EE874E; color: #fff !important; }
.ias-count { font-size: 12px; color: #bbb; white-space: nowrap; }

/* ── JUDETE GRID ─────────────────────────────────────────── */
.ias-judete-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
@media (max-width: 560px) { .ias-judete-grid { grid-template-columns: 1fr; } }

.ias-judet-card {
    background: #fff;
    border: 1px solid #e8e7e5;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow .2s;
}
.ias-judet-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.ias-judet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ias-judet-tip {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}
.ias-judet-tip--judetean { background: #f0f4ff; color: #3b5bdb; }
.ias-judet-tip--local { background: #f5f0ff; color: #7048e8; }
.ias-judet-name { font-size: 18px; font-weight: 700; color: #232323; margin: 0; }

.ias-btn-112 {
    background: #c0392b;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    flex-shrink: 0;
    letter-spacing: .5px;
    transition: background .15s;
}
.ias-btn-112:hover { background: #a93226; color: #fff; }

/* Phone rows in card */
.ias-judet-phones {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f8f7f5;
    border-radius: 7px;
    padding: 10px 14px;
}
.ias-phone-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ias-phone-lbl { font-size: 11px; color: #aaa; white-space: nowrap; }
.ias-phone-num { font-size: 14px; font-weight: 600; color: #EE874E; text-decoration: none; }
.ias-phone-num:hover { text-decoration: underline; }
.ias-phone-num--urg { color: #c0392b; }

/* Detail rows */
.ias-judet-details { display: flex; flex-direction: column; }
.ias-judet-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ias-link-small {
    font-size: 12px;
    color: #EE874E;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid #EE874E;
    border-radius: 20px;
    transition: all .15s;
}
.ias-link-small:hover { background: #EE874E; color: #fff; }

/* ── STATS ───────────────────────────────────────────────── */
.ias-stats-compare {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 900px) { .ias-stats-compare { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .ias-stats-compare { grid-template-columns: 1fr; } }

.ias-stat-year-card {
    background: #fff;
    border: 1px solid #e8e7e5;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ias-stat-year-card--main {
    border-color: #EE874E;
    box-shadow: 0 0 0 3px rgba(238,135,78,.08);
}
.ias-stat-year-head { display: flex; align-items: center; justify-content: space-between; }
.ias-stat-year { font-size: 22px; font-weight: 800; color: #232323; }
.ias-stat-badge {
    font-size: 10px;
    font-weight: 700;
    background: #EE874E;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .3px;
}

.ias-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ias-stat-box { border-radius: 7px; padding: 10px 8px; text-align: center; }
.ias-stat-box--orange { background: #fdf0e8; }
.ias-stat-box--green  { background: #edf7ed; }
.ias-stat-box--red    { background: #fdecea; }
.ias-stat-box--blue   { background: #eef3ff; }
.ias-stat-n { display: block; font-size: 18px; font-weight: 800; color: #232323; line-height: 1.2; }
.ias-stat-l { display: block; font-size: 10px; color: #999; margin-top: 3px; }

.ias-stat-details { display: flex; flex-direction: column; border-top: 1px solid #f0efed; padding-top: 10px; }
.ias-stat-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid #f8f7f5;
    color: #777;
}
.ias-stat-detail-row:last-child { border-bottom: none; }
.ias-stat-detail-row strong { color: #232323; }
.ias-stat-sursa { font-size: 10px; color: #ccc; margin: 0; border-top: 1px solid #f0efed; padding-top: 8px; line-height: 1.5; }

.ias-info-box {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.6;
}
.ias-info-box-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.ias-info-box--orange { background: #fff8f2; border-left: 3px solid #EE874E; }
.ias-info-box--red    { background: #fef2f2; border-left: 3px solid #c0392b; }

/* ── SOS ─────────────────────────────────────────────────── */
.ias-sos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 680px) { .ias-sos-grid { grid-template-columns: 1fr; } }

.ias-sos-card { background: #fff; border: 1px solid #e8e7e5; border-radius: 10px; overflow: hidden; }
.ias-sos-head { padding: 14px 18px; }
.ias-sos-head h3 { font-size: 14px; font-weight: 700; margin: 0; color: #fff; }
.ias-sos-body { padding: 16px 18px; }

.ias-sos-step { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.ias-sos-step:last-of-type { margin-bottom: 0; }
.ias-sos-step-num {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #EE874E;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.ias-sos-step-titlu { font-size: 13px; font-weight: 700; color: #232323; margin-bottom: 3px; }
.ias-sos-step-desc { font-size: 12.5px; color: #666; line-height: 1.55; }

.ias-sos-tips { background: #f5f4f2; border-radius: 7px; padding: 12px 14px; margin-top: 14px; }
.ias-sos-tips-titlu { font-size: 10px; font-weight: 700; color: #bbb; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.ias-sos-tip { font-size: 12px; color: #666; padding: 3px 0; line-height: 1.5; }

.ias-sos-112 {
    background: #fff;
    border: 1px solid #e8e7e5;
    border-left: 3px solid #c0392b;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.ias-sos-112 h3 { font-size: 14px; font-weight: 700; color: #c0392b; margin: 0 0 12px; }
.ias-sos-112-list { display: flex; flex-direction: column; gap: 8px; }
.ias-sos-112-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.ias-sos-112-nr {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ias-checklist {
    background: #f0faf0;
    border: 1px solid #d4edda;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.ias-checklist h3 { font-size: 14px; font-weight: 700; color: #2d6a4f; margin: 0 0 12px; }
.ias-checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .ias-checklist-grid { grid-template-columns: 1fr; } }
.ias-checklist-item { display: flex; gap: 8px; font-size: 13px; color: #2d6a4f; align-items: flex-start; }
.ias-check { font-size: 15px; flex-shrink: 0; cursor: pointer; }

/* ── PARCURI ─────────────────────────────────────────────── */
.ias-parc-amenda {
    background: #fff8f2;
    border: 1px solid #f5d5b8;
    border-left: 3px solid #EE874E;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #7a4010;
    margin-bottom: 20px;
    line-height: 1.7;
}
.ias-parc-card {
    background: #fff;
    border: 1px solid #e8e7e5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 14px;
}
.ias-parc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ias-parc-name { font-size: 16px; font-weight: 700; color: #232323; margin: 0 0 6px; }
.ias-parc-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.ias-parc-meta span { font-size: 12px; color: #888; }
.ias-parc-contact { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.ias-link-phone { font-size: 13px; color: #EE874E; text-decoration: none; font-weight: 600; }
.ias-link-phone:hover { text-decoration: underline; }

.ias-parc-note {
    font-size: 13px;
    color: #555;
    background: #f8f7f5;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 0 0 14px;
    line-height: 1.65;
}
.ias-parc-reguli-titlu { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #bbb; margin-bottom: 8px; }
.ias-parc-reguli { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.ias-regula {
    display: flex;
    gap: 8px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    align-items: flex-start;
    line-height: 1.5;
}
.ias-regula-icon { flex-shrink: 0; font-size: 13px; margin-top: 1px; }
.ias-regula--red   { background: #fef2f2; color: #6b1f1f; }
.ias-regula--green { background: #f0faf0; color: #1f5c2e; }
.ias-parc-admin { font-size: 12px; color: #bbb; border-top: 1px solid #f0efed; padding-top: 10px; line-height: 1.6; }
.ias-parc-admin a { color: #EE874E; text-decoration: none; }

/* ── RECOMANDĂRI ─────────────────────────────────────────── */
.ias-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
@media (max-width: 560px) { .ias-rec-grid { grid-template-columns: 1fr; } }

.ias-rec-card {
    background: #fff;
    border: 1px solid #e8e7e5;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    position: relative;
}
.ias-rec-card--urgent {
    border-color: #f5c6c6;
    background: #fffafa;
}
.ias-rec-icon { font-size: 24px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.iac2-rec-body { flex: 1; }
.ias-rec-card { position: relative; }
.ias-rec-titlu {
    font-size: 14px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ias-rec-badge {
    display: inline-block;
    position: static;
    font-size: 10px;
    font-weight: 700;
    background: #c0392b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .3px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── LINKS UTILE ─────────────────────────────────────────── */
.ias-links-utile { margin-top: 24px; }
.ias-links-utile h3 { font-size: 14px; font-weight: 700; color: #232323; margin: 0 0 12px; }
.ias-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ias-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e8e7e5;
    border-radius: 8px;
    padding: 10px 14px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.ias-link-card:hover { border-color: #EE874E; box-shadow: 0 2px 8px rgba(238,135,78,.1); }
.ias-link-card-icon { font-size: 18px; flex-shrink: 0; }
.ias-link-card-txt { font-size: 13px; font-weight: 600; color: #232323; line-height: 1.3; }
.ias-link-card-txt small { display: block; font-weight: 400; color: #aaa; font-size: 11px; margin-top: 1px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.ias-footer-note {
    margin-top: 24px;
    padding: 10px 14px;
    background: #f5f4f2;
    border-radius: 6px;
    font-size: 12px;
    color: #aaa;
    line-height: 1.6;
}
.ias-footer-note a { color: #EE874E; text-decoration: none; }
.ias-empty {
    text-align: center;
    padding: 40px 20px;
    color: #bbb;
    background: #f8f7f5;
    border: 1px dashed #e0deda;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 14px;
}
