/* D-014 — small fixes on the current website (no redesign) */

/* the footer logo is dark on a dark photo: show it in white */
.footer_logo img { filter: brightness(0) invert(1); }

/* the ad licence block (REGA 2026): the licence number stands out */
.ad-licence-box { border-inline-start: 4px solid #2b7cf7; }
.ad-licence-box .fw-bold { color: #1d2a6b; letter-spacing: .5px; }

/* the phone header had no logo (hidden under 1100px): show a small one next to the menu button */
@media (max-width: 1100px) {
    .custom-navbar .logo { display: block; }
    .custom-navbar .logo img { width: 92px; }
}

/* ---- D-015: help button, login page, complaints page (same identity: #2973f7, the site font) ---- */

/* help button on every page: opens WhatsApp; the label shows on hover */
.help-fab { position: fixed; left: 20px; bottom: 20px; z-index: 1050; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 13px; border-radius: 28px; background: #2973f7; color: #fff; box-shadow: 0 6px 18px rgba(41, 115, 247, .35); transition: background .2s; }
.help-fab:hover, .help-fab:focus { background: #1d5fd6; color: #fff; }
.help-fab-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s; }
.help-fab:hover .help-fab-label, .help-fab:focus .help-fab-label { max-width: 140px; }
.side-active .help-fab { display: none; } /* not over the open phone menu */

/* login (and the pages that share its frame): tighter spacing, show/hide password, Nafath as a second way in */
@media (min-width: 992px) { .login-form { padding: 40px; } } /* smaller screens keep the original 22px */
.login-form .form-group { margin-top: 22px; }
.login-form .form-group label { margin-bottom: 8px; font-weight: 600; }
.login-form .form-control { height: 52px; }
.login-forgot { margin-bottom: 8px; font-size: .9rem; color: #2973f7; }
.password-field { position: relative; }
.password-field .form-control { padding-left: 48px; }
.password-toggle { position: absolute; left: 0; top: 0; width: 48px; height: 52px; border: 0; background: none; color: #8e8e8e; }
.login-form .login-submit, .login-form .btn-more { margin-top: 28px; }
/* inside the login frame (Nafath login page) the Nafath box needs no second frame or title */
.login-form .nafath-box { border: 0 !important; background: none !important; padding: 0; margin-top: 22px; }
.login-form .nafath-box > h5 { display: none; }
.login-form .nafath-box .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
.login-form .nafath-box .btn-primary { height: 52px; margin-top: 12px; border-radius: 10px; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #8e8e8e; font-size: .9rem; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: #e3e3e3; }
.login-nafath { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border: 1px solid #2973f7; border-radius: 10px; color: #2973f7; font-weight: 600; }
.login-nafath:hover { background: #f2f7ff; color: #2973f7; }

/* complaints: one card with tabs, and a receipt after submitting */
.complaints-page { background: #f4f6fa; padding: 50px 0 90px; }
.complaints-page .container { max-width: 880px; }
.complaints-head { text-align: center; margin-bottom: 28px; }
.complaints-head h1 { font-size: 1.9rem; font-weight: 700; color: #010101; margin: 0; }
.complaints-card { background: #fff; border: 1px solid #e6e9ef; border-radius: 14px; padding: 0 32px 32px; }
.complaints-tabs { gap: 4px; margin: 0 -32px 28px; padding: 0 24px; border-bottom: 1px solid #e6e9ef; }
.complaints-tabs button { padding: 18px 14px 15px; border: 0; border-bottom: 3px solid transparent; background: none; color: #535353; font-weight: 600; }
.complaints-tabs button.active { color: #2973f7; border-bottom-color: #2973f7; }
.complaints-card label { margin-bottom: 6px; font-weight: 600; font-size: .95rem; }
.complaints-card .form-control { min-height: 50px; border-radius: 8px; border-color: #d5d9e0; }
.complaints-submit { min-width: 200px; border-radius: 8px; }
.complaints-steps { margin: 0 0 16px; padding-inline-start: 22px; line-height: 2; color: #010101; }
.complaints-steps li { margin-bottom: 8px; }
.complaints-steps li::marker { color: #2973f7; font-weight: 700; }
.complaints-note { margin: 0; padding: 12px 16px; background: #f6f9ff; border-radius: 8px; color: #535353; font-size: .92rem; }
.complaint-receipt { background: #fff; border: 1px solid #cfe9d9; border-top: 4px solid #1e9e5a; border-radius: 14px; padding: 24px 28px; margin-bottom: 24px; }
.complaint-receipt-title { margin-bottom: 16px; color: #1e9e5a; font-weight: 700; font-size: 1.15rem; }
.complaint-receipt .row span { display: block; color: #6b7280; font-size: .85rem; }
.complaint-receipt strong { font-size: 1.25rem; color: #010101; }
.complaint-receipt p { margin: 16px 0 0; color: #535353; font-size: .92rem; }

@media (max-width: 576px) {
    .complaints-page { padding-top: 30px; }
    .complaints-card { padding: 0 18px 22px; }
    .complaints-tabs { margin: 0 -18px 22px; padding: 0 6px; }
    .complaints-tabs button { padding: 15px 9px 12px; font-size: .9rem; }
    .complaints-submit { width: 100%; }
    .help-fab { left: 14px; bottom: 14px; }
    .help-fab-label { display: none; }
}

/* D-016 (REP-004 F-017): the home search boxes were fixed at 200px inline and left the phone screen; same width, never wider than their column */
.search .tab-contetn-wrap input.form-control { width: 200px; max-width: 100%; }

/* Real-estate ads: existing boxes, lists and responsive columns. */
.announcment-detials-page .dtails-info .time { position:static; margin-bottom:.5rem; }
.announcment-detials-page .announcment-detials-img > .card-img { height:460px; max-height:460px; }
.announcment-detials-page #rega-cover { object-fit:cover; width:100%; height:100%; }
.announcment-detials-page .announcment-detials-price .price h5 { font-size:1.75rem; white-space:nowrap; }
.announcment-detials-page .announcment-detials-price .price h5 small { font-size:.55em; }
.announcment-detials-page .contact-details ul { gap:8px; }
.announcment-detials-page .contact-details ul li { margin:0; }
.announcment-detials-page .announcment-detials-price .annousment-holder .contact-details a { display:flex; align-items:center; justify-content:center; min-width:40px; min-height:40px; margin:0; }
.rega-details .announcment-description-lista li { display:grid; grid-template-columns:minmax(110px, 38%) 1fr; column-gap:12px; align-items:start; }
.announcment-detials-page .announcment-description.rega-details .announcment-description-lista li span:first-child { min-width:0; }
@media (max-width: 992px) {
    .announcment-detials-page .announcment-detials-img > .card-img { height:360px; max-height:360px; }
}
@media (max-width: 600px) {
    .announcment-detials-page .announcment-detials-img > .card-img { height:240px; max-height:240px; }
    .announcment-detials-page .announcment-detials-price .price h5 { font-size:1.5rem; }
}
.rega-details-toggle { display:flex; align-items:center; justify-content:space-between; gap:1rem; width:100%; min-height:44px; padding:0; border:0; background:none; color:inherit; font:inherit; text-align:start; }
.rega-details-toggle[aria-expanded="true"] i { transform:rotate(-90deg); }
.rega-details .announcment-description-lista li, .rega-add .announcment-description-lista li, .onecategory-card .card-body { min-width:0; overflow-wrap:anywhere; }
.rega-qr svg { width:112px; height:112px; display:block; }
.rega-thumbnails img { width:72px; height:56px; object-fit:cover; }
.rega-description { white-space:pre-wrap; overflow-wrap:anywhere; }
.onecategory-card .card-option button { display:flex; align-items:center; justify-content:center; padding:9px; height:30px; min-width:30px; margin-bottom:10px; font-size:1rem; color:#000; background:#e9e9e9; border:0; border-radius:5px; box-shadow:0 1px 2px rgba(0,0,0,.17); }
@media (min-width: 1200px) { .search-container .form-wrap { flex-wrap: nowrap; column-gap: 12px; } .search-container .form-wrap .form-group { flex: 1 1 0; min-width: 0; } }
.announcment-detials-page .announcment-description.rega-license .announcment-description-lista li span:first-child { min-width: 180px; }
@media (max-width: 575.98px) { .announcment-detials-page .announcment-description.rega-license .announcment-description-lista li span:first-child { min-width: 150px; } }
.rega-license .announcment-description-lista { margin-bottom: 0; }
.rega-add .announcment-description-lista li { margin-bottom: 10px; }
.rega-add .announcment-description-lista li span:first-child { display: inline-block; min-width: 150px; font-weight: bold; }
.rega-add-page { min-height: 0; background: none; }
/* Mobile side menu: the logout form button lines up with the menu links */
.side-nav .side-links ul li form .nav-link { display: block; width: 100%; padding: 10px 5px; font-size: 1rem; text-align: start; border: 0; border-radius: 0; }
/* Mobile side menu for guests: the logo keeps its shape (the round frame is for a person's photo) */
.side-nav .person-info .rega-side-logo { display: block; width: 120px; height: auto; margin: 0 auto; }
/* Phone side menu: the dark overlay sits just under the menu (99), above page content, so a tap outside closes it */
.side-active .bg-side-open { z-index: 98; }
