*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background: #f5f6f8;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    flex: 1;
}

a {
    color: #000;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ===== HEADER ===== */
.header-top {
    background: #fff;
    color: #333;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid #eaeaea;
}

.header-top__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #000;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}
.logo i {
    font-size: 26px;
    color: #f5a623;
}
.logo:hover {
    text-decoration: none;
}
.logo span {
    color: #f5a623;
}

.header-top__right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-top__right a {
    color: #555;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}
.header-top__right a:hover {
    color: #000;
    text-decoration: none;
}
.header-top__right .btn-header {
    background: #f5a623;
    color: #fff;
    padding: 6px 16px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 13px;
}
.header-top__right .btn-header:hover {
    background: #d98e1a;
    color: #fff;
}

.header-nav {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: sticky;
    top: 44px;
    z-index: 199;
}

.header-nav__inner {
    display: flex;
    align-items: center;
    padding: 6px 0;
    gap: 5px;
}

.header-nav a {
    color: #555;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}
.header-nav a:hover {
    background: #f5f5f5;
    color: #000;
    text-decoration: none;
}
.header-nav a.active {
    color: #000;
    font-weight: 600;
    background: #f0f0f0;
}

.search-box {
    display: flex;
    margin-left: auto;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.search-box:focus-within {
    border-color: #000;
}
.search-box input {
    border: none;
    padding: 6px 10px;
    font-size: 13px;
    width: 180px;
    outline: none;
}
.search-box button {
    background: #000;
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}
.search-box button:hover {
    background: #222;
}

/* ===== LAYOUT ===== */
.page-wrap {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    margin-bottom: 10px;
}

.sidebar-section__title {
    background: #fafafa;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-section__body {
    padding: 10px 12px;
}

.sidebar-section__body label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 3px;
    margin-top: 8px;
}
.sidebar-section__body label:first-child {
    margin-top: 0;
}

.sidebar-section__body select,
.sidebar-section__body input[type="text"],
.sidebar-section__body input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
    outline: none;
}
.sidebar-section__body select:focus,
.sidebar-section__body input:focus {
    border-color: #000;
}

.sidebar-section__body .price-group {
    display: flex;
    gap: 5px;
    align-items: center;
}
.sidebar-section__body .price-group input {
    width: 50%;
}

.sidebar-section__body .btn-filter {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.15s;
}
.sidebar-section__body .btn-filter:hover {
    background: #222;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    min-width: 0;
}

.result-bar {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 10px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.result-bar strong {
    color: #333;
}

.view-toggle {
    display: flex;
    gap: 3px;
}
.view-toggle a {
    padding: 4px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    color: #999;
    font-size: 12px;
    transition: all 0.15s;
}
.view-toggle a.active {
    background: #000;
    color: #fff;
    border-color: #000;
}
.view-toggle a:hover {
    text-decoration: none;
    border-color: #000;
    color: #000;
}

/* ===== LISTING LIST VIEW ===== */
.listing-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.listing-item {
    display: flex;
    background: #fff;
    padding: 12px 15px;
    gap: 15px;
    transition: background 0.15s;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.listing-item:hover {
    background: #fafafa;
    text-decoration: none;
}

.listing-item__image {
    width: 160px;
    min-height: 110px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.listing-grid .listing-item__image {
    position: relative;
}
.listing-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-item__image .no-image {
    color: #ccc;
    font-size: 36px;
}

.badge-vitrin {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #f5a623;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}

.listing-item__info {
    flex: 1;
    min-width: 0;
}

.listing-item__category {
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}
.listing-item__category i {
    margin: 0 4px;
    font-size: 8px;
}

.listing-item__title {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
    line-height: 1.3;
}
.listing-item__title:hover {
    color: #333;
}

.listing-item__specs {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    flex-wrap: wrap;
}
.listing-item__specs span {
    display: flex;
    align-items: center;
    gap: 3px;
}
.listing-item__specs i {
    color: #bbb;
    font-size: 11px;
    width: 14px;
}

.listing-item__desc {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.listing-item__right {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 130px;
}

.price-old {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
    margin-right: 6px;
    vertical-align: middle;
}
.detail-head__price .price-old {
    font-size: 18px;
}

.listing-item__price {
    font-size: 18px;
    font-weight: 700;
    color: #d32f2f;
    white-space: nowrap;
}

.listing-item__date {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.listing-item__location {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* ===== GRID VIEW ===== */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.listing-grid .listing-item {
    flex-direction: column;
    padding: 0;
    gap: 0;
    border-radius: 3px;
    overflow: hidden;
}

.listing-grid .listing-item__image {
    width: 100%;
    height: 160px;
    border-radius: 0;
}

.listing-grid .listing-item__info {
    padding: 10px 12px;
}

.listing-grid .listing-item__right {
    padding: 0 12px 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.listing-grid .listing-item__price {
    font-size: 16px;
}

.listing-grid .listing-item__date {
    margin-top: 0;
}

.listing-grid .listing-item__desc {
    display: none;
}

/* ===== NO RESULT ===== */
.no-result {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.no-result i {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

/* ===== DETAIL PAGE ===== */
.detail-wrap {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 25px;
    margin-top: 15px;
}

.detail-breadcrumb {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}
.detail-breadcrumb a {
    color: #000;
}
.detail-breadcrumb i {
    font-size: 8px;
    margin: 0 6px;
}

.detail-top {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    align-items: stretch;
}

.detail-image {
    flex: 1;
    background: #f5f5f5;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.detail-image .no-image {
    color: #ccc;
    font-size: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.classifiedDetailPhotos {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.classifiedDetailMainPhoto {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}
.classifiedDetailMainPhoto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.classifiedDetailThumbListContainer {
    border-top: 1px solid #eaeaea;
    background: #fafafa;
}
.classifiedDetailThumbList {
    list-style: none;
    padding: 8px;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 6px;
}

.classifiedDetailThumbList li {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
}
.classifiedDetailThumbList li .thmbWrap {
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.classifiedDetailThumbList li .thmbWrap.selected {
    border-color: #000;
}
.classifiedDetailThumbList li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.classified-images-status {
    padding: 6px 10px;
    text-align: center;
    font-size: 12px;
    color: #999;
}
.classified-images-status .images-count .current-image {
    font-weight: 700;
    color: #000;
}

.detail-head {
    flex: 1;
}

.detail-head__category {
    font-size: 12px;
    color: #999;
}

.detail-head__title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 5px 0 10px;
}

.detail-head__price {
    font-size: 28px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 15px;
}

.detail-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.badge-sifir {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}
.badge-ikinciel {
    background: #fff3e0;
    color: #e65100;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.classifiedInfoList {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.classifiedInfoList li {
    display: flex;
    padding: 6px 10px 6px 0;
    border-bottom: 1px solid #eaeaea;
    font-size: 13px;
}
.classifiedInfoList li:nth-last-child(-n+2) {
    border-bottom: none;
}
.classifiedInfoList li strong {
    flex: 0 0 130px;
    color: #666;
    font-weight: 600;
    font-size: 12px;
}
.classifiedInfoList li span {
    flex: 1;
    color: #333;
    font-weight: 600;
}
.classifiedInfoList li span.text-danger {
    color: #d32f2f;
}

.detail-contact {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.detail-contact a {
    padding: 10px 24px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.detail-contact a:hover {
    text-decoration: none;
}

.detail-seller {
    margin-top: 20px;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 3px;
}
.detail-seller__title {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}
.detail-seller__name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.detail-seller__phone a {
    font-size: 15px;
    color: #000;
    font-weight: 600;
    text-decoration: none;
}
.detail-seller__phone a:hover {
    text-decoration: underline;
}
.btn-call {
    background: #000;
    color: #fff;
}
.btn-call:hover {
    background: #222;
}
.btn-whatsapp {
    background: #25d366;
    color: #fff;
}
.btn-whatsapp:hover {
    background: #1da851;
}

.detail-inquiry {
    margin-top: 25px;
    padding: 25px;
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 3px;
}
.detail-inquiry h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}
.detail-inquiry .form-group label {
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: #555;
}
.detail-inquiry .form-group input,
.detail-inquiry .form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
}
.detail-inquiry .form-group textarea {
    resize: vertical;
}
.detail-inquiry .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
@media (max-width: 600px) {
    .detail-inquiry .form-row {
        grid-template-columns: 1fr;
    }
    .classifiedInfoList {
        grid-template-columns: 1fr;
    }
    .classifiedInfoList li:nth-last-child(-n+2) {
        border-bottom: 1px solid #eaeaea;
    }
    .classifiedInfoList li:last-child {
        border-bottom: none;
    }
}

.detail-desc {
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
}
.detail-desc h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}
.detail-desc p {
    color: #555;
    line-height: 1.7;
    font-size: 14px;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 30px;
    font-size: 13px;
}
.footer-top {
    background: #000;
    padding: 40px 0 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom {
    background: #111;
    padding: 16px 0;
    text-align: center;
    color: #666;
    font-size: 12px;
}
.footer-bottom a {
    color: #888;
}
.footer-bottom a:hover {
    color: #f5a623;
    text-decoration: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 30px;
}
.footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.footer-logo i {
    font-size: 24px;
    color: #f5a623;
}
.footer-logo span {
    color: #f5a623;
}
.footer-desc {
    color: #99aabb;
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 300px;
}
.footer-social {
    display: flex;
    gap: 8px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    font-size: 14px;
    transition: all 0.2s;
}
.footer-social a:hover {
    background: #f5a623;
    color: #fff;
    text-decoration: none;
}
.footer-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-title--alt {
    margin-top: 20px;
}
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu li {
    margin-bottom: 6px;
}
.footer-menu a {
    color: #99aabb;
    transition: color 0.15s;
}
.footer-menu a:hover {
    color: #f5a623;
    text-decoration: none;
}
.footer-contact {
    color: #99aabb;
    line-height: 1.6;
    margin-bottom: 0;
}
.footer-newsletter-text {
    color: #99aabb;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 12px;
}
.footer-newsletter {
    display: flex;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 3px;
    overflow: hidden;
    max-width: 280px;
}
.footer-newsletter input {
    flex: 1;
    border: none;
    padding: 8px 10px;
    font-size: 13px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    outline: none;
}
.footer-newsletter input::placeholder {
    color: #778;
}
.footer-newsletter button {
    background: #f5a623;
    color: #fff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
}
.footer-newsletter button:hover {
    background: #d98e1a;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}
@media (max-width: 550px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 14px rgba(37,211,102,0.35);
    z-index: 999;
    transition: all 0.2s;
    text-decoration: none;
}
.whatsapp-float:hover {
    background: #1da851;
    color: #fff;
    text-decoration: none;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}
@media (max-width: 600px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

/* ===== ADMIN STYLES ===== */
.admin-body {
    background: #f5f6f8;
}

.admin-header {
    background: #fff !important;
    position: static !important;
    border-bottom: 1px solid #eaeaea;
}
.admin-header .logo {
    color: #000;
}
.admin-header .logo span {
    color: #f5a623;
}
.admin-header .header-top__right a {
    color: #555;
}
.admin-header .header-top__right a:hover {
    color: #000;
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 50px);
    width: 80%;
    max-width: 1400px;
    margin: 15px auto;
    padding: 0 10px;
    gap: 15px;
}

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    align-self: flex-start;
}

.admin-sidebar a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 13px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-sidebar a:last-child {
    border-bottom: none;
}
.admin-sidebar a:hover {
    background: #f5f5f5;
    text-decoration: none;
}
.admin-sidebar a.active {
    background: #000;
    color: #fff;
    font-weight: 600;
}
.admin-sidebar a.active:hover {
    background: #222;
}

.admin-content {
    flex: 1;
    min-width: 0;
}

.admin-content .page-header {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.admin-content .page-header h2 {
    font-size: 18px;
    color: #333;
}

.admin-table-wrap {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    background: #fafafa;
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eaeaea;
    color: #333;
}

.admin-table tr:hover td {
    background: #fafafa;
}

.admin-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #000;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.15s;
    text-decoration: none;
}
.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: #000;
    color: #fff;
}
.btn-primary:hover {
    background: #222;
}

.btn-orange {
    background: #f5a623;
    color: #fff;
}
.btn-orange:hover {
    background: #d98e1a;
}

.btn-outline {
    background: transparent;
    color: #000;
    border: 1px solid #000;
}
.btn-outline:hover {
    background: #000;
    color: #fff;
}

.btn-danger {
    background: #d32f2f;
    color: #fff;
}
.btn-danger:hover {
    background: #b71c1c;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

/* Alert */
.alert {
    padding: 10px 14px;
    border-radius: 3px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
}
.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.alert-error {
    background: #fbe9e7;
    color: #bf360c;
    border: 1px solid #ffccbc;
}

/* Login */
.login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f5f6f8;
}
.login-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 40px;
    width: 380px;
}
.login-box h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
    color: #000;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .sidebar {
        display: none;
    }
    .page-wrap {
        flex-direction: column;
    }
    .detail-top {
        flex-direction: column;
    }
    .detail-image {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
    }
    .detail-image .no-image {
        height: 250px;
    }
    .classifiedDetailMainPhoto {
        flex: 0 0 250px;
    }
    .classifiedDetailThumbList {
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    }
    .header-nav__inner {
        flex-wrap: wrap;
    }
    .search-box {
        margin-left: 0;
        width: 100%;
        margin-top: 5px;
    }
    .search-box input {
        flex: 1;
    }
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .listing-item {
        flex-direction: column;
        gap: 10px;
    }
    .listing-item__image {
        width: 100%;
        height: 180px;
    }
    .listing-item__right {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .listing-item__date {
        margin-top: 0;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .header-top__right a span {
        display: none;
    }
}

/* ===== HOMEPAGE SECTIONS ===== */
.section-wrap {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    margin-bottom: 15px;
    padding: 20px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}
.section-link {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
    gap: 5px;
}
.section-link i {
    font-size: 11px;
}
.section-link:hover {
    text-decoration: none;
    color: #555;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    margin-bottom: 15px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.hero-slider {
    position: relative;
    min-height: 220px;
}
.hero-slide {
    padding: 50px 40px;
    border-radius: 3px;
    display: none;
    align-items: center;
    position: relative;
    min-height: 220px;
}
.hero-slide.active {
    display: flex;
}
.hero-slide .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 0;
}
.hero-slide .hero-content {
    position: relative;
    z-index: 1;
}
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.25); }
.hero-arrow-prev { left: 12px; }
.hero-arrow-next { right: 12px; }
.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.15s;
}
.hero-dot.active { background: #f5a623; }
.hero-dot:hover { background: rgba(255,255,255,0.7); }
.hero-content h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.hero-content p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin-bottom: 18px;
    max-width: 500px;
}
.hero-btn {
    display: inline-block;
    background: #f5a623;
    color: #fff;
    padding: 10px 28px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s;
}
.hero-btn:hover {
    background: #d98e1a;
    text-decoration: none;
    color: #fff;
}

/* ===== CATEGORIES SLIDER ===== */
.cat-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.cat-scroll::-webkit-scrollbar {
    height: 6px;
}
.cat-scroll::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}
.cat-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.cat-card {
    flex: 0 0 calc(25% - 9px);
    min-width: 180px;
    scroll-snap-align: start;
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.2s;
    color: #333;
}
.cat-card:hover {
    background: #000;
    border-color: #000;
    text-decoration: none;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.cat-card__icon {
    font-size: 32px;
    color: #000;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.cat-card:hover .cat-card__icon {
    color: #fff;
}
.cat-card__name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.cat-card__count {
    font-size: 12px;
    color: #999;
}
.cat-card:hover .cat-card__count {
    color: rgba(255,255,255,0.8);
}

/* ===== FEATURED GRID ===== */
.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.featured-grid .listing-item {
    flex-direction: column;
    padding: 0;
    gap: 0;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}
.featured-grid .listing-item:hover {
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.featured-grid .listing-item__image {
    width: 100%;
    height: 150px;
    border-radius: 0;
}
.featured-grid .listing-item__info {
    padding: 10px 12px;
}
.featured-grid .listing-item__right {
    padding: 0 12px 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.featured-grid .listing-item__price {
    font-size: 16px;
}

/* ===== RESPONSIVE: HOME ===== */
@media (max-width: 800px) {
    .cat-card {
        flex: 0 0 calc(50% - 6px);
        min-width: 140px;
    }
    .hero-slide {
        padding: 30px 20px;
    }
    .hero-content h2 {
        font-size: 24px;
    }
    .hero-arrow {
        display: none;
    }
}
    @media (max-width: 480px) {
        .cat-card {
            flex: 0 0 calc(100% - 0px);
            min-width: 120px;
        }
    }

    /* ===== VIDEO THUMBNAIL ===== */
    .thmbWrap.thmb-video { position: relative; }
    .thmbWrap .thmb-play-icon {
        position: absolute; inset: 0;
        display: flex; align-items: center; justify-content: center;
        background: rgba(0,0,0,0.3);
        color: #fff; font-size: 20px;
        transition: background 0.15s;
    }
    .thmbWrap.thmb-video:hover .thmb-play-icon { background: rgba(0,0,0,0.5); }

    /* ===== VIDEO MODAL ===== */
    .video-modal {
        display: none; position: fixed; inset: 0; z-index: 9999;
        background: rgba(0,0,0,0.9);
        align-items: center; justify-content: center;
    }
    .video-modal.active { display: flex; }
    .video-modal-content {
        position: relative; width: 90%; max-width: 900px;
    }
    #videoPlayer {
        width: 100%; line-height: 0;
    }
    #videoPlayer iframe {
        width: 100%; aspect-ratio: 16/9; border-radius: 4px; display: block;
    }
    #videoPlayer video {
        width: 100%; max-height: 70vh; border-radius: 4px; display: block;
    }
    .video-modal-close {
        position: absolute; top: -36px; right: 0;
        color: #fff; font-size: 30px; cursor: pointer;
        opacity: 0.7; transition: opacity 0.15s; line-height: 1;
    }
    .video-modal-close:hover { opacity: 1; }