/* ===============================
   THEME VARIABLES
=================================*/
:root {
  /* Colors */
  --color-primary: #024538;
  --color-primary-dark: #177544;
  --color-accent: #fb5b31;
  --color-bg: #f8f9fb;
  --color-primary-light: #ddec59;
  --color-white: #ffffff;
  --color-light: #f2f4f7;
  --color-border: #e9ecef;
  --color-text: #343434;
  --bg-muted: #989b9d33;
  --color-muted: #6c757d;
  --color-footer: #343434;

  /* Fonts */
  --font-family-base: 'Poppins', sans-serif;
  --font-family-heading: 'Gordita', sans-serif;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 22px;
  --font-size-xxl: 32px;

  /* Radius */
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 18px rgba(0,0,0,0.06);
}

@font-face {
  font-family: 'Gordita';
  src: url('/fonts/Gordita-Bold.otf') format('otf'),
       url('/fonts/Gordita-Bold.otf') format('otf');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   GLOBAL RESET
=================================*/
body {
font-family: var(--font-family-base);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--font-size-base);
}

.hidden{
  visibility: hidden;
}


.autocomplete-list, .form-select, .form-control{
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
}

section { padding: 0; }

a{
  color: var(--color-primary)
}

.page-link{
  color:var(--color-accent);
}

.active > .page-link, .page-link.active {
  background: var(--color-primary);
  color:var(--color-bg);
}
h2.section-title { font-weight: 700; margin-bottom: 10px; }
p.section-subtitle { color: var(--color-muted); margin-bottom: 40px; }

.f-bold{
    font-weight: 550;
}

.float-end{
  float:right;
}

.bg-white{
  background: var(--color-bg);
}

.bg-info-lte{
  background: #ffffe8 !important;
}


.f-xxl{
  font-size: var(--font-size-xxl);
}

.btn-primary{
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary-dark) !important;
    font-size: var(--font-size-sm);
}
/* ===============================
   HEADER
=================================*/
.main-header { 
  position: fixed;
  top: 0;
  left:0;
  width:100%;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
 }

.post-ad-btn {
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  padding: 10px;
  background-color: var(--color-primary);
}

.header-icons .icon-circle {
  width: 44px;
  height: 44px;
  background: var(--color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-icons .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  padding: 3px 6px;
}

.logo-box {
  width: 140px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-light);
  border: none;
}

/* Default (top of page) */
.main-header.default-header {
  background: transparent;
}

/* On scroll */
.main-header.scrolled-header {
  background: var(--color-primary);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.scrolled-header .a-header-login{
  color: #fff !important;
}

/* Smooth text color change */


.main-header.scrolled-header .row div .post-ad-btn{
  background: var(--color-bg) !important;
  color: var(--color-primary) !important;

}

.main-header.scrolled-header a {
  color: #111;
}

.header-avatar{
    height: 35px;
    width: 35px;
    border-radius: 50px;
}


.avatar-box {
  position: relative;
  width: 120px;
  text-align: center;
}

.avatar-box .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-border);
}

.avatar-btn {
  margin-top: 8px;
  border-radius: 4px;
  border: none;
  color: var(--color-primary);
  font-weight: 550;
  font-size: var(--font-size-sm);
  cursor: pointer;
}

.subscribe-form{
    background: #fff;
    border-radius: 10px;
}



/* ===============================
   Auth Section
=================================*/

.auth-title {
  font-weight: 600;
}

.auth-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-btn.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  font-weight: 500;
  padding: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: all 0.2s ease;
}

.auth-btn.social:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.social-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* Brand colors */
.auth-btn.google { border-color: #dadce0; }
.auth-btn.facebook { color: #1877f2; }
.auth-btn.email { color: #374151; }
.auth-btn.phone { color: #059669; }

/* Divider */
.auth-divider {
  text-align: center;
  margin: 18px 0;
  position: relative;
}

.auth-divider span {
  background: var(--color-border);
  padding: 0 10px;
  color: #9ca3af;
  font-size: 14px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #e5e7eb;
  z-index: -1;
}

.auth-footer a {
  color: var(--color-primary);
  font-weight: 500;
}


/* ===============================
   SEARCH BAR
=================================*/


.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 40px;
  padding: 5px;
  border: 1px solid #ddd;
}

.search-input {
  flex: 1;
  border: none;
  padding: 10px;
}

.search-input:focus {
  outline: none;
}

.filter-btn,
.search-btn {
  background: none;
  border: none;
  padding: 10px;
}

.advanced-filters {
  position: absolute;
  top: 70px;
  left: 0;
  min-height: 220px;
  width: 100%;
  background: var(--color-bg);
  box-shadow:  0px 16px 20px #0f0f0f14;
  border: 1px solid #0847a7;
  display: none;
  z-index: 1000;
}

.advance-filter-body{
  padding:5px;
}
.filter-header{
    background: var(--color-primary);
    padding: 8px;
    color: #fff;
}

.advanced-filters.show {
  display: block;
}

.filter-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.filter-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.filter-label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.form-control,
.form-select {
  border-radius: 10px;
  height: 42px;
}

.listing-type-card{
  border:1px solid #eee;
  border-radius:12px;
  padding:20px;
  text-align:center;
  cursor:pointer;
  transition:0.2s;
  background:#0847a70d;
}



#listView, #gridView, .btn-link{
  border:0 !important;
}


#listView:hover,  #gridView:hover{
  background:var(--color-bg) !important;
  color: var(--color-accent) !important;
}

.listing-type-card:hover{
  border-color:var(--color-primary);
  transform:translateY(-2px);
}

.listing-type-card i{
  font-size:24px;
  display:block;
  margin-bottom:10px;
}

/* ===============================
   HERO SLIDER
=================================*/
.hero-slider { height: 480px; position: relative; }

.slide-bg {
  height: 480px;
  background-size: cover;
  background-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15) !important;
}

.slide-content {
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2;
  margin-top:12%;
  width: 50%;
  pointer-events: none;
}


.slide-content h2{
  font: 3rem;
}


.slide-content p{
  font-size: 1rem;
}




.hero-ad {
  height: 480px;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-placeholder {
  font-weight: 600;
  color: #555;
  display: flex;
  vertical-align: middle;
  flex-direction: column;
  padding-top: 40%;
  height: 100%;
}

.ad-placeholder p{
 font-size: small;
}

.ad-placeholder a{
  width:fit-content;
  margin-left: auto;
  margin-right: auto;
}


/* ===============================
   CATEGORY CARDS
=================================*/
.category-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 25px 10px;
  text-align: center;
  transition: 0.3s;
  box-shadow: var(--shadow-sm);
}

.category-card:hover { transform: translateY(-5px); }
.category-card i { font-size: 32px; margin-bottom: 10px; }

/* ===============================
   PROMO SECTION
=================================*/

.promo-main-img {
  height: 350px;
  object-fit: cover;
}

.promo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.promo-thumb {
  width: 80px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid transparent;
}

.promo-thumb:hover {
  transform: scale(1.05);
  border-color: var(--color-primary);
}


/* ===============================
   RECOMMENDED ADS SECTION
=================================*/

.recommended-section {
  background: var(--color-bg)
}

.recommended-section .ad-card {
  border-radius: 14px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.recommended-section .ad-card:hover {
  transform: translateY(-6px);
}

.recommended-section img {
  height: 200px;
  object-fit: cover;
}

.ad-desc {
  line-height: 1.4;
  min-height: 38px; /* keeps cards same height */
}

/* ===============================
   AD SPACE 2 (FULL WIDTH BANNER)
=================================*/
.ad-space-section {
  margin: 60px 0;
}

.ad-space-2 {
  height: 180px;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ad-space-2 img {
  object-fit: cover;
  height: 100%;
}

.ad-placeholder {
  font-weight: 600;
  color: #444;
  font-size: 24px;
}



/* ===============================
   TRENDING ADS
=================================*/
.trending-card {
  background: var(--color-bg);
  border-radius: 5x;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  min-height: 220px;
  transition: 0.3s;
}

.trending-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.trending-img {
  width: 45%;
  min-height: 100%;
}

.trending-img img {
  width: 100%;
  height: 228px;
  object-fit: cover;
}

.trending-footer {
  border-top: 1px solid #f1f3f5;
  background: var(--color-light);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-bottom: -1.5rem;
  padding: 14px 1.5rem 16px;
  border-bottom-left-radius: 16px;
}

/* Eye icon style (no button look) */
.view-icon {
  font-size: 20px;
  color: var(--color-primary);
  transition: 0.2s;
}

.view-icon:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

/* Price block */
.price-block {
  text-align: right;
}

.price-type {
  color: var(--color-muted);
  margin-bottom: 2px;
  display: inline;
}

.price-value {
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  display: inline;
}



/* ===============================
   ADS CARD GRID
=================================*/
.ad-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: 0.3s;
  box-shadow: var(--shadow-md);
}

.ad-card:hover { transform: translateY(-5px); }
.ad-card img { height: 180px; object-fit: cover; }
.ad-card .card-body { padding: 15px; }

.ad-price {
  font-weight: 700;
  color: var(--color-primary);
}

/* ===============================
   AD SPACE BLOCK
=================================*/
.ad-space {
  background: var(--color-border);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-md);
}

/* ===============================
   APP DOWNLOAD
=================================*/
.app-download-section {
  position: relative;
  z-index: 5;
}

/* Top Blue CTA Area */
.app-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  padding: 80px 20px 220px; /* Extra bottom space for overlap */
  position: relative;
  z-index: 1;
}

/* White Card */
.app-card {
  margin-top: -150px; /* Pull section upward over blue CTA */
  background: var(--color-bg);
  padding: 0;
  overflow: visible; /* IMPORTANT so image can overflow */
  position: relative;
  z-index: 5;
  margin-left:10px;
  margin-right:10px;
}

/* Phone Image */
.phone-img {
  max-height: 460px;
  margin-top: -120px; /* Pull image upward */
  margin-left: -30px; /* Slight left overflow */
  position: relative;
  z-index: 10;
  filter: drop-shadow(0 25px 40px rgba(0,0,0,0.25));
}

/* Title */
.app-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-accent);
}

/* Store badges */
.store-badge {
  height: 55px;
  transition: 0.3s;
}

.store-badge:hover {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991px) {
  .phone-img {
    margin-top: 0;
    max-height: 300px;
  }
  .app-card .p-5 {
    padding: 2rem !important;
  }
}

@media (max-width: 991px) {
  .app-download-section {
    margin-top: 40px;
  }

  .phone-img {
    margin-top: 0;
    margin-left: 0;
    max-height: 280px;
  }
}
/* ===============================
   FOOTER
=================================*/

/* ================= FOOTER ================= */
.main-footer {
  background: linear-gradient(180deg, var(--color-primary), var(--color-footer));
  color: #cbd5e1;
  margin-top: 80px;
}

/* SUBSCRIBE */
.footer-subscribe {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.subscribe-form input {
  border: none;
  padding: 12px 18px;
  border-radius: 8px 0 0 8px;
  width: 260px;
}

.subscribe-form button {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
}

/* MAIN */
.footer-main {
  padding: 60px 0;
}

.footer-logo {
  color: #fff;
  font-weight: 700;
}

.footer-title {
  color: #fff;
  margin-bottom: 20px;
  position: relative;
}

.footer-title::after {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--color-primary-light);
  position: absolute;
  bottom: -6px;
  left: 0;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

/* BOTTOM */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 20px 0;
}

.footer-apps img,
.footer-payments img {
  height: 36px;
  margin-right: 10px;
}

.footer-pill {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
}

/* ===============================
   HOME CATEGORIES (FLOATING)
=================================*/


/* ===============================
   NEW CATEGORY PILLS
=================================*/

.home-categories{
  position:absolute;
  margin-top: -85px;
}
.categories-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ddec59;
  color: #024538;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.25s ease;
}

.category-pill i {
  font-size: 16px;
}

.category-pill:hover {
  background: var(--color-accent);
  color: #fff !important;
  transform: translateY(-2px);
}

/* Explore button */
.category-pill.explore {
  background: transparent;
  border: 2px solid var(--color-primary-light);
  color: var(--color-primary-light);
}

.category-pill.explore:hover {
  background:var(--color-primary-light);
  color: var(--color-primary);
}

.cat-card {
  background: #e9f8ff;
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  transition: 0.3s;
  box-shadow: var(--shadow-md);
  border-bottom: 4px solid var(--color-primary-dark);
}

.cat-card:hover { transform: translateY(-6px); background: #dff2ff; }

.cat-icon {
  width: 50px;
  height: 50px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 30px;
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.cat-name { color: #1e293b; }


/* ===============================
   NAV DRAWER
=================================*/
.nav-drawer {
  position: fixed;
  top: 0;
  right: -350px;
  width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 1050;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.drawer-logo h4{
  color: var(--color-primary);
}

.nav-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1049;
  display: none;
}

.drawer-overlay.show {
  display: block;
}

.drawer-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  padding: 15px;
}

.drawer-content::-webkit-scrollbar {
  width: 5px;
}

.drawer-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.drawer-close {
  background: var(--color-light);
  border: none;
  border-radius: 50%;
  align-self: flex-start;
}

.profile-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid var(--color-primary);
}

.drawer-tabs {
  border-bottom: 2px solid var(--color-border);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.drawer-menu li {
  border-bottom: 1px solid #eee;
}

.drawer-menu a {
  display: block;
  padding: 14px 10px;
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 500;
}

.drawer-menu a:hover {
  background: var(--color-border);
  color: var(--color-primary);
}


/* Accounts Pages */

.account-wrapper {
  margin-top:-50px !important;
  position: relative;
  z-index: 9;
  max-width: 1200px;
  margin: auto;
  padding: 20px;

}

/* HEADER CARD */
.profile-header-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.profile-header-card .left {
  display: flex;
  gap: 15px;
  align-items: center;
}

.profile-header-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.profile-header-card .badge {
  background: #eef2ff;
  color:  var(--color-primary-dark);
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 20px;
  display: inline-block;
}

.stats {
  display: flex;
  gap: 15px;
}

.stat {
  padding: 15px 20px;
  border-radius: 8px;
  color: #fff;
  min-width: 120px;
  text-align: center;
}

.stat.red { background: var(--color-accent); }
.stat.green { background: var(--color-primary-dark); }
.stat.yellow { background: var(--color-primary-light) }

/* TABS */
.account-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}

.account-tabs a {
  padding: 10px 0;
  text-decoration: none;
  color: #555;
  font-weight: 500;
}

.account-tabs a.active {
  color:  var(--color-primary-dark);
  border-bottom: 3px solid  var(--color-primary-dark);
}

/* BODY GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.card.small {
  padding: 15px;
}

.sidebar .card {
  margin-bottom: 15px;
}


/*
PROFILE SECTION
*/

.profile-form {
  max-width: 500px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}



.profile-map {
  height: 250px;
  border-radius: 10px;
  margin-top: 10px;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 5px;
}

.form-group input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.btn-primary {
  background:  var(--color-primary-dark);
  color: white;
  border: none;
  padding: 7px 13px;
  border-radius: 6px;
  cursor: pointer;
}


.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.avatar-upload {
  display: flex;
  align-items: center;
  gap: 20px;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}


.verify-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9fafb;
  padding: 10px 12px;
  border-radius: 6px;
}

.btn-secondary {
  background: #e5e7eb;
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.muted { color: #6b7280; font-size: 13px; }


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-card {
  background: white;
  width: 400px;
  padding: 20px;
  border-radius: 10px;
}

/* ✅ Success */
.alert.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #10b981;
}

/* ❌ Error */
.alert.error {
  background: #fef2f2;
  color: #7f1d1d;
  border: 1px solid #ef4444;
}



.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}



.listing-type-card {
  border: 1px solid #e9ecef;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #ffffff;
  overflow: hidden;
}

.listing-type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: var(--color-primary);
}

/* SELECTED STATE */
.listing-type-card.active {
  border: 2px solid var(--color-primary);
  background: #f0f6ff;
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(13,110,253,0.15);
}

.listing-icon i {
  font-size: 42px;
  color: #6c757d;
  transition: all 0.2s ease;
}

.listing-type-card.active .listing-icon i {
  color: var(--color-primary);
  transform: scale(1.15);
}

/* CHECK BADGE */
.selected-check {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  color: var(--color-primary);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.listing-type-card.active .selected-check {
  opacity: 1;
  transform: scale(1);
}


.wizard-breadcrumb {
  border-radius: 10px;
  background:var(--color-bg)
}

.wizard-nav {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.wizard-nav li {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  padding-left: 6px;
  font-weight: 580;
  cursor: default;
  position: relative;
  padding-bottom: 6px;
  transition: 0.2s ease;
}

.wizard-nav li::after {
  content: "→";
  margin-left: 20px;
  color: #adb5bd;
}

.wizard-nav li:last-child::after {
  content: "";
}

.wizard-nav li.active {
  color: var(--color-primary);
}

.wizard-nav li.active::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 80%;
  height: 2px;
  background: var(--color-primary);
}

.wizard-nav li.completed {
  color: #212529;
}


.listing-type-card-modern {
  border: 1px solid #e9ecef;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fff;
  min-height: 220px;
}

.listing-type-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.listing-type-card-modern.active {
  border: 2px solid var(--color-primary);
  background: #f5f9ff;
  box-shadow: 0 12px 30px rgba(13,110,253,0.15);
}

.listing-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: 0.2s ease;
}

.listing-icon-circle i {
  font-size: 30px;
  color: var(--color-primary);
}

.listing-type-card-modern.active .icon-circle {
  background: var(--color-primary);
}

.listing-type-card-modern.active .icon-circle i {
  color: #fff;
}

.selected-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.2s ease;
}

.listing-type-card-modern.active .selected-check {
  opacity: 1;
}


.main-step-card {
  border-radius: 12px;
}

.section-title {
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.modern-input {
  border-radius: 8px;
  font-size: var(--font-size-sm);
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  transition: 0.2s ease;
}

.modern-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.15rem rgba(13,110,253,.15);
}

.styled-block {
  border: 1px dashed var(--color-border);
  padding: 15px;
  border-radius: 8px;
  background: var(--color-bg);
}

.side-card {
  border-radius: 0px;
  background: transparent;
  border: 0;
}

.side-title {
  font-weight: 600;
  position: relative;
  padding-bottom: 6px;
}

.side-title::after {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  position: absolute;
  left: 0;
  bottom: -4px;
}

.side-list {
  padding-left: 18px;
}

.side-list li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #6c757d;
}


.category-card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
  background: #fff;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}


.category-item {
  background: #eef2ff;
  text-align: center;
}

.category-icon-box{
  font-size: 32px;
}

.rich-editor {
  background: #fff;
  border-radius: 8px;
}

.ql-toolbar {
  border-radius: 8px 8px 0 0;
}

.ql-container {
  border-radius: 0 0 8px 8px;
  min-height: 180px;
}


.upload-area {
  border: 2px dashed #d0d5dd;
  border-radius: 12px;
  padding: 50px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
}

.upload-area:hover {
  border-color:  var(--color-primary-dark);
  background: #f5f7ff;
}

.upload-area.dragover {
  border-color:  var(--color-primary-dark);
  background: #eef2ff;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}

.preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
}

.preview-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
  cursor: pointer;
}

.preview-cover {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background:  var(--color-primary-dark);
  color: #fff;
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 4px;
}

/*
  PLAN PAGE DESIGN
*/
.plan-card-modern {
  position: relative;
  display: block;
  border: 2px solid #e5e7eb;
  border-radius: 5px;
  padding: 30px 25px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  height: 100%;
}

.plan-card-modern input[type="radio"] {
  display: none;
}

.plan-card-modern:hover {
  transform: translateY(-4px);
  border-color:  var(--color-primary-dark);
  box-shadow: 0 12px 25px rgba(0,0,0,0.07);
}

.plan-card-modern.active {
  border-color:  var(--color-primary-dark);
  background: #f4f8ff;
}

.plan-highlight {
  border-color:  var(--color-primary-dark);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(45deg,  var(--color-primary-dark),  var(--color-primary));
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.plan-title {
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    font-size: medium;
}

.plan-description {
  font-size: 14px;
  color: #6c757d;
  min-height: 45px;
  text-align: center;
}

.plan-price {
  font-size: 36px;
  font-weight: 700;
  color:  var(--color-primary-dark);
  margin-top: 15px;
  text-align: center;
}

.plan-price .currency{
  font-size: 15px;
  vertical-align: text-top;
}

.free-text {
  font-size: 28px;
  font-weight: 700;
  color: #198754;
}

.plan-duration {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 15px;
}

.plan-features {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.plan-features li {
  font-size: 14px;
  margin-bottom: 6px;
}


.payment-option {
  transition: all 0.2s ease;
  cursor: pointer;
}

.payment-option:hover {
  border-color:  var(--color-primary-dark);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.payment-icon {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.payment-icon-fallback {
  font-size: 22px;
}


.wizard-container {
  margin-top: -50px;
  position: relative;
}

.post-ad-page-hero {
  position: relative;
  background: url('../images/post-ad-bg.jpg') center/cover no-repeat;
  height: 265px;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

.page-hero {
  position: relative;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  height: 220px;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.hero-title {
  color: #fff;
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 8px;
}

.breadcrumb-custom {
  color: #ddd;
  font-size: 14px;
}

.breadcrumb-custom a {
  color: #fff;
  text-decoration: none;
}

/* TOASTER CONTAINER STYLING */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
}

.custom-toast {
  min-width: 280px;
  padding: 14px 18px;
  margin-bottom: 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(100%);
  animation: slideIn 0.3s forwards;
}

.custom-toast.success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.custom-toast.error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.custom-toast.info {
  background: linear-gradient(135deg,  var(--color-primary),  var(--color-primary-dark));
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}


.payment-option {
  transition: all 0.25s ease;
  cursor: pointer;
}

.payment-option:hover {
  border-color:  var(--color-primary-dark);
}

.active-gateway {
  border: 2px solid #16a34a;
  background: #f0fdf4;
}

.gateway-expand {
  animation: fadeSlide 0.25s ease forwards;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.review-title {
  font-size: 28px;
  font-weight: 700;
}

.review-price {
  font-size: 26px;
  font-weight: 700;
  color: #2563eb;
}

.review-gallery-wrapper {
  border-radius: 16px;
  overflow: hidden;
}

.review-gallery img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
}

.modern-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.section-heading {
  margin-top: 20px;
}

.review-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.review-features-grid .feature-item {
  background: #f8fafc;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 14px;
}

.review-description {
  line-height: 1.7;
  font-size: 15px;
  color: #374151;
}

.review-map {
  height: 300px;
  border-radius: 12px;
}

.sticky-summary {
  position: sticky;
  top: 100px;
}



.review-gallery-wrapper {
  margin-bottom: 25px;
}

.main-image-container {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}

.main-review-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.review-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-thumbnail {
  width: 90px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.review-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-thumbnail.active {
  border-color:  var(--color-primary-dark);
}

.review-thumbnail:hover {
  transform: scale(1.05);
}



.review-modern {
  padding-top: 20px;
}

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.review-price-card {
  background:  var(--color-primary-dark);
  color: #fff;
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
}

.review-price-card h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.review-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid  var(--color-primary-dark);
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
}

.review-map {
  height: 220px;
  border-radius: 10px;
}

.review-gallery-wrapper {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.main-review-image {
  height: 380px;
  object-fit: cover;
  border-radius: 10px;
}

.review-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
}

.review-thumbnail {
  width: 100px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}

.review-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-thumbnail.active {
  border-color:  var(--color-primary-dark);
}

.review-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.review-spec-grid div {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
}

.review-description {
  font-size: 14px;
  color: #555;
}


#review-category{
  font-size: medium;
  color: var(--color-muted);
}

#reviewFeatures div div{
  background: var(--color-light);
  padding:2px;

}


/* MY ADS*/

.myad-card {
  background: #e9e9e9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.myad-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.myad-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.myad-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 10px;
}

.status-active {
  background: #28a745;
  color: #fff;
}

.status-pending {
  background: #ffc107;
  color: #000;
}

.status-draft {
  background: #6c757d;
  color: #fff;
}

.myad-content {
  padding: 18px;
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
}

.myad-title {
    font-weight: 500;
    margin-bottom: 10px;
    font-size: large;
}

.myad-price {
  font-size: 14px;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.myad-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:5px 10px;
  margin-top: 10px;
}

.meta-row{
    padding: 5px;
    font-size: small;
}

.myads-toolbar {
  border-bottom: 1px solid #f1eaea;
}

/* MY ADS END */

.ad-card-modern {
  display: flex;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.ad-card-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ad-image {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
}

.ad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-content {
  padding: 16px;
  flex: 1;
}

.ad-title {
  font-weight: 600;
}

.ad-meta {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.status-badge.active {
  background-color: #198754;
}

.status-badge.pending {
  background-color: #ffc107;
  color: #000;
}

.status-badge.expired {
  background-color: #dc3545;
}

.status-badge.draft {
  background-color: #6c757d;
}

.empty-state {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}



.main-image-wrapper {
  height: 450px;
  overflow: hidden;
  border-radius: 12px;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.thumb-img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.2s ease;
}

.thumb-img:hover,
.thumb-img.active {
  opacity: 1;
  border: 2px solid  var(--color-primary-dark);
}



.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.spec-label {
  font-weight: 500;
  color: #555;
}

.spec-value {
  font-weight: 600;
}


/* EDIT ADS PAGE */
.edit-card {
  border-radius: 16px;
}

.edit-section-title {
  font-weight: 550;
  color: var(--color-primary-dark);
  border-left: 3px solid #0d6efd;
  padding-left: 10px;
}

.modern-input {
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
}

.modern-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.1rem rgba(13,110,253,.15);
}

.image-preview-box {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}


.upload-area-modern {
  border: 2px dashed #1e3a8a;
  border-radius: 16px;
  padding: 60px 20px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area-modern:hover {
  background: #eef2ff;
  border-color: #2563eb;
}

.upload-area-modern.dragover {
  background: #dbeafe;
  border-color: #2563eb;
  transform: scale(1.01);
}

.upload-icon {
  font-size: 48px;
  color: #2563eb;
}

.preview-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

.preview-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
}

.preview-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.preview-remove-new,
.preview-remove-existing {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}

.preview-cover {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: #2563eb;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
}

/* EDIT ADS PAGE END */


/* SEARCH PAGE */
.search-sidebar{
  background:#fff;
  padding:20px;
  border-radius:12px;
  border:1px solid #eee;
}

.sidebar-title{
  font-weight:600;
  margin-bottom:15px;
}

.filter-group{
  margin-bottom:18px;
}

.search-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.toolbar-actions{
  display:flex;
  gap:10px;
}


.results-list .listing-item{
  display:flex;
  gap:20px;
  border:1px solid #eee;
  border-radius:10px;
  padding:15px;
  margin-bottom:15px;
}

.listing-image{
  width:260px;
  position:relative;
}

.listing-image img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:8px;
}

.badge-featured{
  position:absolute;
  top:10px;
  left:10px;
  background:#ffc107;
  padding:4px 10px;
  border-radius:5px;
  font-size:12px;
  font-weight:600;
}

.listing-content{
  flex:1;
}

.listing-header{
  display:flex;
  justify-content:space-between;
}

.listing-price{
  font-weight:700;
  color:#0d3b36;
}

.listing-title{
  margin-top:5px;
}

.listing-location{
  color:#777;
}

.listing-time{
  font-size:13px;
  color:#888;
  margin-top:6px;
}

.listing-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
}

.results-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.results-grid .listing-item{
  display:block;
  border:1px solid #b8b6b6;
  border-radius:10px;
  overflow:hidden;
}

.results-grid .listing-image{
  width:100%;
}

.results-grid .listing-image img{
  height:200px;
}

.results-grid .listing-content{
  padding:12px;
}

.results-grid .listing-actions{
  display:none;
}

.location-states li,
.location-cities li{
margin-bottom:6px;
}

.location-states button,
.location-cities button{
color:#333;
font-size:14px;
text-decoration:none;
}

.location-states button:hover,
.location-cities button:hover{
text-decoration:underline;
}

.listing-link{
  text-decoration: none;
  color: var(--color-primary-dark);
}

.listing-item:hover{
  background: var(--color-border);
}
/*SEARCH PAGE ENDS*/

/* MY ADS */
.myad-list-card{
border:1px solid #eee;
border-radius:12px;
padding:15px;
margin-bottom:15px;
background:#fff;
}

.list-ad-image{
width:100%;
height:180px;
object-fit:cover;
border-radius:10px;
}

.list-ad-content{
padding-left:10px;
}

.list-ad-price{
color:#0d3b66;
font-weight:700;
margin-bottom:5px;
}

.list-ad-title{
font-weight:600;
margin-bottom:6px;
}

.list-view-btn{
text-decoration:none;
color:#0d3b66;
font-weight:500;
}

.list-view-btn:hover{
text-decoration:underline;
}

/* MY ADS */

/* EDIT ADS */
#geocoderContainer .mapboxgl-ctrl-geocoder {
  width: 100%;
  max-width: 100%;
}

#geocoderContainer .mapboxgl-ctrl-geocoder input {
  height: 42px;
}

#map {
  position: relative;
}

/* EDIT ADS */


/* CMS PAGES */
.cms-banner{
  width:100%;
  height:320px;
  object-fit:cover;
  margin-bottom: 30px;
}

.cms-header{
  background:#f8fafc;
  text-align:center;
 
}

.cms-header h1{
  font-size:36px;
  font-weight:700;
}

.cms-body{
  max-width:1200px;
  margin:auto;
  line-height:1.8;
  font-size:16px;
}

.cms-body h2{
  margin-top:30px;
}

.cms-body p{
  margin-bottom:0 !important;
}
/* CMS PAGES */

.trending-card{
  background:#fff;
  border-radius:10px;
  transition:all .2s ease;
}

.trending-card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

.trending-left{
  width:55%;
}

.trending-img{
  width:45%;
  height: 200px;
}

.trending-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}


.price-value{
  font-weight:700;
  color:var(--color-primary);
  font-size:18px;
}


.read-more{
  text-decoration:none;
  font-weight:500;
}

.trending-tabs .nav-link{
  border:none;
  color:#555;
}

.trending-tabs .nav-link.active{
  border-bottom:3px solid var(--color-primary);
  background:transparent;
  color:var(--color-accent);
}

.explore-btn{
  border-color: var(--color-primary-dark);
  color:var(--color-primary);
}

.explore-btn:hover{
  border-color: var(--color-accent);
  background: var(--color-accent);
  color:var(--color-white);
}

.trending-img{
  position:relative;
}

.category-floating{
  position:absolute;
  top:10px;
  left:10px;

  background:var(--color-primary-light);
  color:var(--color-primary);

  font-size:11px;
  padding:4px 8px;

  border-radius:4px;
}

.no-ads{
    text-align: center;
    font-size: larger;
    font-weight: 600;
    background: #f2f2f2;
    padding: 100px;
}

.listing-marker{
  width:10px;
  height:10px;
  background:var(--color-primary-light);
  border-radius:50%;
}

.map-container{
    background: #d8d8d836;
    padding-top: 20px;
    padding-bottom: 20px;
}


.lang-switcher {
  position: relative;
  display: inline-block;
}

.footer-pill {
  cursor: pointer;
  background: #2b2b2b;
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
}

/* dropdown */
.lang-dropdown {
  position: absolute;
  bottom: 120%; /* opens upward */
  left: 0;
  background: var(--color-text);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  display: none;
  min-width: 140px;
}

.lang-dropdown div {
  padding: 10px 14px;
  cursor: pointer;
}

.lang-dropdown div:hover {
  background: #f5f5f5;
  color: var(--color-accent)
}

.skiptranslate{
  display:none !important;
}


.btn, a{
  border-color: var(--color-primary-dark) !important;
}

.btn:hover{
  border-color: var(--color-accent) !important;
  background: var(--color-accent) !important;
  color:var(--color-white) !important;
}

a:hover{
  color:var(--color-accent) !important;
}

/* CONTACT US */

.contact-section {
  background: var(--color-bg);
  padding: 80px 20px;
}



.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-header h1 {
  color: var(--color-primary);
  font-size: 40px;
}

.contact-header p {
  color: var(--color-footer);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

/* Contact Info */

.contact-info {
  background: var(--color-primary);
  color: white;
  padding: 40px;
  border-radius: 10px;
}

.contact-info h4 {
  color: var(--color-primary-light);
  margin-bottom: 5px;
}

.info-item {
  margin-bottom: 25px;
}

/* Contact Form */

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
}

input:focus,
textarea:focus {
  border-color: #4fcfaf;
  outline: none;
}

/* Button */

.btn-submit {
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 14px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-submit:hover {
  background: var(--color-primary);
}

/* CONTACT US */


.chat-container{
    position: fixed;
    bottom: 0;
    right: 2px;
    z-index: 9;
    width:22%;
    background: #fc5b3126;
    border-radius: 0;
}

.chat-header{
    padding: 7px;
    background: var(--color-footer);
    color: #fff;
}

.chat-header-primary{
  padding: 7px;
    background: var(--color-primary);
    color: #fff;
}

.chat-header button{
    float: right;
    background: transparent;
    border: 0;
}

.chat-messages{
  min-height:250px;
  max-height: 300px;
  overflow-y: scroll;
  padding-top: 4px;
}

.chat-input{
  display:flex;
}

.chat-input input{
  padding:6px;
  border: 0;
}

.chat-input button{
    background: transparent;
    border: 0;
    font-size: var(--font-size-lg);
    color: var(--color-primary);
}


.message {
  margin-bottom: 10px;
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 14px;
}

.message.me {
  margin-left: auto;
}

.chat-page {
  height: 75vh;
  border: 1px solid #ddd;
}

.chat-sidebar {
  border-right: 1px solid #ddd;
  overflow-y: auto;
}

.chat-user {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}

.chat-user:hover {
  background: #f5f5f5;
}

.chat-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-window {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  background: #fafafa;
}

/* hover effect */
.chat-user:hover {
  background-color: #f5f7fb;
}

/* ✅ ACTIVE CHAT */
.chat-user.active-chat {
  background-color: #e7f1ff;
  border-left: 4px solid var(--color-accent);
}

/* optional: make name bold when active */
.chat-user.active-chat .fw-bold {
  color: var(--color-accent);
}




#chatMessages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  overflow-y: auto;
}

/* Message alignment */
.message {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.message.me {
  align-self: flex-end;
}

.message.other {
  align-self: flex-start;
}

/* Bubble */
.bubble {
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  position: relative;
}

/* Sent */
.message.me .bubble {
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Received */
.message.other .bubble {
  background: #f1f0f0;
  color: #000;
  border-bottom-left-radius: 4px;
}

/* Text inside bubble */
.text {
  margin-bottom: 4px;
}


.message-dropdown {
  position: absolute;
  left: 0;
  top: 40px;
  width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
  padding: 10px;
}

.message-item {
  padding: 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.message-item:hover {
  background: #f5f5f5;
}

.view-more {
  text-align: center;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
}

/* Footer (time + ticks inside bubble) */
.footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  opacity: 0.8;
}

/* Time */
.footer span:first-child {
  margin-right: 4px;
}

/* Ticks */
.ticks {
  font-size: 12px;
}



.notif-dropdown {
  position: absolute;
  left: 0;
  top: 45px;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: none;
  z-index: 999;
  overflow: hidden;
}

.notif-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.notif-item:hover {
  background: #f7f7f7;
}

.notif-title {
  font-size: 14px;
  font-weight: 600;
}

.notif-body {
  font-size: 12px;
  color: #666;
}

.notif-time {
  font-size: 11px;
  color: #999;
  text-align: right;
}

.notif-unread {
  background: #eef6ff;
}

.notif-footer {
  text-align: center;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
}


.notif-item {
  cursor: pointer;
  transition: all 0.2s ease;
}

.notif-item:hover {
  background-color: #f8f9fa;
}

/* unread highlight */
.notif-unread {
  background-color: #eef5ff;
  border-left: 4px solid #0d6efd;
}


/* ===============================
   CHAT PANEL
=================================*/
.chat-container {
  position: fixed;
  right: 20px;
  bottom: 0;
  width: 760px;
  height:90%;
  max-width: calc(100vw - 40px);
 
  background: #fff;
  border: 1px solid #e5e7eb;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* top header */
.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.chat-seller-avatar {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #eef2f7;
}

.chat-seller-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f2f36;
  max-width: 340px;
}

.chat-seller-sub {
  font-size: 12px;
  color: #6b7280;
  max-width: 340px;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px;
  background: #fff !important;
  color: #111827 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.chat-icon-btn:hover {
  background: #f8fafc !important;
  transform: translateY(-1px);
}

.chat-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* listing card */
.chat-listing-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 5px 5px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.chat-listing-thumb {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #edf0f3;
  background: #f8fafc;
}

.chat-listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.chat-listing-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f2f36;
  margin-bottom: 8px;
  max-width: 420px;
}

.chat-listing-price {
  font-size: 16px;
  color: #0f2f36;
}

.chat-listing-action {
  flex-shrink: 0;
}

/* hint */
.chat-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #065f46;
  background: #ecfdf5;
  border-bottom: 1px solid #d1fae5;
}

/* messages */
#chatMessages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  background: #f8fafc;
}

/* input */
.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.chat-input-field {
  flex: 1;
  border: 1px solid #d1d5db !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  outline: none;
  background: #fff;
}

.chat-send-btn {
  width: 46px;
  height: 46px;
  border: 0 !important;
  border-radius: 12px;
  background: var(--color-primary) !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-send-btn:hover {
  background: var(--color-accent) !important;
}

/* responsive */
@media (max-width: 992px) {
  .chat-container {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    max-width: none;
   
  }

  .chat-listing-card {
    flex-wrap: wrap;
  }

  .chat-listing-action {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .chat-listing-title {
    max-width: 100%;
    font-size: 18px;
  }
}


.rating-stars i {
  font-size: 28px;
  cursor: pointer;
  color: #ccc;
  margin: 0 4px;
}

.rating-stars i.active,
.rating-stars i.hovered {
  color: #ffc107;
}


.modal {
  z-index: 9999 !important;
}

.modal-backdrop {
  z-index: 9998 !important;
}

.review-reported{
  background: #f4e5e5 !important;
}