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

:root {
  --navy-primary: #1B2B4F;
  --navy-light:   #2A3F6B;
  --copper:       #B87333;
  --copper-dark:  #9A5F2A;
  --white:        #F5F3F0;
  --off-white:    #FAFAFA;
  --light-gray:   #F5F5F5;
  --charcoal:     #3A3A3A;
  --gray:         #6B7280;
  --green:        #2d8a4e;
  --shadow-card:       0 2px 8px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.6;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy-primary);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 9999;
  text-decoration: none;
  font-size: 0.875rem;
}
.skip-link:focus { top: 0; }

/* ── NAV ── */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--off-white);
  border-bottom: 1px solid #e0dcd7;
  box-shadow: 0 2px 12px rgba(27,43,79,0.08);
}

.nav-inner {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 2rem 0 3.8rem !important;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(14%) sepia(30%) saturate(1500%) hue-rotate(195deg) brightness(92%) contrast(95%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--copper); }
.nav-links a.active { color: var(--copper); font-weight: 600; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--off-white);
  border-top: 1px solid #e0dcd7;
  padding: 0.5rem 2rem 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  color: var(--navy-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] { color: var(--copper); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, rgba(27,43,79,0.95), rgba(42,63,107,0.9));
  padding: 0;
  min-height: 480px;
  display: flex;
}

.hero-left {
  flex: 1;
  padding: 4rem 3rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--copper); }

.hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-search {
  display: flex;
  gap: 0;
  max-width: 480px;
}

.hero-search input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.hero-search button {
  padding: 1rem 2rem;
  background: var(--copper);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}

.hero-search button:hover { background: var(--copper-dark); }

.hero-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

/* Search this area button */
.map-search-area-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: white;
  color: var(--navy-primary);
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.2s;
  opacity: 0;
  pointer-events: none;
}

.map-search-area-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.map-search-area-btn:hover {
  background: var(--copper);
  color: white;
  box-shadow: 0 4px 12px rgba(184,115,51,0.3);
}

.map-search-area-btn.active {
  background: var(--copper);
  color: white;
}

.map-clear-area-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  color: var(--gray);
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.2s;
  display: none;
}

.map-clear-area-btn.visible {
  display: block;
}

.map-clear-area-btn:hover {
  background: white;
  color: var(--charcoal);
}


/* ── DIRECTORY CONTENT WRAPPER ── */
.directory-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  display: flex;
  gap: 2rem;
}

/* ── MOBILE FILTER TOGGLE ── */
.mobile-filter-toggle {
  display: none;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: white;
  border: 1px solid #e0dcd7;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-primary);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  margin-bottom: 1rem;
  text-align: left;
}

/* ── FILTER SIDEBAR ── */
.filter-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.filter-sidebar-inner {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-primary);
}

.filter-clear {
  font-size: 0.8rem;
  color: var(--copper);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
}

.filter-clear:hover { text-decoration: underline; }

.filter-group {
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.filter-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.25rem 0;
  user-select: none;
}

.filter-group-header h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-chevron {
  width: 16px;
  height: 16px;
  color: var(--gray);
  transition: transform 0.2s;
}

.filter-group.collapsed .filter-chevron { transform: rotate(-90deg); }

.filter-group-body {
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group.collapsed .filter-group-body { display: none; }

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--charcoal);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.filter-option:hover { background: rgba(184,115,51,0.04); }

.filter-option.checked {
  background: rgba(184,115,51,0.08);
}

.filter-option input[type="checkbox"] {
  accent-color: var(--copper);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.filter-option span { flex: 1; }

.filter-option .count {
  color: var(--gray);
  font-size: 0.75rem;
  flex: 0;
}

/* Apply Filters button */
.filter-apply-btn {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--copper);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
  margin-top: 1.25rem;
  opacity: 0;
  pointer-events: none;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.filter-apply-btn.visible {
  opacity: 1;
  pointer-events: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}

.filter-apply-btn:hover {
  background: var(--copper-dark);
  box-shadow: 0 4px 12px rgba(184,115,51,0.3);
}

/* Nested sub-regions */
.filter-sub-group {
  margin-left: 1.5rem;
  padding-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 280px;
  overflow-y: auto;
}

.filter-sub-group::-webkit-scrollbar { width: 4px; }
.filter-sub-group::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.filter-sub-group .filter-option {
  font-size: 0.8rem;
  color: var(--gray);
}

.filter-region-parent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--charcoal);
  font-weight: 500;
  padding: 0.15rem 0;
}

.filter-region-parent input[type="checkbox"] {
  display: none;
}

.filter-region-parent .count {
  color: var(--gray);
  font-size: 0.75rem;
  margin-left: auto;
}

.filter-region-parent .expand-icon {
  font-size: 0.7rem;
  color: var(--gray);
  transition: transform 0.2s;
  cursor: pointer;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.region-item.collapsed .filter-sub-group { display: none; }
.region-item.collapsed .expand-icon { transform: rotate(-90deg); }

/* ── RESULTS AREA ── */
.results-area {
  flex: 1;
  min-width: 0;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-count {
  font-size: 0.9rem;
  color: var(--gray);
}

.results-count strong { color: var(--navy-primary); }

.filter-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.filter-breadcrumb .crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: white;
  border: 1px solid #e0dcd7;
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-weight: 500;
  color: var(--navy-primary);
}

.filter-breadcrumb .crumb .crumb-remove {
  font-size: 0.75rem;
  color: var(--gray);
  cursor: pointer;
  margin-left: 0.2rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.filter-breadcrumb .crumb .crumb-remove:hover { opacity: 1; color: #c0392b; }

.filter-breadcrumb .crumb-sep {
  color: var(--copper);
  font-weight: 600;
  font-size: 0.8rem;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray);
}

.results-sort select {
  padding: 0.4rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: white;
}

/* ── LISTING CARDS ── */
.listing-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 1.25rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.listing-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(184,115,51,0.15);
}

.listing-avatar {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--navy-primary);
  color: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.listing-body {
  flex: 1;
  min-width: 0;
}

.listing-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.listing-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy-primary);
}

.listing-verified {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}

.listing-verified svg {
  width: 14px;
  height: 14px;
}

.listing-location {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.listing-description {
  font-size: 0.88rem;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.listing-tag {
  background: rgba(27,43,79,0.06);
  color: var(--navy-primary);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-weight: 500;
}

.listing-tag.specialty {
  background: rgba(184,115,51,0.08);
  color: var(--copper-dark);
}

.listing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid #f0f0f0;
}

.listing-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--gray);
}

.listing-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.listing-action {
  font-size: 0.85rem;
  color: var(--copper);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.listing-action:hover { color: var(--copper-dark); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray);
}
.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy-primary);
  margin-bottom: 0.5rem;
}

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--copper), var(--copper-dark));
  padding: 4rem 2rem;
  text-align: center;
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: white;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  max-width: 520px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.cta-button:hover {
  background: white;
  color: var(--copper-dark);
}

/* ── FOOTER ── */
footer {
  background: var(--navy-primary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--copper);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--copper); }

.footer-disclaimer {
  display: block;
  max-width: 1400px;
  margin: 1.5rem auto 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1400px;
  margin: 1rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ── PAGE HERO (submit.html) ── */
.page-hero {
  background: linear-gradient(135deg, rgba(27,43,79,0.95), rgba(42,63,107,0.9));
  padding: 4rem 2rem;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: white;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── FORM SECTION (submit.html) ── */
.form-section {
  padding: 3rem 2rem 5rem;
}

.form-container {
  max-width: 680px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-primary);
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e0dcd7;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(184,115,51,0.1);
}

.form-group input[type="file"] {
  width: 100%;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--charcoal);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0.5rem 0 1.5rem;
}

.required { color: var(--copper); margin-left: 0.1rem; }

.field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--charcoal);
}

.radio-label input[type="radio"] {
  accent-color: var(--copper);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.specialty-panel {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: none;
}

.specialty-panel.active { display: block; }

.panel-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--charcoal);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--copper);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.form-submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--copper);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
}

.form-submit-btn:hover {
  background: var(--copper-dark);
  box-shadow: 0 6px 20px rgba(184,115,51,0.4);
}

.form-disclaimer {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero {
    flex-direction: column;
    min-height: auto;
  }
  .hero-left {
    padding: 2.5rem 1.5rem;
    max-width: 100%;
  }
  .hero h1 { font-size: 1.9rem; }
  .hero-right { display: none; }

  .directory-content {
    flex-direction: column;
    padding: 1.5rem 1rem 3rem;
  }

  .filter-sidebar { width: 100%; }
  .filter-sidebar-inner {
    position: static;
    display: none;
  }
  .filter-sidebar-inner.open { display: block; }
  .mobile-filter-toggle { display: block; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }

  .results-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-search { flex-direction: column; }
  .hero-search input { border-radius: 8px; }
  .hero-search button { border-radius: 8px; }

  .listing-card { flex-direction: column; }
  .listing-avatar { width: 40px; height: 40px; font-size: 1rem; }

  .form-container { padding: 1.5rem; }
  .cta-section h2 { font-size: 1.6rem; }
}

/* ─── DEV NOTES ─── */
.devnotes-toggle-btn {
  background: transparent;
  border: 1px solid rgba(245,243,240,0.2);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  margin-left: 12px;
  transition: background 0.2s, border-color 0.2s;
}
.devnotes-toggle-btn:hover {
  background: rgba(245,243,240,0.1);
  border-color: var(--copper);
}
.devnotes-toggle-btn.active {
  background: var(--copper);
  border-color: var(--copper);
  color: white;
}

.devnotes-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  background: white;
  border-left: 3px solid var(--copper);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.devnotes-header {
  background: var(--navy-primary);
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.devnotes-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
}
.devnotes-close:hover { opacity: 0.7; }
.devnotes-textarea {
  flex: 1;
  padding: 16px;
  border: none;
  resize: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--off-white);
}
.devnotes-textarea:focus { outline: none; }
.devnotes-textarea::placeholder { color: var(--gray); }

/* ─── DOCKING MODE ─── */
/* Directory keeps its full UI when docked — only hide the dev notes panel */
body.docked-mode { padding-top: 0; }
