/* =====================================================
   DESIGN SYSTEM & VARIABLES
===================================================== */
:root {
  --primary: #0d4dff;
  --primary-hover: #003be0;
  --navy-dark: #0b2556;
  --bg-surface: #ffffff;
  --bg-alt: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(13, 77, 255, 0.08);
  --shadow-lg: 0 18px 36px -10px rgba(11, 37, 86, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-alt);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.section-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   NAVIGATION & HEADER
   (moved to header.css, which every page using this
   stylesheet also loads — keeping a single source of
   truth avoids the mobile hamburger menu being
   overridden by a duplicate, non-toggle-aware rule)
===================================================== */

/* =====================================================
   BREADCRUMB
===================================================== */
.breadcrumb-section {
  background: var(--bg-surface);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.breadcrumb-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-separator {
  font-size: 10px;
  color: #94a3b8;
}

.breadcrumb-nav span {
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb-nav span.current {
  color: var(--navy-dark);
  font-weight: 700;
}

/* =====================================================
   HERO
===================================================== */
.listing-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #edf4ff 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-text h1 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-text p {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* =====================================================
   TOOLBAR (SEARCH & SORT)
===================================================== */
.listing-toolbar {
  padding: 24px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.search-box i {
  color: var(--primary);
  font-size: 16px;
}

.search-box:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 77, 255, 0.08);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--navy-dark);
}

.sort-box .custom-select {
  position: relative;
  display: flex;
  align-items: center;
}

#sortSelect {
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 0 40px 0 16px;
  background: var(--bg-surface);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-dark);
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

#sortSelect:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 77, 255, 0.08);
}

.sort-box .select-icon {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  font-size: 12px;
  pointer-events: none;
}

/* =====================================================
   LISTING SECTION & CARDS
===================================================== */
.listing-section {
  padding: 50px 0;
}

.listing-top {
  margin-bottom: 24px;
}

#listingCount {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-dark);
}

.listing-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.listing-map {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    background: #f5f5f5;
}

.listing-map iframe {
  border-radius: 10px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: none;
    display: block;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
}

.service-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #eef4ff;
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-content {
  flex: 1;
}

.service-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--navy-dark);
}

.service-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 14px;
}

.service-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.service-buttons a {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.service-buttons a:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.call-btn { background: #059669; }
.whatsapp-btn { background: #16a34a; }
.website-btn { background: var(--primary); }

.service-map {
  width: 220px;
  height: 130px;
  overflow: hidden;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.service-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-map img {
  transform: scale(1.05);
}

/* =====================================================
   EMPTY STATE
===================================================== */
.empty-state {
  padding: 60px 0;
}

.empty-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.empty-icon-wrap {
  width: 70px;
  height: 70px;
  background: #eef4ff;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.empty-content h2 {
  font-size: 24px;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.empty-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.primary-btn {
  background: var(--primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  transition: var(--transition);
}

.primary-btn:hover {
  background: var(--primary-hover);
}

/* =====================================================
   INFO CARD SECTION
===================================================== */
.listing-info-section {
  padding-bottom: 60px;
}

.listing-info-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-surface);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.info-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: #eef4ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.info-text h3 {
  font-size: 20px;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.info-text p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* =====================================================
   FOOTER
===================================================== */
.main-footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding: 50px 24px 30px;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand .brand-logo {
  color: #ffffff;
  justify-content: center;
}

.footer-brand p {
  max-width: 450px;
  margin-top: 10px;
  font-size: 14px;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  padding-top: 24px;
  font-size: 13px;
  color: #64748b;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
===================================================== */
@media(max-width: 992px) {
  .service-card {
    flex-wrap: wrap;
  }

  .service-map {
    width: 100%;
    height: 180px;
  }
}

@media(max-width: 768px) {
  .hero-text h1 {
    font-size: 30px;
  }

  .listing-info-card {
    flex-direction: column;
    text-align: center;
  }
}

@media(max-width: 576px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  #sortSelect {
    width: 100%;
  }

  .service-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-buttons {
    width: 100%;
    flex-direction: column;
  }

  .service-buttons a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section-container {
    padding: 0 16px;
  }

  .listing-hero {
    padding: 40px 0;
  }

  .hero-text h1 {
    font-size: 25px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .search-box {
    min-width: 0;
  }

  .service-card {
    padding: 18px;
  }

  .service-content h3 {
    font-size: 17px;
  }

  .listing-info-card {
    padding: 22px;
  }

  .info-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .empty-icon-wrap {
    width: 56px;
    height: 56px;
    font-size: 26px;
  }
}