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

html,
body {
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fb;
  color: #222;
}

body {
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
header {
  width: 100%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  padding: 20px 40px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 25px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.subtitle {
  font-size: 14px;
  color: #cbd5e1;
  margin-top: 4px;
}

.search-wrap {
  width: 100%;
}

.search-wrap form {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 999px;
  overflow: hidden;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 20px;
  font-size: 15px;
  background: transparent;
  color: #222;
}

.search-wrap input::placeholder {
  color: #888;
}

.search-wrap button {
  border: none;
  background: #ff6b00;
  color: white;
  width: 58px;
  height: 50px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s ease;
}

.search-wrap button:hover {
  background: #e85f00;
}

/* TOP NAV */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-item {
  color: #f8fafc;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.post-ad {
  background: #ff6b00;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-ad:hover {
  background: #e55f00;
  transform: translateY(-1px);
}

/* USER MENU */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-trigger {
  font-size: 14px;
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
  transition: 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
}

.user-arrow {
  font-size: 12px;
  opacity: 0.8;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: none;
  z-index: 1000;
  margin-top: 4px;
}

.user-menu:hover .user-dropdown {
  display: block;
}

.user-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

.user-dropdown a,
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #111827 !important;
  background: #ffffff;
  font-size: 14px;
  transition: 0.2s ease;
}

.user-dropdown a:hover,
.dropdown-item:hover {
  background: #f3f4f6;
  color: #111827 !important;
}

/* MAIN LAYOUT */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 25px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  align-items: start;
}

.left,
.right {
  width: 100%;
}

/* CATEGORY CARDS */
.left > .card {
  background: white;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e9eef5;
  transition: 0.2s ease;
}

.left > .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.left > .card h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #0f172a;
}

.left > .card p {
  color: #64748b;
  line-height: 1.6;
  font-size: 15px;
}

/* ADS SECTION */
.ads-section {
  background: white;
  border-radius: 18px;
  padding: 24px;
  margin-top: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e9eef5;
}

.ads-section h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #0f172a;
}

.ad-card {
  padding: 18px 0;
}

.ad-card h4 {
  font-size: 21px;
  margin-bottom: 10px;
  color: #111827;
}

.ad-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 7px;
}

.ad-card strong {
  color: #0f172a;
}

.ad-card small {
  display: inline-block;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 13px;
}

.ads-section hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2px 0;
}

/* RIGHT PANEL */
.right {
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e9eef5;
  position: sticky;
  top: 20px;
}

.map-title h2 {
  font-size: 24px;
  color: #0f172a;
  margin-bottom: 20px;
}

.map-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-image {
  width: 100%;
  background: #f8fafc;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  border: 1px solid #edf2f7;
}

.map-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.county-column {
  width: 100%;
}

.county-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.county-list a {
  display: block;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #334155;
  font-size: 14px;
  transition: 0.2s ease;
}

.county-list a:hover {
  background: #ff6b00;
  color: white;
  border-color: #ff6b00;
}

/* FOOTER */
.site-footer {
  margin-top: 40px;
  background: #0f172a;
  color: #cbd5e1;
  padding-top: 40px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 25px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-column h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 14px;
}

.footer-column p {
  line-height: 1.7;
  font-size: 14px;
  color: #cbd5e1;
}

.footer-column a {
  display: block;
  color: #cbd5e1;
  margin-bottom: 10px;
  font-size: 14px;
  transition: 0.2s ease;
}

.footer-column a:hover {
  color: #ffb37a;
}

.social-icons {
  display: flex;
  gap: 14px;
  font-size: 20px;
  color: white;
}

.social-icons i {
  cursor: pointer;
  transition: 0.2s ease;
}

.social-icons i:hover {
  color: #ff6b00;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 18px 20px;
  font-size: 13px;
  color: #94a3b8;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .search-wrap form {
    margin: 0 auto;
  }

  .top-nav {
    justify-content: center;
  }

  .container {
    grid-template-columns: 1fr;
  }

  .right {
    position: static;
  }
}

@media (max-width: 768px) {
  header {
    padding: 20px;
  }

  .container {
    padding: 0 15px;
    margin: 20px auto;
  }

  .logo {
    font-size: 24px;
  }

  .subtitle {
    font-size: 13px;
  }

  .search-wrap input {
    padding: 13px 16px;
    font-size: 14px;
  }

  .search-wrap button {
    width: 52px;
    height: 46px;
  }

  .left > .card,
  .ads-section,
  .right {
    padding: 18px;
  }

  .county-list {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .user-dropdown {
    left: 0;
    right: auto;
    min-width: 200px;
  }
}