:root {
  --accent: #000080;
  --bg: #f7f7f8;
  --card: #fff;
  --muted: #666;
  --radius: 12px;
  --maxw: 1100px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: #333;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: 90%;
  max-width: var(--maxw);
  margin: auto;
  padding: 20px 0;
}
h1, h2, h3 {
  margin-bottom: 15px;
  color: #222;
}
p {
  text-align: justify;
}
.intro {
  text-align: justify;
}
/* ======================
   Header
===================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
}
.logo a {
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
}
.search-city, .user-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-city select, .search-city input, .search-city button {
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid #ccc;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.outline { border: 1px solid #ddd; background: transparent; color: #333; }

/* Mobile Icons */
.mobile-icons { display: none; gap: 10px; }
.mobile-icons button {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Search / Menu */
.mobile-search, .mobile-menu {
  display: none;
  background: #f9f9f9;
  padding: 10px 18px;
}
.mobile-search select, .mobile-search button {
  width: 100%;
  margin: 6px 0;
}
.mobile-menu a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #333;
  text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: none; }

/* Desktop (default) */
.search-city, .user-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}
/* ==== Breadcrumb (Enhanced) ==== */
.breadcrumb {
  font-size: 14px;
  margin: 12px auto;
  padding: 10px 0;
  color: #666;
  max-width: var(--maxw);
  width: 90%;
}
.breadcrumb {
  background: #f8f9fa;
  padding: 10px 20px;
  border-bottom: 1px solid #e5e5e5;
}
.breadcrumb a {
  color: #0b5ed7;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #111;
  font-weight: 600;
}

/* ======================
   Hero
====================== */
.hero {
  padding: 40px 18px;
  background: #fff;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero h1 {font-size: clamp(18px, 4vw, 26px); }
.lead { color: var(--muted); margin: 0 0 12px; }

/* ======================
   Categories Grid
====================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  gap: 18px;
  margin-top: 18px;
}
.cat-card {
  background: var(--card);
  padding: 12px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.cat-card img { width: 48px; height: 48px; object-fit: contain; }
.cat-card span { font-size: 14px; text-align: center; }
/* Mobile – EXACT 4 boxes per row */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .cat-card {
    padding: 12px 6px;
  }

  .cat-card img {
    width: 42px;
    height: 42px;
  }

  .cat-card span {
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
  }
}
/* ======================
   Highlights / Stats
====================== */
.highlights {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 30px auto;
  flex-wrap: wrap;
}
.highlight-card {
  background: var(--card);
  padding: 18px 26px;
  border-radius: var(--radius);
  text-align: center;
  min-width: 140px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.highlight-card .big {
  font-size: 22px;
  font-weight: 700;
}
.highlight-card .meta {
  color: var(--muted);
  font-size: 13px;
}

/* ======================
   Ads Grid
====================== */
.ads-grid {
  display: grid;
  grid-template-columns: 1fr; /* sirf ek column */
  gap: 20px;
}

.ad-card {
  display: flex;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  align-items: flex-start;
}

.ad-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.ad-content {
  flex: 1;
  padding: 0 15px;
  display: flex;
  flex-direction: column; /* content + buttons vertically */
}
 .view-more{
  color:#0a58ca;
  text-decoration:underline;
  cursor:pointer;
  font-weight:500;
}

.view-more:hover{
  color:#084298;
}

/* View more hidden content */
.more-content{
  display:block;        /* niche open hoga */
  margin-top:8px;
  line-height:1.6;
}

/* HTML hidden attribute ko respect karo */
.more-content[hidden]{
  display:none;
}

/* Buttons below content, right side */
.ad-buttons {
  display: flex;
  justify-content: flex-end; /* right side */
  gap: 12px;
  margin-top: 10px; /* gap from content */
}

.call-btn, .whatsapp-btn, .direction-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.call-btn { background: #007BFF; }
.whatsapp-btn { background: #25D366; }
.direction-btn { background: #274472; }

.call-btn:hover, .whatsapp-btn:hover, .direction-btn:hover { transform: scale(1.1); }
/* ======================
   Ad Card Enhanced Style
====================== */

.image-box {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ✅ Verified badge on image */
.verified-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #198754; /* green */
  color: #fff;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 📦 Info box with details */
.ad-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  background: #fff6f9;
  border: 1px solid #f9cce0;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #333;
}

.info-item strong {
  color: #000;
  font-weight: 600;
}

/* ⭐ Rating Highlight */
.ad-info .info-item span {
  font-size: 15px;
}

/* Responsive fix */
@media (max-width: 480px) {
  .ad-card {
    flex-direction: column;
    align-items: center;
  }
  .image-box {
    width: 100%;
    height: auto;
  }
  .ad-content {
    padding: 10px 0;
  }
}
.details {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.detail-chip {
  background: #ffe7e9;
  border: 1.5px solid #f7b2b9;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 600;
  color: #7a0a0a;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.detail-chip.location {
  background: #fef3f3;
  border-color: #ffbbbb;
  color: #bb4444;
}

.detail-chip.price {
  background: #f0fff4;
  border-color: #a5d6a7;
  color: #2a7a2a;
}

.detail-chip.rating {
  background: #f7e7a2;
  border-color: #e0c75f;
  color: #2b2b2b;
} 
/* Highlight near search ad */
.highlight-ad {
  box-shadow: 0 0 20px 3px #007bff55;
  animation: glow 2s ease-in-out;
}

/* Highlight effect for targeted ad */
.ad-card {
  scroll-margin-top: 70px; /* Same height as your fixed header */
}
.highlight {
  outline: 3px solid #007bff;
  animation: flashHighlight 2s ease-in-out 3;
  scroll-margin-top: 80px; /* header ke neeche visible rahe */
}

@keyframes flashHighlight {
  0%, 100% { background-color: transparent; }
  50% { background-color: #e8f3ff; }
}


/* ======================
   Pricing Table
====================== */
.pricing table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
.pricing th, .pricing td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}
.pricing th { background: #f2f2f2; }

/* ======================
   Gallery Slider
====================== */
.gallery-slider {
  position: relative;
  max-width: 100%;
  margin: 20px auto;
  overflow: hidden;
}

.slider-wrapper {
  overflow: hidden;
  width: 100%;
}
.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}


/* Each slide same size */
.slide {
  flex: 0 0 calc(100% / 3); /* Desktop: 3 slides per view */
  box-sizing: border-box;
  padding: 5px;
  height: 200px;            /* fixed height for uniformity */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* fills container without distortion */
  border-radius: 8px;
  display: block;
}

/* Arrows */
.gallery-slider button.prev,
.gallery-slider button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.gallery-slider button.prev:hover,
.gallery-slider button.next:hover {
  background: rgba(0,0,0,0.7);
}

.gallery-slider button.prev { left: 10px; }
.gallery-slider button.next { right: 10px; }

/* Responsive for mobile */
@media (max-width: 720px) {
  .slide {
    flex: 0 0 100%;   /* Mobile: 1 image per view */
    height: 180px;    /* smaller fixed height for mobile */
  }
}

/* Cities */
.city-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
}

.city-list li a {
  background:#3a4d79;
  color: #fff ;
  padding: 8px;
  display: block;
  text-align: center;
  border-radius: var(--radius); /* use site radius */
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.city-list li a:hover {
  background: #1554a0 !important;
  transform: translateY(-2px);
}

/* ======================
   Reviews / FAQ / City
====================== */
.reviews blockquote {
  background: #fff;
  border-left: 5px solid #000080;
  margin: 10px 0;
  padding: 10px;
  font-style: italic;
  border-radius: 5px;
}
.faq details {
  margin:10px 0;
  padding:10px;
  border:1px solid #ddd;
  border-radius:5px;
  color:#555;
}
.tags-links a {
  margin-right: 10px;
  color: #1f66d0 !important; /* forcefully blue */
  font-weight: 500;
  text-decoration: none;
}
.tags-links a:hover {
  color: #154a8c  !important; /* darker blue on hover */
}

/* ======================
   Floating Buttons
====================== */
.float-call-btn, .float-whatsapp-btn {
  position: fixed;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff; 
  font-size: 1.4rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
}
.call-btn { left: 20px; background: #000080; }
.whatsapp-btn { right: 20px; background: #25D366; }

/* ======================
   Auth / Forms
====================== */
.auth-form, .post-ad {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius);
  max-width: 720px;
  margin: 30px auto;
  box-shadow:0 1px 6px rgba(0,0,0,.04);
}
.auth-form form label, .post-ad-form label { display: block; margin-bottom: 12px; font-size: 14px; }
.auth-form input, .post-ad-form input, .post-ad-form textarea, .post-ad-form select { width: 100%; padding: 10px; border: 1px solid #eee; border-radius: 8px; }
.form-actions { display: flex; gap: 8px; align-items: center; }

/* ======================
   Footer
====================== */
.site-footer {
  background: #0f1724;
  color: #fff;
  padding: 30px 18px;
  font-family: sans-serif;
}
.footer-grid {
  max-width: 1200px; /* or var(--maxw) if defined */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.site-footer h3 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #fff;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 8px;
}
.site-footer a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-footer a:hover {
  color: #ffffff;
}
.footer-social {
  margin-top: 15px;
}
.footer-social a {
  display: inline-block;
  margin-right: 8px;
  padding: 6px 10px;
  background: #1e40af; /* blue accent */
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s ease;
  text-decoration: none;
}
.footer-social a:hover {
  background: #1554a0;
}
.site-footer .copyright {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #888;
} 
/* ======================
   Responsive
====================== */
@media (max-width: 720px) {
  .hero h1 { font-size: 18px; }
  .ads-grid { grid-template-columns: 1fr; }
  .ad-card { flex-direction: column; align-items: flex-start; }
  .ad-card img { width: 100%; height: 180px; border-radius: 10px; margin-bottom: 10px; }
  .ad-content { padding: 0; margin-bottom: 12px; }
  .ad-buttons { flex-direction: row; justify-content: center; width: 100%; margin-left: 0; gap: 20px; }
  .call-btn, .whatsapp-btn { width: 50px; height: 50px; font-size: 24px; }
   .highlights {flex-direction: column; gap: 12px;}
  .highlight-card {min-width: auto; width: 100%; }
  .city-list { grid-template-columns: repeat(2, 1fr); }
  .search-city, .user-nav { display: none; }
  .mobile-icons { display: flex; }
  .mobile-search, .mobile-menu { display: none; } /* initially hidden */
  
}

/* Default link style */
a {
    color: #1E3A8A;   /* Blue color */
    text-decoration: none; /* underline hatana optional */
    font-weight: bold; /* Bold text */
}

/* Hover effect */
a:hover {
    color: #800020;   /* Orange on hover */
    text-decoration: underline; /* optional */
}

/* Visited link color */
a:visited {
    color: #551A8B;   /* Purple for visited */
}

