
/* =========================================================
   ZILABIZ
   Base Stylesheet
   File: assets/css/style.css
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;

  --secondary: #0f172a;
  --secondary-light: #1e293b;

  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;

  --white: #ffffff;
  --black: #020617;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --body-bg: #f8fafc;
  --card-bg: #ffffff;

  --border: #e2e8f0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shadow-sm:
    0 2px 8px rgba(15, 23, 42, 0.05);

  --shadow-md:
    0 8px 25px rgba(15, 23, 42, 0.08);

  --shadow-lg:
    0 18px 45px rgba(15, 23, 42, 0.12);

  --transition-fast:
    160ms ease;

  --transition:
    250ms ease;

  --transition-slow:
    400ms ease;

  --container-width: 1240px;

  --header-height: 72px;

}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {

  margin: 0;

  padding: 0;

  min-height: 100vh;

  background: var(--body-bg);

  color: var(--gray-900);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  font-size: 15px;

  line-height: 1.6;

  -webkit-font-smoothing: antialiased;

  text-rendering: optimizeLegibility;

}


body.modal-open {
  overflow: hidden;
}


button,
input,
textarea,
select {
  font: inherit;
}


button {
  cursor: pointer;
}


button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}


img {
  display: block;

  max-width: 100%;

  height: auto;
}


a {
  color: inherit;

  text-decoration: none;
}


ul,
ol {
  margin: 0;

  padding: 0;

  list-style: none;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;

  line-height: 1.2;
}


p {
  margin: 0;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {

  outline: 3px solid rgba(37, 99, 235, 0.35);

  outline-offset: 3px;

}


::selection {

  background: rgba(37, 99, 235, 0.18);

}


/* =========================================================
   CONTAINER
========================================================= */

.container {

  width: min(
    calc(100% - 32px),
    var(--container-width)
  );

  margin-inline: auto;

}


/* =========================================================
   PAGE LOADER
========================================================= */

.page-loader {

  position: fixed;

  inset: 0;

  z-index: 99999;

  display: flex;

  align-items: center;

  justify-content: center;

  background:
    radial-gradient(
      circle at center,
      #172554 0%,
      #0f172a 45%,
      #020617 100%
    );

  transition:
    opacity 350ms ease,
    visibility 350ms ease;

}


.page-loader.hidden {

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

}


.loader-content {

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 18px;

}


.loader-circle {

  position: relative;

  width: 86px;

  height: 86px;

  display: flex;

  align-items: center;

  justify-content: center;

}


.loader-ring {

  position: absolute;

  inset: 0;

  border-radius: 50%;

  border: 4px solid rgba(255, 255, 255, 0.12);

  border-top-color: #60a5fa;

  border-right-color: #2563eb;

  animation:
    loaderSpin 900ms linear infinite;

}


.loader-logo {

  width: 52px;

  height: 52px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.1);

  color: #ffffff;

  font-size: 25px;

  font-weight: 900;

  box-shadow:
    0 8px 30px rgba(37, 99, 235, 0.25);

}


.loader-text {

  color: rgba(255, 255, 255, 0.9);

  font-size: 14px;

  font-weight: 600;

  letter-spacing: 0.2px;

}


@keyframes loaderSpin {

  to {
    transform: rotate(360deg);
  }

}


/* =========================================================
   HEADER
========================================================= */

.site-header {

  position: sticky;

  top: 0;

  z-index: 1000;

  height: var(--header-height);

  background:
    rgba(255, 255, 255, 0.94);

  border-bottom:
    1px solid rgba(226, 232, 240, 0.85);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);

}


.header-inner {

  width: min(
    calc(100% - 32px),
    var(--container-width)
  );

  height: 100%;

  margin-inline: auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

}


/* =========================================================
   BRAND
========================================================= */

.brand {

  display: inline-flex;

  align-items: center;

  gap: 11px;

  min-width: max-content;

}


.brand-logo {

  width: 42px;

  height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      #2563eb,
      #1d4ed8
    );

  color: #ffffff;

  font-size: 22px;

  font-weight: 900;

  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.25);

}


.brand-text {

  display: flex;

  flex-direction: column;

  line-height: 1.1;

}


.brand-text strong {

  color: var(--gray-900);

  font-size: 19px;

  font-weight: 850;

  letter-spacing: -0.4px;

}


.brand-text span {

  margin-top: 4px;

  color: var(--gray-500);

  font-size: 10px;

  font-weight: 600;

}


/* =========================================================
   DISTRICT BUTTON
========================================================= */

.district-button {

  display: inline-flex;

  align-items: center;

  gap: 9px;

  min-width: 185px;

  padding: 8px 12px;

  border: 1px solid var(--border);

  border-radius: 12px;

  background: var(--white);

  color: var(--gray-700);

  text-align: left;

  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);

}


.district-button:hover {

  transform: translateY(-1px);

  border-color:
    rgba(37, 99, 235, 0.35);

  box-shadow: var(--shadow-sm);

}


.district-icon {

  width: 34px;

  height: 34px;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  border-radius: 10px;

  background: var(--primary-light);

}


.district-button small {

  display: block;

  color: var(--gray-400);

  font-size: 9px;

  line-height: 1.1;

}


.district-button strong {

  display: block;

  max-width: 115px;

  margin-top: 2px;

  overflow: hidden;

  color: var(--gray-800);

  font-size: 12px;

  font-weight: 750;

  text-overflow: ellipsis;

  white-space: nowrap;

}


.district-arrow {

  margin-left: auto;

  color: var(--gray-400);

  font-size: 13px;

}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {

  display: flex;

  align-items: center;

  gap: 10px;

}


.header-login-button {

  padding: 9px 15px;

  border: 1px solid var(--border);

  border-radius: 10px;

  background: var(--white);

  color: var(--gray-700);

  font-size: 12px;

  font-weight: 700;

  transition:
    all var(--transition-fast);

}


.header-login-button:hover {

  border-color: var(--primary);

  color: var(--primary);

  background: var(--primary-light);

}


.mobile-menu-button {

  display: none;

  width: 40px;

  height: 40px;

  border: 1px solid var(--border);

  border-radius: 10px;

  background: var(--white);

  color: var(--gray-800);

  font-size: 20px;

}


/* =========================================================
   HERO
========================================================= */

.hero-section {

  position: relative;

  min-height: 390px;

  overflow: hidden;

  display: flex;

  align-items: center;

  background:
    linear-gradient(
      135deg,
      #0f172a 0%,
      #172554 50%,
      #1e3a8a 100%
    );

}


.hero-background {

  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 15% 25%,
      rgba(59, 130, 246, 0.28),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 70%,
      rgba(96, 165, 250, 0.2),
      transparent 32%
    );

}


.hero-background::before,
.hero-background::after {

  content: "";

  position: absolute;

  border-radius: 50%;

  border: 1px solid
    rgba(255, 255, 255, 0.08);

}


.hero-background::before {

  width: 380px;

  height: 380px;

  top: -200px;

  right: -80px;

}


.hero-background::after {

  width: 280px;

  height: 280px;

  bottom: -170px;

  left: 8%;

}


.hero-content {

  position: relative;

  z-index: 1;

  width: min(
    calc(100% - 32px),
    850px
  );

  margin-inline: auto;

  padding: 60px 0;

  text-align: center;

}


.hero-badge {

  display: inline-flex;

  align-items: center;

  padding: 7px 13px;

  border:
    1px solid rgba(255, 255, 255, 0.14);

  border-radius: var(--radius-full);

  background:
    rgba(255, 255, 255, 0.08);

  color:
    rgba(255, 255, 255, 0.88);

  font-size: 11px;

  font-weight: 700;

  backdrop-filter:
    blur(10px);

}


.hero-content h1 {

  margin-top: 20px;

  color: var(--white);

  font-size:
    clamp(38px, 6vw, 64px);

  font-weight: 900;

  letter-spacing: -2.5px;

}


.hero-content h1 span {

  display: inline-block;

  background:
    linear-gradient(
      90deg,
      #60a5fa,
      #93c5fd
    );

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent;

}


.hero-description {

  max-width: 600px;

  margin:
    15px auto 28px;

  color:
    rgba(255, 255, 255, 0.72);

  font-size: 15px;

}


/* =========================================================
   SEARCH
========================================================= */

.main-search-wrapper {

  position: relative;

  display: flex;

  align-items: center;

  width: 100%;

  max-width: 720px;

  margin-inline: auto;

  padding: 7px;

  border:
    1px solid rgba(255, 255, 255, 0.2);

  border-radius: 17px;

  background:
    rgba(255, 255, 255, 0.1);

  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.18);

  backdrop-filter:
    blur(16px);

}


.search-icon {

  width: 46px;

  height: 48px;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  font-size: 19px;

}


.main-search-wrapper input {

  width: 100%;

  height: 48px;

  padding: 0 10px;

  border: 0;

  outline: 0;

  background: transparent;

  color: var(--white);

  font-size: 15px;

}


.main-search-wrapper input::placeholder {

  color:
    rgba(255, 255, 255, 0.55);

}


.clear-search-button {

  width: 38px;

  height: 38px;

  margin-right: 3px;

  border: 0;

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.12);

  color: var(--white);

  font-size: 22px;

  line-height: 1;

}


.clear-search-button:hover {

  background:
    rgba(255, 255, 255, 0.2);

}


.search-status {

  min-height: 20px;

  margin-top: 9px;

  color:
    rgba(255, 255, 255, 0.65);

  font-size: 11px;

}


/* =========================================================
   SECTIONS
========================================================= */

.filter-section,
.categories-section,
.business-section,
.business-cta-section {

  padding: 55px 0;

}


.filter-section {

  background: var(--white);

  border-bottom:
    1px solid var(--border);

}


.categories-section {

  background: var(--gray-50);

}


.business-section {

  background: var(--white);

}


.business-cta-section {

  background: var(--gray-50);

}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-label {

  display: block;

  margin-bottom: 7px;

  color: var(--primary);

  font-size: 10px;

  font-weight: 850;

  letter-spacing: 1.5px;

}


.section-heading,
.filter-header {

  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 25px;

}


.section-heading h2,
.filter-header h2 {

  color: var(--gray-900);

  font-size:
    clamp(23px, 3vw, 30px);

  font-weight: 850;

  letter-spacing: -0.8px;

}


.result-count {

  color: var(--gray-500);

  font-size: 12px;

  font-weight: 650;

}


/* =========================================================
   FILTERS
========================================================= */

.filter-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 15px;

}


.filter-field {

  display: flex;

  flex-direction: column;

  gap: 7px;

}


.filter-field label {

  color: var(--gray-600);

  font-size: 11px;

  font-weight: 750;

}


.filter-field select {

  width: 100%;

  min-height: 46px;

  padding:
    0 38px 0 13px;

  border:
    1px solid var(--border);

  border-radius: 11px;

  outline: 0;

  background: var(--white);

  color: var(--gray-800);

  cursor: pointer;

  font-size: 13px;

  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);

}


.filter-field select:focus {

  border-color: var(--primary);

  box-shadow:
    0 0 0 3px
    rgba(37, 99, 235, 0.1);

}


.reset-filter-button {

  padding: 8px 13px;

  border:
    1px solid var(--border);

  border-radius: 9px;

  background: var(--white);

  color: var(--gray-600);

  font-size: 11px;

  font-weight: 700;

}


.reset-filter-button:hover {

  border-color: var(--primary);

  color: var(--primary);

}


/* =========================================================
   ACTIVE FILTERS
========================================================= */

.active-filters {

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 7px;

  min-height: 4px;

  margin-bottom: 20px;

}


.active-filter {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 6px 9px;

  border:
    1px solid rgba(37, 99, 235, 0.15);

  border-radius: var(--radius-full);

  background: var(--primary-light);

  color: var(--primary-dark);

  font-size: 10px;

  font-weight: 700;

}


.active-filter button {

  width: 17px;

  height: 17px;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background:
    rgba(37, 99, 235, 0.1);

  color: var(--primary-dark);

  line-height: 1;

}


/* =========================================================
   BUSINESS CTA
========================================================= */

.business-cta {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  padding: 35px;

  border:
    1px solid var(--border);

  border-radius: var(--radius-xl);

  background: var(--white);

  box-shadow: var(--shadow-sm);

}


.business-cta h2 {

  color: var(--gray-900);

  font-size:
    clamp(22px, 3vw, 32px);

  font-weight: 850;

  letter-spacing: -0.8px;

}


.business-cta p {

  max-width: 620px;

  margin-top: 8px;

  color: var(--gray-500);

  font-size: 13px;

}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.primary-button {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 44px;

  padding:
    0 17px;

  border: 0;

  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark)
    );

  color: var(--white);

  font-size: 12px;

  font-weight: 750;

  box-shadow:
    0 7px 18px rgba(37, 99, 235, 0.2);

  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);

}


.primary-button:hover {

  transform: translateY(-2px);

  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.28);

}


.primary-button:active {

  transform: translateY(0);

}


.full-width {

  width: 100%;

}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

  padding: 30px 0;

  background: var(--secondary);

  color: var(--white);

}


.footer-inner {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 25px;

}


.footer-brand {

  display: flex;

  align-items: center;

  gap: 10px;

}


.footer-brand .brand-logo {

  width: 36px;

  height: 36px;

  border-radius: 10px;

  font-size: 18px;

}


.footer-brand strong {

  font-size: 14px;

}


.footer-brand p {

  margin-top: 2px;

  color: var(--gray-400);

  font-size: 10px;

}


.footer-links {

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 18px;

}


.footer-links a {

  color: var(--gray-400);

  font-size: 11px;

  transition:
    color var(--transition-fast);

}


.footer-links a:hover {

  color: var(--white);

}


.footer-copy {

  color: var(--gray-500);

  font-size: 10px;

}


/* =========================================================
   MODAL BASE
========================================================= */

.modal-overlay {

  position: fixed;

  inset: 0;

  z-index: 5000;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 20px;

  background:
    rgba(2, 6, 23, 0.68);

  backdrop-filter:
    blur(6px);

  -webkit-backdrop-filter:
    blur(6px);

}


.modal-overlay[hidden] {

  display: none;

}


.modal-box {

  position: relative;

  width: 100%;

  max-height:
    calc(100vh - 40px);

  overflow-y: auto;

  padding: 30px;

  border:
    1px solid rgba(226, 232, 240, 0.9);

  border-radius: 20px;

  background: var(--white);

  box-shadow: var(--shadow-lg);

  animation:
    modalIn 220ms ease;

}


@keyframes modalIn {

  from {

    opacity: 0;

    transform:
      translateY(12px)
      scale(0.98);

  }

  to {

    opacity: 1;

    transform:
      translateY(0)
      scale(1);

  }

}


.modal-close {

  position: absolute;

  top: 13px;

  right: 13px;

  width: 34px;

  height: 34px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 0;

  border-radius: 50%;

  background: var(--gray-100);

  color: var(--gray-600);

  font-size: 21px;

  line-height: 1;

}


.modal-close:hover {

  background: var(--gray-200);

  color: var(--gray-900);

}


.district-modal,
.enquiry-modal {

  max-width: 440px;

}


.business-details-modal {

  max-width: 760px;

}


.modal-icon {

  width: 48px;

  height: 48px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin-bottom: 14px;

  border-radius: 14px;

  background: var(--primary-light);

  font-size: 22px;

}


.modal-box h2 {

  color: var(--gray-900);

  font-size: 24px;

  font-weight: 850;

  letter-spacing: -0.5px;

}


.modal-box > p {

  margin-top: 7px;

  color: var(--gray-500);

  font-size: 13px;

}


.modal-select {

  width: 100%;

  min-height: 46px;

  margin-top: 16px;

  padding: 0 13px;

  border:
    1px solid var(--border);

  border-radius: 10px;

  outline: 0;

  background: var(--white);

  color: var(--gray-800);

}


.modal-submit-button {

  width: 100%;

  margin-top: 12px;

}


.location-button {

  width: 100%;

  min-height: 44px;

  margin-top: 20px;

  border:
    1px solid rgba(37, 99, 235, 0.2);

  border-radius: 10px;

  background: var(--primary-light);

  color: var(--primary-dark);

  font-size: 12px;

  font-weight: 750;

}


.location-button:hover {

  background: #dbeafe;

}


.modal-divider {

  position: relative;

  display: flex;

  align-items: center;

  gap: 10px;

  margin: 19px 0;

  color: var(--gray-400);

  font-size: 10px;

  font-weight: 700;

}


.modal-divider::before,
.modal-divider::after {

  content: "";

  flex: 1;

  height: 1px;

  background: var(--border);

}


.modal-message,
.form-message {

  min-height: 18px;

  margin-top: 9px;

  font-size: 11px;

}


/* =========================================================
   FORMS
========================================================= */

.form-group {

  margin-top: 15px;

}


.form-group label {

  display: block;

  margin-bottom: 6px;

  color: var(--gray-700);

  font-size: 11px;

  font-weight: 750;

}


.form-group input,
.form-group textarea {

  width: 100%;

  padding: 11px 12px;

  border:
    1px solid var(--border);

  border-radius: 10px;

  outline: 0;

  background: var(--white);

  color: var(--gray-900);

  font-size: 13px;

  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);

}


.form-group input {

  min-height: 44px;

}


.form-group textarea {

  min-height: 100px;

  resize: vertical;

}


.form-group input:focus,
.form-group textarea:focus {

  border-color: var(--primary);

  box-shadow:
    0 0 0 3px
    rgba(37, 99, 235, 0.1);

}


.form-group input::placeholder,
.form-group textarea::placeholder {

  color: var(--gray-400);

}


/* =========================================================
   TOAST
========================================================= */

.toast {

  position: fixed;

  right: 20px;

  bottom: 20px;

  z-index: 10000;

  display: flex;

  align-items: center;

  gap: 9px;

  max-width: min(
    calc(100% - 40px),
    360px
  );

  padding: 12px 15px;

  border:
    1px solid var(--border);

  border-radius: 12px;

  background: var(--white);

  color: var(--gray-800);

  box-shadow: var(--shadow-lg);

  font-size: 12px;

  font-weight: 650;

  animation:
    toastIn 250ms ease;

}


.toast[hidden] {

  display: none;

}


#toastIcon {

  width: 23px;

  height: 23px;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  border-radius: 50%;

  background: #dcfce7;

  color: var(--success);

  font-size: 12px;

  font-weight: 900;

}


@keyframes toastIn {

  from {

    opacity: 0;

    transform:
      translateY(10px);

  }

  to {

    opacity: 1;

    transform:
      translateY(0);

  }

}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {

  padding: 60px 20px;

  border:
    1px dashed var(--gray-300);

  border-radius: var(--radius-lg);

  background: var(--gray-50);

  text-align: center;

}


.empty-state[hidden] {

  display: none;

}


.empty-icon {

  width: 60px;

  height: 60px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto 14px;

  border-radius: 18px;

  background: var(--white);

  box-shadow: var(--shadow-sm);

  font-size: 25px;

}


.empty-state h3 {

  color: var(--gray-800);

  font-size: 18px;

  font-weight: 800;

}


.empty-state p {

  margin:
    7px auto 18px;

  color: var(--gray-500);

  font-size: 12px;

}


/* =========================================================
   LOAD MORE
========================================================= */

.load-more-container {

  display: flex;

  justify-content: center;

  margin-top: 30px;

}


.load-more-container[hidden] {

  display: none;

}


.load-more-button {

  min-width: 150px;

  min-height: 42px;

  padding: 0 18px;

  border:
    1px solid var(--border);

  border-radius: 10px;

  background: var(--white);

  color: var(--gray-700);

  font-size: 12px;

  font-weight: 750;

  transition:
    all var(--transition-fast);

}


.load-more-button:hover {

  border-color: var(--primary);

  color: var(--primary);

  background: var(--primary-light);

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {

    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

  }

}

