/* ============================================================
   smacy-ui.css  —  Smacy Ads UI overrides
   Matches the Smacy News header/footer style (#170072 theme).
   Delete this file to revert to the original dark navy theme.
   ============================================================ */

/* ── HEADER — base color ────────────────────────────────── */
#header {
    background-color: #170072 !important;
    border-bottom: 3px solid rgba(0,0,0,0.10) !important;
    box-shadow: 0 2px 8px rgba(243,59,100,0.18) !important;
}

#header .right-side {
    background-color: #170072 !important;
}

/* ── HEADER LAYOUT: logo left | nav center | right items right ── */
#header .container {
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
    position: relative !important;
    float: none !important;
}

/* Left side: only the logo, no float */
#header .left-side {
    float: none !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    position: static !important;
}

/* Hide the second nav (Home, Our Tariff, Contact Us) from left-side flow
   and absolutely center it in the header */
#header .left-side .navigation:nth-of-type(2) {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    float: none !important;
}

/* Right side: pushed to the far right */
#header .right-side {
    float: none !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    text-align: left !important;
    gap: 16px !important;
}

/* ── NAV LINKS ───────────────────────────────────────────── */
#header .navigation ul li a,
#header .navigation ul li a:visited {
    color: #fff !important;
    font-weight: 600;
}

#header .navigation ul li a:hover {
    color: rgba(255,255,255,0.78) !important;
}

/* Logo brand */
#header .brand span,
#header .brand {
    color: #fff !important;
}

/* ── LOCATION PILL (loc-box) ─────────────────────────────── */
loc-box {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(255,255,255,0.15) !important;
    border: 2px solid rgba(255,255,255,0.7) !important;
    border-radius: 22px !important;
    min-width: 0 !important;
    cursor: pointer !important;
}

loc-box loc-current {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 32px 7px 14px !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    position: relative !important;
}

loc-box loc-current::after {
    content: "" !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    margin-top: -4px !important;
    border: 1.5px solid transparent !important;
    border-top-color: #fff !important;
    border-left-color: #fff !important;
    width: 6px !important;
    height: 6px !important;
    transform: rotate(225deg) !important;
}

/* Hide the old inline loc-menu since we now use the modal */
loc-menu { display: none !important; }

/* ── LOGIN / REGISTER LINKS ──────────────────────────────── */
#header .header-widget .navigation ul li a,
#header .header-notifications-trigger a {
    color: #fff !important;
}

/* Post Ad button */
#header .button.ripple-effect.post-job {
    background-color: #fff !important;
    color: #170072 !important;
    border: none !important;
    border-radius: 20px !important;
}

#header .button.ripple-effect.post-job:hover {
    background-color: rgba(255,255,255,0.88) !important;
    color: #170072 !important;
}

/* Hamburger icon lines */
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    background-color: #fff !important;
}

/* ── LOCATION MODAL ──────────────────────────────────────── */
#ads-loc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9998;
}
#ads-loc-overlay.open { display: block; }

#ads-loc-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-width: 520px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}
#ads-loc-modal.open { display: block; }

/* Modal header bar — same as news site */
#ads-loc-modal .alm-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    background: #170072 !important;
}
#ads-loc-modal .alm-header b {
    color: #fff !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 700 !important;
}
#ads-loc-modal .alm-close {
    background: rgba(255,255,255,0.2) !important;
    border: none !important;
    color: #fff !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#ads-loc-modal .alm-close:hover { background: rgba(255,255,255,0.35) !important; }

/* Modal body */
#ads-loc-modal .alm-body {
    padding: 20px !important;
    display: block !important;
}

/* All Locations pill — outlined style matching news site */
#ads-loc-modal .alm-all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 9px 20px !important;
    margin-bottom: 18px !important;
    border: 1.5px solid #170072 !important;
    border-radius: 20px !important;
    color: #170072 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background .15s, color .15s !important;
    background: #fff !important;
    box-shadow: none !important;
}
#ads-loc-modal .alm-all:hover { background: #170072 !important; color: #fff !important; }

/* Row */
#ads-loc-modal .alm-row { margin-bottom: 18px !important; }

/* Label */
#ads-loc-modal .alm-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #170072 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Selects — override global select rules from style.css */
#ads-loc-modal .alm-select {
    width: 100% !important;
    padding: 11px 36px 11px 14px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23170072' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center !important;
    border: 1.5px solid #e8e8e8 !important;
    border-radius: 8px !important;
    color: #333 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: auto !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: block !important;
    transition: border-color .2s !important;
}
#ads-loc-modal .alm-select:focus {
    border-color: #170072 !important;
    box-shadow: 0 0 0 3px rgba(243,59,100,0.1) !important;
}
#ads-loc-modal .alm-select:disabled {
    opacity: .4 !important;
    cursor: default !important;
    background-color: #f9f9f9 !important;
    color: #999 !important;
}
#ads-loc-modal .alm-select option {
    color: #333 !important;
    background: #fff !important;
}

/* ── PAGE LAYOUT — no gap below footer ──────────────────── */
html {
    height: 100% !important;
}
body {
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
#wrapper {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}
#footer {
    margin-top: auto !important;
}

/* ── FOOTER ─────────────────────────────────────────────── */
#footer {
    background-color: #170072 !important;
    color: #fff !important;
}

#footer a,
#footer p,
#footer span,
#footer small {
    color: rgba(255,255,255,0.88) !important;
}

#footer a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.footer-bottom-section {
    border-top: 1px solid rgba(255,255,255,0.25) !important;
    background-color: #170072 !important;
    padding: 24px 0 !important;
}

.footer-bottom-section strong {
    color: #fff !important;
}

#footer .facebook,
#footer .instagram,
#footer .twitter,
#footer .youtube {
    border-color: rgba(255,255,255,0.4) !important;
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
}

#footer .footer-social-links li a {
    color: #fff !important;
    opacity: 1 !important;
    font-size: 16px !important;
}

#footer .footer-social-links li a:hover {
    color: #fff !important;
    opacity: 0.8 !important;
}

/* ── LOGIN PAGE — centered card with padding ─────────────── */

/* Add vertical breathing room around the login/register card */
#titlebar + .container {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
}

.login-register-page {
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 32px rgba(23,0,114,0.10) !important;
    padding: 40px 48px !important;
    margin: 0 auto !important;
    max-width: 480px !important;
}

.login-register-page .welcome-text h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #170072 !important;
    margin-bottom: 6px !important;
}

.login-register-page .welcome-text span {
    color: #666 !important;
    font-size: 14px !important;
}

.login-register-page .button.full-width {
    background-color: #170072 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.login-register-page .button.full-width:hover {
    background-color: #0f0050 !important;
}

.login-register-page .forgot-password {
    color: #170072 !important;
    font-size: 13px !important;
}

/* Keep the bottom spacer so footer doesn't hide */
.container + .margin-top-70 {
    display: block !important;
    margin-top: 0 !important;
    height: 0 !important;
}

/* ── CONTACT PAGE ────────────────────────────────────────── */

/* Reduce outer container spacing so footer fits in view */
.container.margin-top-50  { margin-top: 28px !important; }
.container.margin-bottom-50 { margin-bottom: 28px !important; }

/* Both columns align at top */
.business-info > .row {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
}

/* Contact form heading */
.contactUs h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #170072 !important;
    margin-bottom: 16px !important;
}

/* Contact info — flat, no card */
.ci-panel {
    padding-left: 8px !important;
}

.ci-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #170072 !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #170072 !important;
}

.ci-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ci-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 22px !important;
}

/* Circular icon */
.ci-icon {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1.5px solid #c8c4e8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #170072 !important;
    font-size: 18px !important;
}

/* Label + value stacked */
.ci-detail {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.ci-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #888 !important;
    text-transform: uppercase !important;
}

.ci-value {
    font-size: 14px !important;
    color: #222 !important;
    line-height: 1.5 !important;
}

.ci-value a {
    color: #170072 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.ci-value a:hover { text-decoration: underline !important; }

/* Send Message button */
.contactUs .button[type="submit"] {
    background-color: #170072 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    border: none !important;
}

/* Compact textarea */
.contactUs textarea.with-border {
    min-height: 110px !important;
}

/* ── AD LISTING PAGE — breadcrumb & header ───────────────── */
.mall-breadcrumb {
    padding: 20px 0 6px !important;
    font-size: 13px !important;
    color: #999 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
}
.mall-breadcrumb a,
.mall-breadcrumb a:visited {
    color: #170072 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.mall-breadcrumb a:hover { text-decoration: underline !important; }
.mall-breadcrumb span {
    color: #bbb !important;
    margin: 0 4px !important;
    font-weight: 400 !important;
}

.mall-listing-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 8px 0 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #eee !important;
}
.mall-found {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #170072 !important;
    background: linear-gradient(135deg, #f0effa 0%, #e8e6f8 100%) !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    border: 1.5px solid #c8c4e8 !important;
    box-shadow: 0 2px 8px rgba(23,0,114,0.10) !important;
    letter-spacing: 0.2px !important;
}
.mall-found #adFound {
    background: #170072 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 2px 9px !important;
    border-radius: 20px !important;
    min-width: 28px !important;
    text-align: center !important;
    display: inline-block !important;
}

/* Pagination tight below breadcrumb, above cards */
#dupNav {
    margin-top: 4px !important;
    margin-bottom: 20px !important;
}

@media (max-width: 600px) {
    .mall-listing-header .mall-title { font-size: 18px !important; }
    .mall-listing-header { margin-bottom: 14px !important; }
}

/* ── AD LISTING CARDS ────────────────────────────────────── */

/* Equal-height columns */
.desktopView { align-items: stretch !important; }
.desktopView .cv4cm4 { display: flex !important; flex-direction: column !important; }
.desktopView .list-ads { flex: 1 !important; }

/* The card wrapper */
.ad-card-wrap {
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09) !important;
    border: none !important;
    height: 100% !important;
    isolation: isolate !important;
}

.ad-card-img-wrap:hover img { transform: scale(1.03) !important; }

/* Zoom hint overlay */
.ad-zoom-hint {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    background: rgba(0,0,0,0.55) !important;
    color: #fff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    opacity: 0 !important;
    transition: opacity 0.2s !important;
}
.ad-card-img-wrap:hover .ad-zoom-hint { opacity: 1 !important; }

/* Text ad body */
.ad-text-body {
    flex: 1 !important;
    padding: 14px !important;
    overflow: hidden !important;
}
.ad-text-content {
    display: block !important;
    font-size: 13px !important;
    color: #333 !important;
    line-height: 1.5 !important;
}

/* Card footer: icons + timestamp */
.ad-card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 12px !important;
    border-top: 1px solid #f0f0f0 !important;
    flex-shrink: 0 !important;
}

.ad-timeago {
    font-size: 11px !important;
    color: #999 !important;
    white-space: nowrap !important;
}

/* Social icon row */
.share-buttons-icons {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
}

.share-buttons-icons li { margin: 0 !important; }

.share-buttons-icons li a img {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
}

/* ── IMAGE LIGHTBOX ──────────────────────────────────────── */
#ad-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
#ad-lightbox.open { display: flex; }

#ad-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    object-fit: contain;
}

#ad-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
#ad-lightbox-close:hover { background: rgba(255,255,255,0.3); }

