/* ================================================================
   PAGES ENHANCED CSS - index, search, ad, dashboard/ads, dashboard/index
   Navy #1B4F72 | Gold #C9A84C | Ivory #F8F5F0
   ================================================================ */

/* ── AD CARDS (shared: index + search) ── */
.ad-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #E4DDD2;
    box-shadow: 0 2px 10px rgba(27,79,114,.07);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
}
.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(27,79,114,.14);
    border-color: #C9A84C;
}
.ad-image-wrap, .ad-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #F0EBE3;
}
.ad-image-wrap img, .ad-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
    display: block;
}
.ad-card:hover .ad-image-wrap img,
.ad-card:hover .ad-card-img img { transform: scale(1.05); }

/* purpose badge on image */
.acp-badge {
    position: absolute;
    top: 10px; right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 800;
    color: #fff;
    backdrop-filter: blur(4px);
    letter-spacing: .3px;
}
.acp-sale { background: rgba(27,79,114,.9); }
.acp-rent { background: rgba(39,174,96,.9); }

/* card body */
.ad-body, .ad-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.ad-cat {
    font-size: .72rem;
    color: #C9A84C;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ad-title, .ad-card-body h3 {
    font-size: .92rem;
    font-weight: 800;
    color: #1A252F;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ad-price, .ad-card-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.price {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1B4F72;
}
.price-free {
    font-size: .9rem;
    font-weight: 800;
    color: #27AE60;
}

/* specs strip */
.ac-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.ac-spec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    color: #6B8099;
    background: #F8F5F0;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid #E4DDD2;
    font-weight: 600;
}
.ac-spec i { color: #C9A84C; font-size: .68rem; }

/* card meta (city) */
.ad-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .75rem;
    color: #9BAEC1;
}
.ad-card-meta i { font-size: .72rem; color: #C9A84C; }

/* ================================================================
   ADS GRID
   ================================================================ */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}
@media(max-width:640px){ .ads-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media(max-width:420px){ .ads-grid { grid-template-columns: 1fr; } }

/* ================================================================
   INDEX.PHP — hero + sections
   ================================================================ */
.hero-section {
    background: linear-gradient(135deg, #0D2D45 0%, #1B4F72 55%, #2E86AB 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A84C' fill-opacity='.06'%3E%3Cpath d='M40 0l40 40-40 40L0 40z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 14px;
}
.hero-title span { color: #E8C97A; }
.hero-sub {
    font-size: clamp(.9rem, 2vw, 1.1rem);
    color: rgba(255,255,255,.75);
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.hero-search-box {
    display: flex;
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
    overflow: hidden;
    border: 3px solid rgba(201,168,76,.3);
}
.hero-search-box select {
    padding: 0 16px;
    border: none;
    border-left: 1.5px solid #E4DDD2;
    font-family: 'Cairo',sans-serif;
    font-size: .85rem;
    color: #3D5166;
    background: #FAFAFA;
    min-width: 120px;
    outline: none;
}
.hero-search-box input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-family: 'Cairo',sans-serif;
    font-size: .95rem;
    color: #1A252F;
    outline: none;
}
.hero-search-box input::placeholder { color: #9BAEC1; }
.hero-search-box button {
    padding: 0 28px;
    background: linear-gradient(135deg,#C9A84C,#E8C97A);
    color: #0D2D45;
    font-weight: 800;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: filter .2s;
    font-family: 'Cairo',sans-serif;
    white-space: nowrap;
}
.hero-search-box button:hover { filter: brightness(1.08); }

/* hero stats bar */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.hero-stat {
    color: rgba(255,255,255,.85);
    text-align: center;
}
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 900; color: #E8C97A; }
.hero-stat span { font-size: .8rem; opacity: .8; }

/* section */
.section { padding: 60px 0; }
.section-alt { background: #FDF9F3; }
.section-header {
    text-align: center;
    margin-bottom: 36px;
}
.section-header h2 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 900;
    color: #0D2D45;
    margin-bottom: 8px;
}
.section-header p {
    color: #6B8099;
    font-size: .92rem;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg,#C9A84C,#E8C97A);
    border-radius: 2px;
    margin: 10px auto 0;
}

/* categories grid */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 12px;
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #E4DDD2;
    text-decoration: none;
    color: inherit;
    transition: all .25s;
    box-shadow: 0 1px 6px rgba(27,79,114,.06);
}
.cat-card:hover {
    border-color: #C9A84C;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(27,79,114,.12);
}
.cat-card .cat-ico {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg,#0D2D45,#1B4F72);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E8C97A;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(27,79,114,.2);
}
.cat-card .cat-name { font-size: .82rem; font-weight: 800; color: #1A252F; text-align: center; }
.cat-card .cat-count { font-size: .72rem; color: #9BAEC1; }

/* ================================================================
   SEARCH.PHP
   ================================================================ */
.search-page-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 24px;
    align-items: start;
}
.search-sidebar {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #E4DDD2;
    box-shadow: 0 2px 10px rgba(27,79,114,.06);
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg,#0D2D45,#1B4F72);
    color: #fff;
}
.filter-header h3 {
    font-size: .93rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 7px;
}
.filter-header h3 i { color: #E8C97A; }
.filter-reset {
    font-size: .76rem;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.2);
    transition: all .2s;
}
.filter-reset:hover { background: rgba(255,255,255,.15); color: #fff; }
.filter-section {
    padding: 14px 16px;
    border-bottom: 1px solid #F0EBE3;
}
.filter-section:last-child { border-bottom: none; }
.filter-label {
    font-size: .8rem;
    font-weight: 800;
    color: #1A252F;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.filter-label i { color: #C9A84C; font-size: .75rem; }
.filter-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #E4DDD2;
    border-radius: 10px;
    font-family: 'Cairo',sans-serif;
    font-size: .84rem;
    color: #1A252F;
    background: #FAFAFA;
    outline: none;
    transition: border-color .2s;
}
.filter-input:focus { border-color: #C9A84C; background: #fff; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.purpose-btns { display: flex; gap: 6px; }
.pb-btn {
    flex: 1;
    padding: 8px 6px;
    border: 2px solid #E4DDD2;
    border-radius: 10px;
    font-family: 'Cairo',sans-serif;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    background: #FAFAFA;
    color: #3D5166;
    transition: all .2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.pb-btn.active-sale { border-color: #1B4F72; background: rgba(27,79,114,.08); color: #1B4F72; }
.pb-btn.active-rent { border-color: #27AE60; background: rgba(39,174,96,.08); color: #27AE60; }
.filter-submit {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg,#C9A84C,#E8C97A);
    color: #0D2D45;
    font-family: 'Cairo',sans-serif;
    font-size: .88rem;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: filter .2s;
    margin-top: 4px;
}
.filter-submit:hover { filter: brightness(1.07); }

/* results header */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.results-count {
    font-size: .9rem;
    font-weight: 800;
    color: #1A252F;
}
.results-count span { color: #1B4F72; }
.sort-select {
    padding: 8px 14px;
    border: 1.5px solid #E4DDD2;
    border-radius: 10px;
    font-family: 'Cairo',sans-serif;
    font-size: .82rem;
    color: #3D5166;
    background: #fff;
    outline: none;
    cursor: pointer;
}

@media(max-width:900px){
    .search-page-layout { grid-template-columns: 1fr; }
    .search-sidebar { position: static; }
}

/* ================================================================
   DASHBOARD/ADS.PHP — enhanced table
   ================================================================ */
.ads-mgmt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}
.ads-mgmt-header h1 {
    font-size: 1.25rem;
    font-weight: 900;
    color: #1A252F;
    display: flex;
    align-items: center;
    gap: 9px;
}
.ads-mgmt-header h1 i { color: #C9A84C; }

/* success alert */
.alert-success-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(39,174,96,.08);
    border: 1.5px solid rgba(39,174,96,.25);
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #1B5E20;
    font-size: .9rem;
}
.alert-success-banner i { color: #27AE60; font-size: 1.1rem; }

/* table wrapper */
.ads-table-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #E4DDD2;
    box-shadow: 0 2px 10px rgba(27,79,114,.07);
    overflow: hidden;
}
.ads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .87rem;
}
.ads-table thead {
    background: linear-gradient(135deg,#0D2D45,#1B4F72);
    color: #fff;
}
.ads-table thead th {
    padding: 13px 14px;
    font-weight: 700;
    font-size: .82rem;
    white-space: nowrap;
    text-align: right;
}
.ads-table tbody tr {
    border-bottom: 1px solid #F0EBE3;
    transition: background .15s;
}
.ads-table tbody tr:last-child { border-bottom: none; }
.ads-table tbody tr:hover { background: #FAFAF8; }
.ads-table td {
    padding: 12px 14px;
    vertical-align: middle;
    color: #3D5166;
}
/* ad cell with thumb */
.ad-cell-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 280px;
}
.ad-thumb-v2 {
    width: 54px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    border: 1.5px solid #E4DDD2;
    flex-shrink: 0;
    background: #F0EBE3;
}
.ad-title-v2 {
    font-size: .86rem;
    font-weight: 700;
    color: #1A252F;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    transition: color .2s;
}
.ad-title-v2:hover { color: #1B4F72; }

/* status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: .74rem;
    font-weight: 800;
    white-space: nowrap;
}
.sb-active   { background: rgba(39,174,96,.1);  color: #1B5E20;  border: 1px solid rgba(39,174,96,.25); }
.sb-pending  { background: rgba(243,156,18,.1); color: #7D5A00;  border: 1px solid rgba(243,156,18,.25);}
.sb-inactive { background: rgba(107,128,153,.1);color: #3D5166;  border: 1px solid rgba(107,128,153,.25);}
.sb-sold     { background: rgba(41,128,185,.1); color: #1A4A6A;  border: 1px solid rgba(41,128,185,.25);}
.sb-rejected { background: rgba(231,76,60,.1);  color: #7B241C;  border: 1px solid rgba(231,76,60,.25); }

/* action buttons */
.act-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}
.act-btn {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    transition: all .2s;
    border: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
}
.act-view  { background: rgba(27,79,114,.08);  color: #1B4F72;  border-color: rgba(27,79,114,.15); }
.act-edit  { background: rgba(201,168,76,.1);  color: #8B6914;  border-color: rgba(201,168,76,.25); }
.act-pause { background: rgba(243,156,18,.1);  color: #7D5A00;  border-color: rgba(243,156,18,.25); }
.act-play  { background: rgba(39,174,96,.1);   color: #1B5E20;  border-color: rgba(39,174,96,.25);  }
.act-del   { background: rgba(231,76,60,.08);  color: #C0392B;  border-color: rgba(231,76,60,.2);  }
.act-btn:hover { transform: scale(1.1); }

/* empty state */
.empty-ads {
    text-align: center;
    padding: 70px 24px;
}
.empty-ads i {
    font-size: 3.5rem;
    color: #C9A84C;
    opacity: .4;
    margin-bottom: 16px;
    display: block;
}
.empty-ads h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1A252F;
    margin-bottom: 8px;
}
.empty-ads p { color: #9BAEC1; font-size: .88rem; margin-bottom: 20px; }

/* pagination */
.ads-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    border-top: 1px solid #F0EBE3;
}
.pg-btn {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    color: #3D5166;
    background: #F8F5F0;
    border: 1.5px solid #E4DDD2;
    transition: all .2s;
}
.pg-btn.active, .pg-btn:hover {
    background: #1B4F72;
    color: #fff;
    border-color: #1B4F72;
}

@media(max-width:768px){
    .ads-table thead { display: none; }
    .ads-table tr { display: block; padding: 12px; border-bottom: 1px solid #E4DDD2; }
    .ads-table td { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border: none; }
    .ads-table td::before { content: attr(data-label); font-weight: 700; color: #9BAEC1; font-size: .78rem; }
    .ad-cell-v2 { max-width: 200px; }
}

/* ================================================================
   DASHBOARD/INDEX.PHP — enhanced stats
   ================================================================ */
.dash-stats-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card-v2 {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #E4DDD2;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(27,79,114,.06);
    transition: transform .25s, box-shadow .25s;
}
.stat-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(27,79,114,.1);
}
.stat-icon-v2 {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.si-blue  { background: rgba(27,79,114,.1);  color: #1B4F72; }
.si-gold  { background: rgba(201,168,76,.1); color: #9A6F0A; }
.si-green { background: rgba(39,174,96,.1);  color: #1B5E20; }
.si-red   { background: rgba(231,76,60,.1);  color: #C0392B; }
.stat-body-v2 .stat-num-v2 {
    font-size: 1.55rem;
    font-weight: 900;
    color: #1A252F;
    line-height: 1;
    margin-bottom: 3px;
}
.stat-body-v2 .stat-lbl-v2 {
    font-size: .78rem;
    color: #9BAEC1;
    font-weight: 600;
}

/* quick actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}
.qa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 14px;
    border-radius: 12px;
    font-family: 'Cairo',sans-serif;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .22s;
    border: 2px solid transparent;
}
.qa-primary {
    background: linear-gradient(135deg,#1B4F72,#2E86AB);
    color: #fff;
    box-shadow: 0 4px 14px rgba(27,79,114,.25);
}
.qa-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.qa-outline {
    background: #fff;
    border-color: #E4DDD2;
    color: #3D5166;
}
.qa-outline:hover { border-color: #1B4F72; color: #1B4F72; }

/* dash cards */
.dash-card-v2 {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #E4DDD2;
    box-shadow: 0 2px 10px rgba(27,79,114,.06);
    overflow: hidden;
    margin-bottom: 20px;
}
.dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid #F0EBE3;
}
.dash-card-head h3 {
    font-size: .92rem;
    font-weight: 800;
    color: #1A252F;
    display: flex;
    align-items: center;
    gap: 7px;
}
.dash-card-head h3 i { color: #C9A84C; }
.dash-card-head a {
    font-size: .78rem;
    color: #1B4F72;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dash-card-head a:hover { text-decoration: underline; }

/* recent ad rows */
.recent-ad-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid #F8F5F0;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.recent-ad-row:last-child { border-bottom: none; }
.recent-ad-row:hover { background: #FAFAF8; }
.recent-ad-row img {
    width: 52px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid #E4DDD2;
    flex-shrink: 0;
}
.recent-ad-info { flex: 1; min-width: 0; }
.recent-ad-title {
    font-size: .87rem;
    font-weight: 700;
    color: #1A252F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.recent-ad-meta {
    font-size: .75rem;
    color: #9BAEC1;
    display: flex;
    gap: 8px;
}
.recent-ad-price {
    font-size: .88rem;
    font-weight: 800;
    color: #1B4F72;
    white-space: nowrap;
    flex-shrink: 0;
}

@media(max-width:768px){
    .dash-stats-v2 { grid-template-columns: 1fr 1fr; }
}
@media(max-width:480px){
    .dash-stats-v2 { grid-template-columns: 1fr; }
}

/* ================================================================
   AD.PHP — detail page
   ================================================================ */
.ad-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.ad-gallery { margin-bottom: 20px; }
.main-image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #F0EBE3;
    aspect-ratio: 4/3;
}
.main-image-wrap .main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .3s;
}
.thumb-strip {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
}
.thumb-strip img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .2s;
    background: #F0EBE3;
}
.thumb-strip img.active,
.thumb-strip img:hover { border-color: #C9A84C; }

/* card */
.card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #E4DDD2;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(27,79,114,.06);
}
.card h2 {
    font-size: 1rem;
    font-weight: 800;
    color: #1A252F;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #F0EBE3;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card h2 i { color: #C9A84C; }
.description-text {
    font-size: .9rem;
    color: #3D5166;
    line-height: 1.8;
}

.fav-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: #9BAEC1;
    transition: all .2s;
    backdrop-filter: blur(4px);
}
.fav-btn:hover, .fav-btn.active { color: #E74C3C; background: #fff; }

/* price card */
.ad-price-card {
    position: sticky;
    top: 90px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 10px;
    font-family: 'Cairo',sans-serif;
    font-size: .88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .22s;
}
.btn-block { width: 100%; margin-bottom: 8px; }
.btn-primary { background: linear-gradient(135deg,#1B4F72,#2E86AB); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-success { background: #27AE60; color: #fff; }
.btn-success:hover { background: #219a52; }
.btn-outline { background: none; border: 2px solid #E4DDD2; color: #3D5166; }
.btn-outline:hover { border-color: #1B4F72; color: #1B4F72; }
.btn-outline.active { border-color: #E74C3C; color: #E74C3C; }
.btn-danger { background: #E74C3C; color: #fff; }
.btn-sm { padding: 7px 13px; font-size: .8rem; }
.btn-lg { padding: 13px 20px; font-size: .95rem; }

.share-ad {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #F0EBE3;
    font-size: .82rem;
    color: #9BAEC1;
}
.share-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    transition: all .2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.share-btn.whatsapp { background: rgba(37,211,102,.15); color: #25d366; }
.share-btn.twitter  { background: rgba(29,161,242,.15);  color: #1da1f2; }
.share-btn.copy     { background: rgba(27,79,114,.1);    color: #1B4F72; }
.share-btn:hover { transform: scale(1.12); }

.seller-card { }
.seller-card h3 { font-size: .9rem; font-weight: 800; color: #1A252F; margin-bottom: 14px; }
.seller-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.seller-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E4DDD2;
}
.seller-meta strong { display: block; font-size: .9rem; font-weight: 800; color: #1A252F; }
.seller-meta span { font-size: .78rem; color: #9BAEC1; }
.seller-ads-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: #1B4F72;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(27,79,114,.06);
    border-radius: 10px;
    transition: background .2s;
}
.seller-ads-link:hover { background: rgba(27,79,114,.1); }

.ad-stats.card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px 16px;
}
.ad-stats .stat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    color: #6B8099;
}
.ad-stats .stat i { color: #C9A84C; font-size: .8rem; }

/* modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}
.modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    overflow: hidden;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #F8F5F0;
    border-bottom: 1px solid #E4DDD2;
}
.modal-header h3 { font-size: .95rem; font-weight: 800; color: #1A252F; }
.modal-close {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #E4DDD2;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    color: #3D5166;
}
.modal-body { padding: 20px; }
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #E4DDD2;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.form-control {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #E4DDD2;
    border-radius: 10px;
    font-family: 'Cairo',sans-serif;
    font-size: .88rem;
    color: #1A252F;
    background: #FAFAFA;
    outline: none;
    resize: vertical;
}
.form-control:focus { border-color: #C9A84C; }

.report-reasons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.radio-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1.5px solid #E4DDD2;
    border-radius: 10px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    color: #3D5166;
    transition: all .2s;
}
.radio-card:hover { border-color: #1B4F72; }
.radio-card input:checked ~ span { color: #1B4F72; font-weight: 800; }

.related-ads { padding: 40px 0 20px; }
.related-ads .section-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #1A252F;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #F0EBE3;
    display: flex;
    align-items: center;
    gap: 9px;
}
.related-ads .section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(#C9A84C,#E8C97A);
    border-radius: 2px;
    flex-shrink: 0;
}

@media(max-width:900px){
    .ad-detail-layout { grid-template-columns: 1fr; }
    .ad-price-card { position: static; }
}
@media(max-width:480px){
    .ad-stats.card { grid-template-columns: 1fr; }
}
