:root {
  --color-bg: #f4f7f9;
  --color-surface: #ffffff;
  --color-text: #212529;
  --color-accent: #0d6efd;
  --color-accent-secondary: #198754;
  --color-muted: #6c757d;
  --shadow-soft: 0 20px 45px rgba(13, 110, 253, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

body {
  font-family: 'Lato', sans-serif;
  background: linear-gradient(145deg, #f7f9fb 0%, #eef3f7 100%);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: #0b5ed7;
}

.navbar {
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.08);
  backdrop-filter: blur(10px);
}

.navbar-nav .nav-link {
  font-weight: 600;
  padding: 0.75rem 1rem;
}

.navbar .btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.85), rgba(25, 135, 84, 0.7));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 3rem;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 4rem;
  color: #fff;
}

.search-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.section-title {
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.card {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(18, 38, 63, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(18, 38, 63, 0.12);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.image-placeholder {
  background: repeating-linear-gradient(135deg, rgba(33, 37, 41, 0.08), rgba(33, 37, 41, 0.08) 10px, rgba(33, 37, 41, 0.12) 10px, rgba(33, 37, 41, 0.12) 20px);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.image-placeholder.sm {
  height: 180px;
}

.image-placeholder.md {
  height: 220px;
}

.image-placeholder.lg {
  height: 320px;
}

.badge-custom {
  background: rgba(13, 110, 253, 0.12);
  color: var(--color-accent);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.how-it-works .icon-circle {
  width: 64px;
  height: 64px;
  background: rgba(25, 135, 84, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--color-accent-secondary);
  margin-bottom: 1rem;
}

.filter-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  position: sticky;
  top: 5rem;
}

.listing-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sticky-widget {
  position: sticky;
  top: 5rem;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  background: var(--color-surface);
}

.price-tag {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-secondary);
}

.carousel img {
  border-radius: var(--radius-md);
}

.table {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18, 38, 63, 0.08);
}

.table thead {
  background: rgba(13, 110, 253, 0.08);
  font-weight: 600;
}

.info-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.footer {
  background: #0b1b26;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.5rem;
}

.success-banner {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.85), rgba(25, 135, 84, 0.85));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.permit-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  border: 1px solid rgba(13, 110, 253, 0.15);
}

.permit-card h5 {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.status-card {
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.status-card .status-icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.status-card h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.status-card.error {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.92), rgba(13, 110, 253, 0.85));
  color: #fff;
}

.status-card.error .status-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.status-card .actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 991.98px) {
  .hero-content {
    padding: 3rem 2rem;
  }

  .search-card {
    margin-top: 1.5rem;
  }

  .filter-card {
    position: static;
    margin-bottom: 2rem;
  }

  .sticky-widget {
    position: static;
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-content {
    padding: 2.5rem 1.5rem;
  }

  .card-img-top {
    height: 180px;
  }
}


.auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  width: 100%;
  max-width: 960px;
}

.auth-card .form-control {
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.auth-card .btn {
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.auth-card .col-lg-6:first-child {
  background: var(--color-surface);
}

.auth-illustration {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.6), rgba(25, 135, 84, 0.6));
  position: relative;
  color: #fff;
}

.auth-illustration::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 38, 0.6), transparent 60%);
}

.auth-illustration-content {
  position: relative;
  z-index: 1;
  padding: 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
}

.auth-illustration-content .badge {
  align-self: flex-start;
}

@media (max-width: 991.98px) {
  .auth-wrapper {
    padding: 3rem 0;
  }

  .auth-card {
    box-shadow: none;
    border-radius: var(--radius-md);
  }
}