/* ====================================================================
   SIMPLE RENT — Stiluri reusable extrase din inline <style> in PHP
   Incarcat dupa style.css in header.php
   ==================================================================== */

/* ─── Skip-to-content link (a11y) ───────────────────────────────── */
.sr-skip-link {
    position: absolute; top: -100px; left: 0; z-index: 10000;
    padding: 12px 20px;
    background: #0ea5e9; color: #fff !important;
    font-weight: 600; text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.15s ease;
}
.sr-skip-link:focus { top: 0; outline: 3px solid #fde047; outline-offset: 2px; }

/* ─── Reduced motion: respecta preferinta utilizatorului ────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ─── Phone modal (footer-global, declansat din toata pagina) ───── */
.sr-phone-modal { position: fixed; inset: 0; z-index: 10000; display: none; }
.sr-phone-modal.open { display: block; }
.sr-phone-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .2s ease;
}
.sr-phone-modal.open .sr-phone-modal-overlay { opacity: 1; }
.sr-phone-modal-card {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(.96);
    width: min(92vw, 420px);
    background: #fff; color: #0a1828;
    border-radius: 18px; padding: 18px 18px 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.12);
    opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.sr-phone-modal.open .sr-phone-modal-card { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sr-phone-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sr-phone-modal-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(180deg, #4fd1ff, #219ef0);
    color: #06131b; display: grid; place-items: center; font-size: 1.2rem;
    flex-shrink: 0;
}
.sr-phone-modal-title { font-weight: 800; font-size: 1rem; line-height: 1.25; }
.sr-phone-modal-num { font-size: .9rem; color: rgba(10,24,40,.62); font-weight: 600; margin-top: 2px; direction: ltr; }
.sr-phone-modal-close {
    margin-left: auto; background: transparent; border: none; padding: 6px;
    font-size: 1.05rem; color: rgba(10,24,40,.55); cursor: pointer; border-radius: 8px;
    display: grid; place-items: center; flex-shrink: 0;
}
.sr-phone-modal-close:hover { color: rgba(10,24,40,.92); background: rgba(10,24,40,.06); }
.sr-phone-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sr-phone-modal-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 16px 12px; border-radius: 12px; text-decoration: none;
    font-weight: 800; font-size: .98rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.sr-phone-modal-btn i { font-size: 1.5rem; }
.sr-phone-modal-btn:hover { transform: translateY(-2px); }
.sr-phone-modal-btn-call {
    background: linear-gradient(180deg, #4fd1ff, #219ef0);
    color: #06131b;
    box-shadow: 0 8px 20px rgba(33,158,240,.25);
}
.sr-phone-modal-btn-call:hover { color: #06131b; box-shadow: 0 12px 28px rgba(33,158,240,.35); }
.sr-phone-modal-btn-wa {
    background: linear-gradient(180deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37,211,102,.25);
}
.sr-phone-modal-btn-wa:hover { color: #fff; box-shadow: 0 12px 28px rgba(37,211,102,.35); }
.sr-phone-modal-cancel {
    margin-top: 12px; width: 100%; padding: 10px 12px; border-radius: 10px;
    background: transparent; border: 1px solid rgba(10,24,40,.12);
    color: rgba(10,24,40,.72); font-weight: 700; cursor: pointer;
}
.sr-phone-modal-cancel:hover { background: rgba(10,24,40,.04); color: rgba(10,24,40,.92); }
@media (max-width: 575.98px) {
    .sr-phone-modal-card {
        top: auto; bottom: 0;
        transform: translate(-50%, 20px);
        border-radius: 18px 18px 0 0;
        width: 100%;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }
    .sr-phone-modal.open .sr-phone-modal-card { transform: translate(-50%, 0); }
}

/* ─── Filter card pe /masini ────────────────────────────────────── */
.mp-filters {
    padding: 18px 22px;
}
.mp-filters .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    margin-bottom: 6px;
}
.mp-filters .form-control,
.mp-filters .form-select {
    border-radius: 8px;
    font-size: 0.95rem;
}
.mp-filters .input-group-text {
    background: #f4f9ff;
    border-color: #d6e2f0;
    color: #0ea5e9;
    border-radius: 8px 0 0 8px;
}
