/*
Theme Name: WellSepticPro
Theme URI: https://wellsepticpro.com
Author: WellSepticPro
Author URI: https://wellsepticpro.com
Description: A purpose-built directory theme for WellSepticPro.com — helping homeowners find trusted septic, well, and water service providers. Built on GeoDirectory.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wellsepticpro
Tags: directory, business-directory, geodirectory, septic, well-services
*/

/* ============================================================
   WellSepticPro — Custom Directory Theme
   Aesthetic: Trustworthy Utility
   Palette: Deep slate + teal accents + warm earth tones
   ============================================================ */

/* --- CSS Variables --- */
:root {
  /* Primary palette */
  --wsp-slate-950: #0c1220;
  --wsp-slate-900: #111827;
  --wsp-slate-800: #1e293b;
  --wsp-slate-700: #334155;
  --wsp-slate-600: #475569;
  --wsp-slate-500: #64748b;
  --wsp-slate-400: #94a3b8;
  --wsp-slate-300: #cbd5e1;
  --wsp-slate-200: #e2e8f0;
  --wsp-slate-100: #f1f5f9;
  --wsp-slate-50: #f8fafc;

  /* Accent: teal-blue — trust, water, reliability */
  --wsp-teal-700: #0e7490;
  --wsp-teal-600: #0891b2;
  --wsp-teal-500: #06b6d4;
  --wsp-teal-400: #22d3ee;
  --wsp-teal-100: #cffafe;
  --wsp-teal-50: #ecfeff;

  /* Earth: warm grounding tones */
  --wsp-earth-700: #92400e;
  --wsp-earth-600: #b45309;
  --wsp-earth-500: #d97706;
  --wsp-earth-100: #fef3c7;
  --wsp-earth-50: #fffbeb;

  /* Success green */
  --wsp-green-700: #15803d;
  --wsp-green-600: #16a34a;
  --wsp-green-500: #22c55e;
  --wsp-green-100: #dcfce7;
  --wsp-green-50: #f0fdf4;

  /* Alert red */
  --wsp-red-600: #dc2626;
  --wsp-red-100: #fee2e2;

  /* Typography */
  --wsp-font-display: 'DM Serif Display', Georgia, serif;
  --wsp-font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --wsp-font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Spacing scale */
  --wsp-space-xs: 0.25rem;
  --wsp-space-sm: 0.5rem;
  --wsp-space-md: 1rem;
  --wsp-space-lg: 1.5rem;
  --wsp-space-xl: 2rem;
  --wsp-space-2xl: 3rem;
  --wsp-space-3xl: 4rem;
  --wsp-space-4xl: 6rem;

  /* Layout */
  --wsp-max-width: 1200px;
  --wsp-border-radius: 8px;
  --wsp-border-radius-lg: 12px;
  --wsp-shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --wsp-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
  --wsp-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.06);
  --wsp-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.08);
}

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- Global Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--wsp-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--wsp-slate-800);
  background-color: var(--wsp-slate-50);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--wsp-font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--wsp-slate-900);
  margin-top: 0;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.125rem; }
h3 { font-size: 1.625rem; }
h4 { font-size: 1.25rem; }

a {
  color: var(--wsp-teal-700);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--wsp-teal-500);
}

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

/* --- Utility Classes --- */
.wsp-container {
  max-width: var(--wsp-max-width);
  margin: 0 auto;
  padding: 0 var(--wsp-space-lg);
}

.wsp-section {
  padding: var(--wsp-space-4xl) 0;
}

.wsp-section--alt {
  background: white;
}

.wsp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.25em 0.65em;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.wsp-badge--teal {
  background: var(--wsp-teal-100);
  color: var(--wsp-teal-700);
}

.wsp-badge--green {
  background: var(--wsp-green-100);
  color: var(--wsp-green-700);
}

.wsp-badge--amber {
  background: var(--wsp-earth-100);
  color: var(--wsp-earth-700);
}

.wsp-badge--red {
  background: var(--wsp-red-100);
  color: var(--wsp-red-600);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.wsp-header {
  background: var(--wsp-slate-900);
  border-bottom: 3px solid var(--wsp-teal-600);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.wsp-header__inner {
  max-width: var(--wsp-max-width);
  margin: 0 auto;
  padding: 0 var(--wsp-space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.wsp-header__logo {
  display: flex;
  align-items: center;
  gap: var(--wsp-space-sm);
  text-decoration: none;
}

.wsp-header__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--wsp-teal-600);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.wsp-header__logo-text {
  font-family: var(--wsp-font-display);
  font-size: 1.35rem;
  color: white;
  letter-spacing: -0.01em;
}

.wsp-header__logo-text span {
  color: var(--wsp-teal-400);
}

.wsp-header__nav {
  display: flex;
  align-items: center;
  gap: var(--wsp-space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.wsp-header__nav a {
  color: var(--wsp-slate-300);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.wsp-header__nav a:hover {
  color: white;
}

.wsp-header__cta {
  background: var(--wsp-teal-600);
  color: white !important;
  padding: 0.5em 1.25em;
  border-radius: var(--wsp-border-radius);
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
}

.wsp-header__cta:hover {
  background: var(--wsp-teal-500);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.wsp-header__toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--wsp-space-sm);
}

@media (max-width: 768px) {
  .wsp-header__toggle { display: block; }
  .wsp-header__nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--wsp-slate-900);
    flex-direction: column;
    padding: var(--wsp-space-lg);
    gap: var(--wsp-space-md);
    border-top: 1px solid var(--wsp-slate-700);
  }
  .wsp-header__nav.is-open { display: flex; }
}

/* ============================================================
   HERO SECTION — Photo Background
   ============================================================ */
.wsp-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: left top;
  background-repeat: no-repeat;
}

/* On very wide screens, cap the hero height so image doesn't over-stretch */
@media (min-width: 1600px) {
  .wsp-hero {
    min-height: 620px;
    max-height: 700px;
    background-position: left 20%;
  }
}

@media (min-width: 2000px) {
  .wsp-hero {
    max-height: 750px;
    background-position: 15% 20%;
  }
}

/* Dark gradient overlay — transparent on left (shows couple), dark on right (for text) */
.wsp-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(17, 24, 39, 0.05) 0%,
    rgba(17, 24, 39, 0.15) 15%,
    rgba(17, 24, 39, 0.6) 35%,
    rgba(17, 24, 39, 0.9) 50%,
    rgba(17, 24, 39, 0.97) 65%,
    rgba(17, 24, 39, 0.98) 100%
  );
  pointer-events: none;
}

.wsp-hero__inner {
  max-width: var(--wsp-max-width);
  margin: 0 auto;
  padding: 5rem var(--wsp-space-lg) 4rem;
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.wsp-hero__content {
  width: 50%;
  text-align: left;
}

/* Constrain the GeoDirectory search widget inside hero */
.wsp-hero__content .wsp-hero-search-wrap .geodir-search-container {
  background: white;
  border-radius: var(--wsp-border-radius-lg);
  padding: var(--wsp-space-sm) var(--wsp-space-md);
  box-shadow: var(--wsp-shadow-xl), 0 0 40px rgba(0,0,0,0.15);
  border: none;
  margin-bottom: 0;
}

/* Make the GD search form inputs fit naturally */
.wsp-hero__content .geodir-search-container form {
  display: flex;
  align-items: center;
  gap: var(--wsp-space-xs);
}

.wsp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--wsp-teal-300);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4em 1em;
  border-radius: 100px;
  margin-bottom: var(--wsp-space-lg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.wsp-hero__title {
  font-family: var(--wsp-font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: white;
  line-height: 1.15;
  margin-bottom: var(--wsp-space-md);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.wsp-hero__title em {
  font-style: italic;
  color: var(--wsp-teal-400);
}

.wsp-hero__subtitle {
  font-size: 1.1rem;
  color: var(--wsp-slate-300);
  max-width: 480px;
  margin: 0 0 var(--wsp-space-xl);
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

/* --- Hero Search Box --- */
.wsp-hero-search {
  background: white;
  border-radius: var(--wsp-border-radius-lg);
  padding: var(--wsp-space-md);
  box-shadow: var(--wsp-shadow-xl), 0 0 40px rgba(0,0,0,0.15);
  display: flex;
  gap: var(--wsp-space-sm);
  align-items: stretch;
}

/* Also style the GeoDirectory search widget inside the hero */
/* (main styles in .wsp-hero__content scope above) */

/* Keep the GD search inputs on one row inside hero */
.wsp-hero-search-wrap .geodir-search-container .geodir-loc-bar {
  display: flex;
  gap: var(--wsp-space-sm);
  align-items: center;
}

.wsp-hero-search-wrap .geodir-search-container input[type="text"],
.wsp-hero-search-wrap .geodir-search-container input[type="search"],
.wsp-hero-search-wrap .geodir-search-container select {
  border: 1px solid var(--wsp-slate-200);
  border-radius: var(--wsp-border-radius);
  padding: 0.65em 1em 0.65em 2.2em;
  font-family: var(--wsp-font-body);
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
}

/* Fix the GD search icon positioning */
.wsp-hero-search-wrap .geodir-search-container .geodir-search-input-wrapper {
  position: relative;
}

.wsp-hero-search-wrap .geodir-search-container .geodir-search-input-wrapper .geodir-search-icon,
.wsp-hero-search-wrap .geodir-search-container .gd-search-field-icon {
  position: absolute;
  left: 0.75em;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wsp-slate-400);
  z-index: 1;
  pointer-events: none;
}

.wsp-hero-search-wrap .geodir-search-container button[type="submit"],
.wsp-hero-search-wrap .geodir-search-container input[type="submit"] {
  background: var(--wsp-teal-600);
  color: white;
  border: none;
  border-radius: var(--wsp-border-radius);
  padding: 0.65em 1.25em;
  font-weight: 700;
  cursor: pointer;
}

.wsp-hero-search-wrap .geodir-search-container button[type="submit"]:hover,
.wsp-hero-search-wrap .geodir-search-container input[type="submit"]:hover {
  background: var(--wsp-teal-700);
}

.wsp-hero-search__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wsp-hero-search__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wsp-slate-500);
  padding-left: 2px;
}

.wsp-hero-search__input,
.wsp-hero-search__select {
  border: 1px solid var(--wsp-slate-200);
  border-radius: var(--wsp-border-radius);
  padding: 0.7em 1em;
  font-size: 1rem;
  font-family: var(--wsp-font-body);
  color: var(--wsp-slate-800);
  background: var(--wsp-slate-50);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.wsp-hero-search__input:focus,
.wsp-hero-search__select:focus {
  outline: none;
  border-color: var(--wsp-teal-500);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}

.wsp-hero-search__btn {
  background: var(--wsp-teal-600);
  color: white;
  border: none;
  border-radius: var(--wsp-border-radius);
  padding: 0 1.75em;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--wsp-font-body);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5em;
  align-self: flex-end;
}

.wsp-hero-search__btn:hover {
  background: var(--wsp-teal-700);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .wsp-hero-search {
    flex-direction: column;
    gap: var(--wsp-space-md);
  }
  .wsp-hero-search__btn {
    width: 100%;
    justify-content: center;
    padding: 0.85em;
  }
}

/* --- Hero Stats Bar --- */
.wsp-hero-stats {
  display: flex;
  gap: var(--wsp-space-2xl);
  margin-top: var(--wsp-space-xl);
  padding-top: var(--wsp-space-lg);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.wsp-hero-stat {
  text-align: center;
}

.wsp-hero-stat__value {
  font-family: var(--wsp-font-display);
  font-size: 1.75rem;
  color: white;
  display: block;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.wsp-hero-stat__label {
  font-size: 0.75rem;
  color: var(--wsp-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 4px;
}

/* --- Hero Mobile --- */
@media (max-width: 900px) {
  .wsp-hero {
    min-height: auto;
    background-position: 25% center;
  }
  .wsp-hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(17, 24, 39, 0.3) 0%,
      rgba(17, 24, 39, 0.75) 40%,
      rgba(17, 24, 39, 0.93) 70%,
      rgba(17, 24, 39, 0.97) 100%
    );
  }
  .wsp-hero__inner {
    justify-content: center;
    padding: 16rem var(--wsp-space-lg) 3rem;
  }
  .wsp-hero__content {
    width: 100%;
    text-align: center;
  }
  .wsp-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .wsp-hero-stats {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .wsp-hero-search {
    flex-direction: column;
    gap: var(--wsp-space-md);
  }
  .wsp-hero-search__btn {
    width: 100%;
    justify-content: center;
    padding: 0.85em;
  }
  .wsp-hero-stats {
    gap: var(--wsp-space-lg);
    flex-wrap: wrap;
  }
  .wsp-hero-stat__value { font-size: 1.4rem; }
  .wsp-hero__inner {
    padding-top: 12rem;
  }
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.wsp-categories {
  padding: var(--wsp-space-4xl) 0;
  background: white;
}

.wsp-categories__title {
  text-align: center;
  margin-bottom: var(--wsp-space-sm);
}

.wsp-categories__subtitle {
  text-align: center;
  color: var(--wsp-slate-500);
  font-size: 1.05rem;
  margin-bottom: var(--wsp-space-2xl);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.wsp-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--wsp-space-md);
}

.wsp-category-card {
  background: var(--wsp-slate-50);
  border: 1px solid var(--wsp-slate-200);
  border-radius: var(--wsp-border-radius-lg);
  padding: var(--wsp-space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--wsp-space-md);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.wsp-category-card:hover {
  border-color: var(--wsp-teal-500);
  box-shadow: var(--wsp-shadow-md);
  transform: translateY(-2px);
}

.wsp-category-card__icon {
  width: 48px;
  height: 48px;
  background: var(--wsp-teal-100);
  color: var(--wsp-teal-700);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.wsp-category-card__name {
  font-family: var(--wsp-font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--wsp-slate-900);
  margin-bottom: 4px;
}

.wsp-category-card__count {
  font-size: 0.85rem;
  color: var(--wsp-slate-500);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.wsp-how-it-works {
  padding: var(--wsp-space-4xl) 0;
  background: var(--wsp-slate-50);
}

.wsp-how-it-works__title {
  text-align: center;
  margin-bottom: var(--wsp-space-2xl);
}

.wsp-how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wsp-space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.wsp-step {
  text-align: center;
  padding: var(--wsp-space-lg);
}

.wsp-step__number {
  width: 56px;
  height: 56px;
  background: var(--wsp-teal-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wsp-font-display);
  font-size: 1.5rem;
  margin: 0 auto var(--wsp-space-md);
}

.wsp-step__title {
  font-family: var(--wsp-font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--wsp-space-sm);
  color: var(--wsp-slate-900);
}

.wsp-step__desc {
  font-size: 0.95rem;
  color: var(--wsp-slate-600);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .wsp-how-it-works__grid {
    grid-template-columns: 1fr;
    gap: var(--wsp-space-md);
  }
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */

/* Fix content being hidden behind sticky header */
main#wsp-main {
  padding-top: 0;
}

/* Search results page needs top padding for sticky header */
.geodir-page-search main#wsp-main,
body.search-results main#wsp-main,
body.post-type-archive-gd_place main#wsp-main {
  padding-top: var(--wsp-space-lg);
}

/* Search results page title */
.geodir-page-search h1,
body.search-results h1 {
  font-family: var(--wsp-font-display);
  font-size: 1.75rem;
  color: var(--wsp-slate-900);
  margin: var(--wsp-space-lg) 0 var(--wsp-space-md);
  padding: 0 var(--wsp-space-lg);
  max-width: var(--wsp-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Search bar on results page */
.geodir-search-container {
  background: white;
  border: 1px solid var(--wsp-slate-200);
  border-radius: var(--wsp-border-radius-lg);
  padding: var(--wsp-space-lg);
  margin-bottom: var(--wsp-space-xl);
  box-shadow: var(--wsp-shadow-sm);
}

/* Results count / sort bar */
.geodir-loop-paging-container,
.geodir-loop-actions-container {
  padding: var(--wsp-space-sm) 0;
  color: var(--wsp-slate-500);
  font-size: 0.9rem;
}

/* ============================================================
   LISTING CARDS (GeoDirectory overrides)
   ============================================================ */

/* Hide the default placeholder/avatar image entirely */
/* This is the UsersWP author avatar and the card header image */
.geodir-loop-container .card-img-top,
.geodir-loop-container .col.col-4.text-center.tofront,
.geodir-loop-container img[alt="Author Image"],
.geodir-loop-container img[src*="no_profile"],
.geodir-loop-container img[src*="gravatar.com"] {
  display: none !important;
}

/* Remove the row that contains the avatar so spacing is clean */
.geodir-loop-container .card-body .row.justify-content-center {
  display: none !important;
}

/* Card container */
.geodir-loop-container .geodir-category-list-view,
.geodir-loop-container .type_places {
  background: white;
  border: 1px solid var(--wsp-slate-200);
  border-radius: var(--wsp-border-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  margin-bottom: var(--wsp-space-lg);
  padding: var(--wsp-space-lg);
}

.geodir-loop-container .geodir-category-list-view:hover,
.geodir-loop-container .type_places:hover {
  box-shadow: var(--wsp-shadow-lg);
  transform: translateY(-2px);
  border-color: var(--wsp-teal-500);
}

/* Card inner content spacing */
.geodir-loop-container .geodir-post-content {
  padding: 0;
}

/* Business name */
.geodir-category-list-view .geodir-post-title,
.type_places .geodir-post-title {
  margin-bottom: var(--wsp-space-xs);
}

.geodir-category-list-view .geodir-post-title a,
.type_places .geodir-post-title a {
  font-family: var(--wsp-font-display);
  font-size: 1.3rem;
  color: var(--wsp-slate-900);
  text-decoration: none;
  line-height: 1.3;
}

.geodir-category-list-view .geodir-post-title a:hover,
.type_places .geodir-post-title a:hover {
  color: var(--wsp-teal-700);
}

/* Description text in cards */
.geodir-loop-container .geodir-entry-content,
.geodir-loop-container .geodir-post-desc {
  font-size: 0.92rem;
  color: var(--wsp-slate-600);
  line-height: 1.6;
  margin: var(--wsp-space-sm) 0;
}

/* Star ratings — style them gold */
.geodir-i-rating .fas.fa-star,
.geodir-i-rating .far.fa-star,
.geodir-star-rating .fas.fa-star {
  color: var(--wsp-earth-500);
}

.geodir-i-rating,
.geodir-star-rating {
  margin: var(--wsp-space-sm) 0 0;
}

/* Category badges in listing cards */
.geodir-category-list-view .geodir-pcat-list,
.type_places .geodir-pcat-list {
  margin-bottom: var(--wsp-space-sm);
}

.geodir-category-list-view .geodir-pcat-list a,
.type_places .geodir-pcat-list a {
  background: var(--wsp-teal-50);
  color: var(--wsp-teal-700);
  padding: 0.25em 0.7em;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-right: 4px;
}

/* Phone number display */
.geodir-post-meta-container .geodir-i-phone {
  margin-top: var(--wsp-space-sm);
}

.geodir-post-meta-container .geodir-i-phone a {
  color: var(--wsp-teal-700);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Address display in cards */
.geodir-post-meta-container .geodir-i-address {
  color: var(--wsp-slate-500);
  font-size: 0.88rem;
}

/* Grid view improvements */
.geodir-loop-container.geodir-gridview {
  gap: var(--wsp-space-lg);
}

/* Pagination styling */
.geodir-loop-paging-container .geodir-pagination {
  margin-top: var(--wsp-space-xl);
  text-align: center;
}

.geodir-loop-paging-container .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--wsp-space-sm);
  margin: 0 3px;
  border-radius: var(--wsp-border-radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wsp-slate-600);
  background: white;
  border: 1px solid var(--wsp-slate-200);
  text-decoration: none;
  transition: all 0.2s ease;
}

.geodir-loop-paging-container .page-numbers:hover {
  border-color: var(--wsp-teal-500);
  color: var(--wsp-teal-700);
}

.geodir-loop-paging-container .page-numbers.current {
  background: var(--wsp-teal-600);
  color: white;
  border-color: var(--wsp-teal-600);
}

/* Admin hints bar — hide on frontend for visitors */
.geodir-admin-note {
  display: none;
}

/* ============================================================
   SINGLE LISTING PAGE
   ============================================================ */
.geodir-single-head {
  background: var(--wsp-slate-900);
  padding: var(--wsp-space-2xl) 0;
}

.geodir-single-head .geodir-post-title {
  font-family: var(--wsp-font-display);
  font-size: 2rem;
  color: white;
}

.geodir-single .geodir-tabs-content {
  background: white;
  border-radius: var(--wsp-border-radius-lg);
  border: 1px solid var(--wsp-slate-200);
  box-shadow: var(--wsp-shadow-sm);
}

/* Tabs styling */
.geodir-single .geodir-tab-head {
  border-bottom: 2px solid var(--wsp-slate-200);
}

.geodir-single .geodir-tab-head a {
  font-family: var(--wsp-font-body);
  font-weight: 600;
  color: var(--wsp-slate-600);
  padding: var(--wsp-space-md) var(--wsp-space-lg);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.geodir-single .geodir-tab-head a:hover,
.geodir-single .geodir-tab-head a.geodir-tab-active {
  color: var(--wsp-teal-700);
  border-bottom-color: var(--wsp-teal-600);
}

/* Contact sidebar on single listing */
.geodir-sidebar .geodir-post-meta-container {
  background: white;
  border: 1px solid var(--wsp-slate-200);
  border-radius: var(--wsp-border-radius-lg);
  padding: var(--wsp-space-lg);
  box-shadow: var(--wsp-shadow-sm);
}

/* Get Quote / Contact button */
.wsp-cta-button,
.geodir-sidebar .geodir_event_button,
.geodir-sidebar .gd-bh-show-field a {
  display: block;
  background: var(--wsp-teal-600);
  color: white;
  text-align: center;
  padding: 0.85em;
  border-radius: var(--wsp-border-radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-top: var(--wsp-space-md);
}

.wsp-cta-button:hover {
  background: var(--wsp-teal-700);
  color: white;
}

/* ============================================================
   SEARCH / ARCHIVE PAGES
   ============================================================ */
.geodir-search-container {
  background: white;
  border: 1px solid var(--wsp-slate-200);
  border-radius: var(--wsp-border-radius-lg);
  padding: var(--wsp-space-lg);
  margin-bottom: var(--wsp-space-xl);
  box-shadow: var(--wsp-shadow-sm);
}

.geodir-search-container input[type="text"],
.geodir-search-container select {
  border: 1px solid var(--wsp-slate-200);
  border-radius: var(--wsp-border-radius);
  padding: 0.6em 1em;
  font-family: var(--wsp-font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.geodir-search-container input[type="text"]:focus,
.geodir-search-container select:focus {
  border-color: var(--wsp-teal-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}

.geodir-search-container button[type="submit"],
.geodir-search-container input[type="submit"] {
  background: var(--wsp-teal-600);
  color: white;
  border: none;
  border-radius: var(--wsp-border-radius);
  padding: 0.6em 1.5em;
  font-weight: 700;
  font-family: var(--wsp-font-body);
  cursor: pointer;
  transition: background 0.2s ease;
}

.geodir-search-container button[type="submit"]:hover,
.geodir-search-container input[type="submit"]:hover {
  background: var(--wsp-teal-700);
}

/* ============================================================
   FOOTER
   ============================================================ */
.wsp-footer {
  background: var(--wsp-slate-900);
  color: var(--wsp-slate-400);
  padding: var(--wsp-space-3xl) 0 var(--wsp-space-xl);
}

.wsp-footer__grid {
  max-width: var(--wsp-max-width);
  margin: 0 auto;
  padding: 0 var(--wsp-space-lg);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--wsp-space-2xl);
}

.wsp-footer__brand-text {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: var(--wsp-space-md);
  color: var(--wsp-slate-500);
}

.wsp-footer__title {
  font-family: var(--wsp-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wsp-slate-300);
  margin-bottom: var(--wsp-space-md);
}

.wsp-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wsp-footer__links li {
  margin-bottom: var(--wsp-space-sm);
}

.wsp-footer__links a {
  color: var(--wsp-slate-500);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.wsp-footer__links a:hover {
  color: var(--wsp-teal-400);
}

.wsp-footer__bottom {
  max-width: var(--wsp-max-width);
  margin: var(--wsp-space-2xl) auto 0;
  padding: var(--wsp-space-lg) var(--wsp-space-lg) 0;
  border-top: 1px solid var(--wsp-slate-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--wsp-slate-600);
}

@media (max-width: 768px) {
  .wsp-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--wsp-space-xl);
  }
  .wsp-footer__bottom {
    flex-direction: column;
    gap: var(--wsp-space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wsp-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wsp-animate-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.wsp-animate-in:nth-child(2) { animation-delay: 0.1s; }
.wsp-animate-in:nth-child(3) { animation-delay: 0.2s; }
.wsp-animate-in:nth-child(4) { animation-delay: 0.3s; }
.wsp-animate-in:nth-child(5) { animation-delay: 0.4s; }
.wsp-animate-in:nth-child(6) { animation-delay: 0.5s; }

/* ============================================================
   RESPONSIVE POLISH
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }

  .wsp-section { padding: var(--wsp-space-2xl) 0; }
  .wsp-hero { padding: var(--wsp-space-2xl) 0 var(--wsp-space-3xl); }
}

/* ============================================================
   WORDPRESS ADMIN BAR ADJUSTMENT
   ============================================================ */
body.admin-bar .wsp-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .wsp-header {
    top: 46px;
  }
}

/* ============================================================
   BLOG ARCHIVE
   ============================================================ */
.wsp-blog-archive {
  padding: 6rem 0 4rem;
}

.wsp-blog-archive__header {
  text-align: center;
  margin-bottom: var(--wsp-space-3xl);
}

.wsp-blog-archive__title {
  font-family: var(--wsp-font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--wsp-slate-900);
  margin-bottom: var(--wsp-space-sm);
}

.wsp-blog-archive__subtitle {
  color: var(--wsp-slate-500);
  font-size: 1.05rem;
}

.wsp-blog-grid {
  display: flex;
  flex-direction: column;
  gap: var(--wsp-space-xl);
}

/* --- Blog Card: image left, content right --- */
.wsp-blog-card {
  display: flex;
  background: white;
  border: 1px solid var(--wsp-slate-200);
  border-radius: var(--wsp-border-radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.wsp-blog-card:hover {
  border-color: var(--wsp-teal-400);
  box-shadow: var(--wsp-shadow-lg);
  transform: translateY(-2px);
}

.wsp-blog-card__image-link {
  flex-shrink: 0;
  width: 320px;
  display: block;
}

.wsp-blog-card__image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
}

.wsp-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.wsp-blog-card:hover .wsp-blog-card__image img {
  transform: scale(1.03);
}

.wsp-blog-card__image--placeholder {
  background: linear-gradient(135deg, var(--wsp-slate-100) 0%, var(--wsp-slate-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wsp-blog-card__image--placeholder i {
  font-size: 2.5rem;
  color: var(--wsp-slate-400);
}

.wsp-blog-card__body {
  padding: var(--wsp-space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.wsp-blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--wsp-space-sm);
  margin-bottom: var(--wsp-space-sm);
}

.wsp-blog-card__category {
  background: rgba(8, 145, 178, 0.1);
  color: var(--wsp-teal-700);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25em 0.7em;
  border-radius: 100px;
}

.wsp-blog-card__date {
  color: var(--wsp-slate-400);
  font-size: 0.8rem;
}

.wsp-blog-card__title {
  font-family: var(--wsp-font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: var(--wsp-space-sm);
}

.wsp-blog-card__title a {
  color: var(--wsp-slate-900);
  text-decoration: none;
}

.wsp-blog-card__title a:hover {
  color: var(--wsp-teal-600);
}

.wsp-blog-card__excerpt {
  color: var(--wsp-slate-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--wsp-space-md);
}

.wsp-blog-card__read-more {
  color: var(--wsp-teal-600);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.wsp-blog-card__read-more:hover {
  color: var(--wsp-teal-700);
}

.wsp-blog-pagination {
  text-align: center;
  margin-top: var(--wsp-space-3xl);
}

/* --- Blog Archive Mobile --- */
@media (max-width: 700px) {
  .wsp-blog-card {
    flex-direction: column;
  }
  .wsp-blog-card__image-link {
    width: 100%;
  }
  .wsp-blog-card__image {
    min-height: 180px;
    max-height: 220px;
  }
}

/* ============================================================
   SINGLE BLOG POST
   ============================================================ */
.wsp-single-post {
  padding: 6rem 0 4rem;
}

.wsp-single-post__header {
  margin-bottom: var(--wsp-space-xl);
}

.wsp-single-post__title {
  font-family: var(--wsp-font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--wsp-slate-900);
  margin-bottom: var(--wsp-space-sm);
}

.wsp-single-post__meta {
  color: var(--wsp-slate-500);
  font-size: 0.9rem;
}

.wsp-single-post__meta a {
  color: var(--wsp-teal-600);
  text-decoration: none;
}

.wsp-single-post__image {
  margin-bottom: var(--wsp-space-2xl);
}

.wsp-single-post__content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--wsp-slate-700);
}

.wsp-single-post__content h2 {
  font-family: var(--wsp-font-display);
  font-size: 1.5rem;
  color: var(--wsp-slate-900);
  margin: var(--wsp-space-2xl) 0 var(--wsp-space-md);
}

.wsp-single-post__content h3 {
  font-size: 1.2rem;
  color: var(--wsp-slate-800);
  margin: var(--wsp-space-xl) 0 var(--wsp-space-sm);
}

.wsp-single-post__content p {
  margin-bottom: var(--wsp-space-md);
}

.wsp-single-post__content a {
  color: var(--wsp-teal-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wsp-single-post__content a:hover {
  color: var(--wsp-teal-700);
}

.wsp-single-post__content ul,
.wsp-single-post__content ol {
  margin: var(--wsp-space-md) 0 var(--wsp-space-lg);
  padding-left: 1.5em;
}

.wsp-single-post__content li {
  margin-bottom: var(--wsp-space-sm);
}

.wsp-single-post__content strong {
  color: var(--wsp-slate-900);
}

/* --- Table of Contents --- */
.wsp-toc {
  background: var(--wsp-slate-50);
  border: 1px solid var(--wsp-slate-200);
  border-left: 4px solid var(--wsp-teal-600);
  border-radius: var(--wsp-border-radius);
  padding: var(--wsp-space-lg);
  margin: var(--wsp-space-xl) 0;
}

.wsp-toc__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--wsp-space-md);
}

.wsp-toc__title {
  font-family: var(--wsp-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--wsp-slate-800);
}

.wsp-toc__toggle {
  background: none;
  border: 1px solid var(--wsp-slate-300);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--wsp-slate-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wsp-toc__toggle:hover {
  background: var(--wsp-slate-200);
}

.wsp-toc__list {
  margin: 0;
  padding-left: 1.3em;
  counter-reset: toc;
  list-style: none;
}

.wsp-toc__list li {
  counter-increment: toc;
  margin-bottom: 0.4em;
  font-size: 0.9rem;
  line-height: 1.4;
}

.wsp-toc__list li::before {
  content: counter(toc) ".";
  color: var(--wsp-teal-600);
  font-weight: 700;
  margin-right: 0.4em;
}

.wsp-toc__list a {
  color: var(--wsp-slate-600);
  text-decoration: none;
}

.wsp-toc__list a:hover {
  color: var(--wsp-teal-600);
  text-decoration: underline;
}

.wsp-toc--collapsed .wsp-toc__list {
  display: none;
}

.wsp-toc--collapsed .wsp-toc__header {
  margin-bottom: 0;
}

.wsp-single-post__footer {
  margin-top: var(--wsp-space-3xl);
  padding-top: var(--wsp-space-xl);
  border-top: 1px solid var(--wsp-slate-200);
}

.wsp-single-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wsp-space-xs);
  margin-bottom: var(--wsp-space-xl);
}

.wsp-tag {
  background: var(--wsp-slate-100);
  color: var(--wsp-slate-600);
  padding: 0.3em 0.8em;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.wsp-single-post__nav {
  display: flex;
  justify-content: space-between;
  gap: var(--wsp-space-lg);
}

.wsp-single-post__nav-link {
  text-decoration: none;
  flex: 1;
  padding: var(--wsp-space-md);
  border: 1px solid var(--wsp-slate-200);
  border-radius: var(--wsp-border-radius);
  transition: border-color 0.2s;
}

.wsp-single-post__nav-link:hover {
  border-color: var(--wsp-teal-400);
}

.wsp-single-post__nav-link--next {
  text-align: right;
}

.wsp-single-post__nav-label {
  display: block;
  font-size: 0.75rem;
  color: var(--wsp-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
}

.wsp-single-post__nav-title {
  display: block;
  color: var(--wsp-slate-800);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .wsp-single-post__nav {
    flex-direction: column;
  }
}
