/* ============================================
   ListingPro - Main Stylesheet
   ============================================ */

:root {
  --primary: #e91e8c;
  --primary-dark: #c2185b;
  --primary-light: #fce4ec;
  --secondary: #1a1a2e;
  --accent: #f39c12;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg: #fff;
  --bg-alt: #f8f9fa;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.15);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: .2s ease;
}

[data-theme="dark"] {
  --text: #e0e0e0;
  --text-light: #aaa;
  --text-muted: #777;
  --bg: #121212;
  --bg-alt: #1e1e2e;
  --border: #2a2a3e;
  --secondary: #e91e8c;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 16px; }

/* ── HEADER ── */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--text); }
.nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-menu { display: none; background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--text); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition); text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; color: #fff; }
.btn-call { background: #2196f3; color: #fff; }
.btn-call:hover { background: #1976d2; color: #fff; }
.btn-tg { background: #0088cc; color: #fff; }
.btn-tg:hover { background: #0077b5; color: #fff; }
.btn-sm { padding: 7px 16px; font-size: .85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #2d1b4e 100%);
  color: #fff; padding: 72px 0; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero p { font-size: 1.1rem; opacity: .85; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px; padding: 8px 20px; font-size: .9rem; margin-bottom: 24px;
}
.hero-badge .stars { color: #ffd700; }

/* ── SECTION ── */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--text); margin-bottom: 8px; }
.section-header p { color: var(--text-light); font-size: 1rem; }
.section-header .line { width: 50px; height: 3px; background: var(--primary); margin: 12px auto 0; border-radius: 2px; }

/* ── GRID ── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ── CATEGORY CARD ── */
.cat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.cat-card .icon { font-size: 2.4rem; margin-bottom: 10px; }
.cat-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.cat-card .count { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

/* ── PROFILE CARD ── */
.profile-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.profile-card .badge-featured {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--accent); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 50px;
}
.profile-card .badge-verified {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: #4caf50; color: #fff;
  font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 50px;
}
.profile-img {
  width: 100%; height: 220px; object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light), #f3e5f5);
}
.profile-img-placeholder {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, var(--primary-light), #f3e5f5);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.profile-body { padding: 16px; }
.profile-name { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.profile-meta { font-size: .85rem; color: var(--text-light); margin-bottom: 8px; }
.profile-meta span { margin-right: 12px; }
.profile-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.profile-rating .stars { color: #ffd700; font-size: 1rem; }
.profile-rating .count { font-size: .8rem; color: var(--text-muted); }
.profile-location { font-size: .85rem; color: var(--text-light); margin-bottom: 12px; }
.profile-location::before { content: '📍 '; }
.profile-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  background: var(--primary-light); color: var(--primary);
  font-size: .78rem; font-weight: 500; padding: 3px 10px; border-radius: 50px;
}
.profile-cta { display: flex; gap: 8px; }
.profile-cta .btn { flex: 1; justify-content: center; font-size: .82rem; padding: 8px 10px; }

/* ── FILTERS BAR ── */
.filters-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.filters-bar select, .filters-bar input {
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .9rem;
  background: var(--bg); color: var(--text);
  min-width: 150px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 12px 0; font-size: .88rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ── PROFILE PAGE ── */
.profile-page-header { padding: 32px 0; }
.profile-page-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; }
.profile-gallery { border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-lg); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.gallery-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.profile-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky; top: 80px;
}
.profile-info-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.profile-info-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.profile-info-table td { padding: 6px 0; font-size: .9rem; border-bottom: 1px solid var(--border); }
.profile-info-table td:first-child { color: var(--text-muted); width: 40%; }
.profile-info-table td:last-child { font-weight: 500; }
.cta-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cta-buttons .btn { justify-content: center; padding: 12px; font-size: 1rem; }

/* ── REVIEWS ── */
.review-item {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.reviewer-name { font-weight: 600; font-size: .95rem; }
.review-date { font-size: .8rem; color: var(--text-muted); }
.review-stars { color: #ffd700; margin-bottom: 6px; }
.review-text { font-size: .9rem; color: var(--text-light); }

.review-form { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; background: var(--bg); color: var(--text);
  font-family: var(--font);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.star-rating-input { display: flex; gap: 6px; }
.star-rating-input input[type="radio"] { display: none; }
.star-rating-input label { font-size: 1.6rem; cursor: pointer; color: #ddd; transition: color var(--transition); }
.star-rating-input label:hover, .star-rating-input label:hover ~ label { color: #ffd700; }
.star-rating-input input:checked ~ label { color: #ffd700; }

/* ── FAQ ── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq-q {
  padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: .95rem;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); color: var(--text); user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--primary); transition: transform var(--transition); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 16px; font-size: .9rem; color: var(--text-light); display: none; }
.faq-item.open .faq-a { display: block; }

/* ── TESTIMONIALS ── */
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.testimonial-text { font-size: 1rem; color: var(--text-light); font-style: italic; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #9c27b0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem;
}
.testimonial-name { font-weight: 600; font-size: .95rem; }
.testimonial-loc { font-size: .82rem; color: var(--text-muted); }

/* ── LOCATION GRID ── */
.location-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 50px; padding: 8px 18px;
  font-size: .9rem; font-weight: 500; color: var(--text);
  transition: all var(--transition); box-shadow: var(--shadow);
}
.location-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.locations-wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ── INTERNAL LINKS BLOCK ── */
.link-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.link-block h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.link-list { display: flex; flex-wrap: wrap; gap: 8px; }
.link-list a {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 50px; padding: 5px 14px;
  font-size: .84rem; color: var(--text-light);
  transition: all var(--transition);
}
.link-list a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── SEO CONTENT ── */
.seo-content {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: .92rem; color: var(--text-light); line-height: 1.8;
}
.seo-content h2 { font-size: 1.2rem; color: var(--text); margin: 16px 0 8px; }
.seo-content p { margin-bottom: 12px; }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; padding: 24px 0; }
.pagination ul { display: flex; gap: 6px; list-style: none; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: .9rem; color: var(--text);
  transition: all var(--transition);
}
.pagination a:hover, .pagination li.active a {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ── FOOTER ── */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,.8);
  padding: 48px 0 24px;
}
[data-theme="dark"] .footer { background: #0a0a14; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .88rem; opacity: .7; }
.footer h4 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 6px; }
.footer ul a { color: rgba(255,255,255,.65); font-size: .88rem; transition: color var(--transition); }
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px; text-align: center;
  font-size: .85rem; opacity: .6;
}

/* ── SEARCH BAR ── */
.search-bar {
  display: flex; background: #fff; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  overflow: hidden; max-width: 560px; margin: 0 auto;
}
.search-bar input {
  flex: 1; padding: 14px 20px; border: none; font-size: 1rem;
  outline: none; background: transparent;
}
.search-bar button {
  background: var(--primary); color: #fff; border: none;
  padding: 14px 24px; font-size: 1rem; cursor: pointer;
  font-weight: 600; transition: background var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }

/* ── SEARCH RESULTS ── */
#search-results {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover);
  max-height: 320px; overflow-y: auto; z-index: 50; display: none;
}
#search-results a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; color: var(--text); border-bottom: 1px solid var(--border);
}
#search-results a:hover { background: var(--bg-alt); }
.search-wrap { position: relative; }

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .9rem; }
.alert-success { background: #e8f5e9; color: #388e3c; border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .btn-menu { display: block; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px; z-index: 99; }
  .section { padding: 40px 0; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .align-center { align-items: center; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
