/* Flathead Valley Directory - Granite Ridge Realty */
:root {
    --black: #000000; --charcoal: #222222; --dark-olive: #302c27;
    --muted-gold: #6b6454; --silver: #7f8083; --white: #ffffff;
    --off-white: #f5f4f1; --warm-cream: #eae7e0; --light-gold: #8a8274;
    --gold-accent: #9c9484; --subtle-line: rgba(107, 100, 84, 0.15);
    --font-display: 'Sora', -apple-system, sans-serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --content-max: 1280px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-weight: 300; color: var(--charcoal); background: var(--white); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; background: rgba(0,0,0,0.95); backdrop-filter: blur(20px); }
.nav__inner { max-width: var(--content-max); margin: 0 auto; padding: 0 clamp(24px,4vw,60px); display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { height: 40px; width: auto; max-width: 100%; display: block; }
.nav__links { display: flex; gap: 32px; list-style: none; }
.nav__links a { font-size: 13px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); transition: color 0.3s; }
.nav__links a:hover { color: var(--gold-accent); }

.dir-hero { padding: 120px 0 50px; background: var(--charcoal); text-align: center; color: var(--white); }
.dir-hero--sm { padding: 100px 0 32px; }
.dir-hero__inner { max-width: 700px; margin: 0 auto; padding: 0 clamp(24px,4vw,60px); }
.dir-hero__label { font-size: 11px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-accent); margin-bottom: 12px; }
.dir-hero__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 12px; }
.dir-hero__sub { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.5); line-height: 1.7; }

.dir-hero__search { margin-top: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.dir-hero__search input { width: 100%; padding: 16px 24px; font-family: var(--font-body); font-size: 15px; font-weight: 300; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: var(--white); outline: none; transition: border-color 0.3s; }
.dir-hero__search input::placeholder { color: rgba(255,255,255,0.3); }
.dir-hero__search input:focus { border-color: var(--muted-gold); }

.dir-section { padding: clamp(48px,6vw,80px) 0; }
.dir-section--alt { background: var(--off-white); }
.dir-section--cta { background: var(--charcoal); color: var(--white); }
.dir-section__inner { max-width: var(--content-max); margin: 0 auto; padding: 0 clamp(24px,4vw,60px); }
.dir-section__title { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 300; letter-spacing: -0.01em; margin-bottom: 32px; text-align: center; }

.dir-cta__text { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.5); max-width: 500px; margin: 0 auto 28px; line-height: 1.7; }
.dir-cta__btn { display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; padding: 16px 40px; background: var(--muted-gold); color: var(--white); transition: all 0.4s; }
.dir-cta__btn:hover { background: var(--light-gold); transform: translateY(-2px); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-card { display: block; padding: 24px; background: var(--off-white); border: 1px solid var(--subtle-line); transition: all 0.3s; }
.dir-section--alt .cat-card { background: var(--white); }
.cat-card:hover { border-color: var(--muted-gold); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.cat-card__name { font-family: var(--font-display); font-size: 16px; font-weight: 400; margin-bottom: 4px; }
.cat-card__count { font-size: 13px; color: var(--silver); }

.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.city-card { display: block; padding: 24px; background: var(--white); border: 1px solid var(--subtle-line); transition: all 0.3s; text-align: center; }
.city-card:hover { border-color: var(--muted-gold); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.city-card__name { font-family: var(--font-display); font-size: 16px; font-weight: 400; margin-bottom: 4px; }
.city-card__count { font-size: 13px; color: var(--silver); }

.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.biz-card { display: flex; flex-direction: column; background: #fafaf8; border: 1px solid var(--subtle-line); border-left: 3px solid var(--muted-gold); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.biz-card:hover { border-color: var(--muted-gold); transform: translateY(-4px); box-shadow: 0 14px 36px rgba(48,44,39,0.10); }
.biz-card__body { padding: clamp(20px,3vw,28px); display: flex; flex-direction: column; flex: 1; }
.biz-card__category { font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-gold); margin-bottom: 10px; }
.biz-card__name { font-family: var(--font-display); font-size: 19px; font-weight: 500; margin-bottom: 4px; letter-spacing: -0.005em; color: var(--charcoal); }
.biz-card__city { font-size: 13px; color: var(--silver); margin-bottom: 12px; }
.biz-card__desc { font-size: 14px; font-weight: 300; color: var(--silver); line-height: 1.7; flex: 1; }
.biz-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-gold); transition: gap 0.25s ease; }
.biz-card:hover .biz-card__link { gap: 10px; }
.biz-card__arrow { display: inline-block; transition: transform 0.25s ease; }
.biz-card:hover .biz-card__arrow { transform: translateX(2px); }

.profile { max-width: var(--content-max); margin: 0 auto; padding: clamp(40px,6vw,80px) clamp(24px,4vw,60px); }
.profile__inner { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }

/* Description with stronger hierarchy */
.profile__intro { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--subtle-line); position: relative; }
.profile__intro::before { content: ''; position: absolute; top: -8px; left: 0; width: 40px; height: 2px; background: var(--muted-gold); }
.profile__summary { font-family: var(--font-display); font-size: 19px; font-weight: 400; line-height: 1.6; color: var(--charcoal); margin: 16px 0 0; letter-spacing: -0.005em; }
/* Description with stronger hierarchy - gold accent above the lead paragraph */
.profile__desc { margin-bottom: 36px; padding-top: 8px; position: relative; }
.profile__desc::before { content: ''; position: absolute; top: -8px; left: 0; width: 40px; height: 2px; background: var(--muted-gold); }
.profile__desc p { font-size: 16px; font-weight: 300; line-height: 1.85; margin-bottom: 18px; color: #2c2825; }
.profile__desc p:first-child { font-size: 17px; line-height: 1.75; color: var(--charcoal); font-weight: 400; margin-top: 16px; }

/* Services as two-column list with checkmarks */
.profile__services { margin-bottom: 36px; }
.profile__services h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-bottom: 16px; letter-spacing: -0.005em; }
.profile__services-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 0; }
.profile__service-item { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--charcoal); line-height: 1.5; padding: 11px 0 11px 24px; border-bottom: 1px solid var(--subtle-line); position: relative; }
.profile__service-item::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6454' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: contain; }
@media (max-width: 600px) { .profile__services-list { grid-template-columns: 1fr; column-gap: 0; } }

.profile__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--subtle-line); }
.profile__tag { font-size: 12px; font-weight: 400; padding: 6px 14px; border: 1px solid var(--subtle-line); color: var(--muted-gold); transition: all 0.3s; }
.profile__tag:hover { border-color: var(--muted-gold); background: var(--off-white); }
.profile__badge { font-size: 11px; font-weight: 500; padding: 6px 14px; background: var(--off-white); color: var(--muted-gold); }

/* Sidebar */
.profile__sidebar { position: sticky; top: 100px; align-self: start; }
.profile__contact { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.profile__action { display: block; text-align: center; padding: 14px 20px; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--subtle-line); color: var(--charcoal); transition: all 0.3s; }
.profile__action:hover { border-color: var(--muted-gold); color: var(--muted-gold); }
.profile__action--website { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.profile__action--website:hover { background: #1a1a1a; border-color: #1a1a1a; color: var(--white); }

/* Primary Contact CTA - prominent gold button */
.profile__cta { display: block; width: 100%; text-align: center; padding: 16px 20px; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; background: var(--muted-gold); color: var(--white); border: 1px solid var(--muted-gold); cursor: pointer; transition: all 0.25s; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.profile__cta:hover { background: var(--light-gold, #7d7665); border-color: var(--light-gold, #7d7665); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(107,100,84,0.18); }

/* Share button - small, secondary, sits inline */
.profile__share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px 16px; font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; background: transparent; color: var(--silver); border: 1px solid var(--subtle-line); cursor: pointer; transition: all 0.25s; }
.profile__share-btn:hover { color: var(--muted-gold); border-color: var(--muted-gold); }
.profile__share-btn svg { display: block; }

.profile__sidebar h3 { font-family: var(--font-display); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.profile__address, .profile__areas { margin-bottom: 24px; }
.profile__address p, .profile__areas p { font-size: 14px; color: var(--silver); line-height: 1.6; }
.profile__founded { font-size: 13px; color: var(--silver); margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--subtle-line); }

/* Social media icons row */
.profile__social { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--subtle-line); }
.profile__social-list { list-style: none; display: flex; gap: 14px; padding: 0; margin: 0; flex-wrap: wrap; }
.profile__social-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--silver); border: 1px solid var(--subtle-line); transition: all 0.25s; border-radius: 50%; }
.profile__social-link:hover { color: var(--muted-gold); border-color: var(--muted-gold); }
.profile__social-link svg { width: 16px; height: 16px; }

.profile__disclaimer { font-size: 12px; color: var(--silver); margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--subtle-line); line-height: 1.6; }
.profile__hours { margin-bottom: 24px; }
.profile__hours h3 { font-family: var(--font-display); font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.hours-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--silver); border-bottom: 1px solid var(--subtle-line); }
.hours-row:last-child { border-bottom: none; }
.hours-row span:first-child { color: var(--charcoal); font-weight: 500; }

/* Claim CTA: shown in sidebar when listing has no owner */
.profile__claim { background: var(--off-white); border: 1px solid var(--subtle-line); border-left: 3px solid var(--muted-gold); padding: 18px 18px 16px; margin-bottom: 24px; }
.profile__claim-title { font-family: var(--font-display); font-size: 15px; font-weight: 500; margin: 0 0 6px; color: var(--charcoal); }
.profile__claim-sub { font-size: 13px; color: var(--silver); margin: 0 0 14px; line-height: 1.6; }
.profile__claim-btn { width: 100%; padding: 11px 16px; font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; background: var(--muted-gold); color: var(--white); border: none; cursor: pointer; transition: background 0.25s; }
.profile__claim-btn:hover { background: #5a543e; }

/* Verified owner badge: subtle, gold-toned */
.profile__verified-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--subtle-line); font-size: 12px; font-weight: 500; color: var(--muted-gold); letter-spacing: 0.04em; }
.profile__verified-badge svg { flex-shrink: 0; }
.profile__verified-date { font-size: 11px; color: var(--silver); margin: 4px 0 0; font-weight: 300; }

@media (max-width: 768px) {
    .nav__links { display: none; }
    .profile__inner { grid-template-columns: 1fr; }
    .profile__sidebar { position: static; }
    .biz-grid { grid-template-columns: 1fr; }
}

/* AI-search content blocks (items 44, 45) */
.dir-intro { max-width: 760px; margin: 0 auto 32px; padding: 0 4px; }
.dir-intro p { font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--charcoal); }
.dir-summary { max-width: 760px; margin: 0 auto 40px; padding: 16px 20px; font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--silver); border-left: 2px solid var(--muted-gold); background: var(--off-white); }

/* Profile hero - immersive image-or-solid background with text overlay.
   Title and label sit left-aligned at the bottom over a dark gradient
   so the photo remains visible while the text stays legible. */
.profile-hero { position: relative; width: 100%; overflow: hidden; background: var(--charcoal); }
.profile-hero--image { aspect-ratio: 2.7 / 1; max-height: 480px; }
/* On narrower viewports the 2.7:1 ratio becomes too short for the overlaid
   title to feel substantive - bump to 5:4 (wider than square) so the photo
   has real presence and the title has room to breathe. */
@media (max-width: 720px) {
    .profile-hero--image { aspect-ratio: 5 / 4; max-height: none; }
}
.profile-hero--solid { padding: 100px 0 32px; min-height: 200px; display: flex; align-items: center; }
.profile-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.profile-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 90%, rgba(0,0,0,0.85) 100%); z-index: 1; }
.profile-hero--image .profile-hero__inner { position: absolute; inset: 0; z-index: 2; max-width: var(--content-max); margin: 0 auto; padding: 80px clamp(24px,5vw,80px) clamp(28px,4vw,40px); width: 100%; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; }
.profile-hero--solid .profile-hero__inner { position: relative; z-index: 2; max-width: var(--content-max); margin: 0 auto; padding: 0 clamp(24px,5vw,80px); width: 100%; color: var(--white); }
.profile-hero__label { font-size: 11px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-accent); margin-bottom: 12px; }
.profile-hero__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--white); }
.profile-hero__caption { max-width: var(--content-max); margin: 8px auto 0; padding: 0 clamp(24px,5vw,80px); font-size: 12px; color: var(--silver); font-weight: 300; font-style: italic; }

/* Mobile quick contact bar - hidden on desktop where the full sidebar is
   already visible to the right. On phones, sits right under the hero so
   users hit Call/Website/Contact before scrolling through description. */
.profile-quickbar { display: none; background: var(--white); border-bottom: 1px solid var(--subtle-line); position: sticky; top: 72px; z-index: 50; }
@media (max-width: 880px) { .profile-quickbar { display: block; } }
.profile-quickbar__inner { display: flex; gap: 0; max-width: var(--content-max); margin: 0 auto; }
.profile-quickbar__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px; font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal); background: transparent; border: none; border-right: 1px solid var(--subtle-line); cursor: pointer; text-decoration: none; transition: background 0.2s, color 0.2s; }
.profile-quickbar__btn:last-child { border-right: none; }
.profile-quickbar__btn:hover, .profile-quickbar__btn:active { background: var(--off-white); color: var(--muted-gold); }
.profile-quickbar__btn svg { flex-shrink: 0; }
.profile-quickbar__btn span { white-space: nowrap; }
.profile-quickbar__btn--call { color: var(--muted-gold); }

/* Profile sidebar logo - now displays the cropped square */
/* Logo box - fits to the natural aspect of the uploaded logo, capped at
   200px wide and 200px tall. Square logos look the same as before; wide
   wordmarks or tall stacked logos display in full without cropping. */
.profile__logo { margin: 0 auto 24px; padding: 12px; background: var(--off-white); display: flex; align-items: center; justify-content: center; max-width: 200px; max-height: 200px; overflow: hidden; }
.profile__logo img { max-width: 100%; max-height: 176px; width: auto; height: auto; object-fit: contain; display: block; }

/* Profile gallery - Masonry layout (JS-driven via masonry-layout) */
.profile__gallery { margin: 32px 0; }
.profile__gallery h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-bottom: 16px; }
.profile__gallery-masonry { position: relative; }
.profile__gallery-sizer, .profile__gallery-item { width: calc(33.333% - 8px); }
@media (max-width: 720px) { .profile__gallery-sizer, .profile__gallery-item { width: calc(50% - 6px); } }
@media (max-width: 460px) { .profile__gallery-sizer, .profile__gallery-item { width: 100%; } }
.profile__gallery-item { margin: 0 0 12px; float: left; background: var(--off-white); }
.profile__gallery-item img { width: 100%; height: auto; display: block; }
.profile__gallery-item figcaption { font-size: 12px; color: var(--silver); font-weight: 300; padding: 6px 8px 8px; line-height: 1.5; }

/* Profile videos */
.profile__videos { margin: 32px 0; }
.profile__videos h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-bottom: 16px; }
.profile__video { position: relative; background: #000; overflow: hidden; }
.profile__video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
/* Default 16:9 aspect ratio for standard horizontal video */
.profile__video::before { content: ""; display: block; padding-top: 56.25%; }
/* 9:16 aspect ratio for YouTube Shorts. Constrain max width so vertical videos
   don't take over the full layout on wide screens. */
.profile__video--short { max-width: 360px; margin-left: auto; margin-right: auto; }
.profile__video--short::before { padding-top: 177.78%; }
/* Primary video gets the full content width */
.profile__videos-primary { margin-bottom: 16px; }
.profile__videos-primary .profile__video { width: 100%; }
/* Secondary videos in a 2-up grid (or stacked on mobile) */
.profile__videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 720px) {
    .profile__videos-grid { grid-template-columns: 1fr; }
}

/* Profile map */
.profile__map-block { margin: 32px 0; }
.profile__map-block h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-bottom: 16px; }
.profile__map { width: 100%; height: clamp(260px, 40vw, 380px); background: var(--off-white); border: 1px solid var(--subtle-line); }
.profile__map .leaflet-container { font-family: var(--font-body); }
.profile__map-note { font-size: 12px; color: var(--silver); font-weight: 300; line-height: 1.6; margin-top: 8px; }

/* Verified at - smaller, near bottom */
.profile__verified { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--subtle-line); font-size: 11px; color: var(--silver); font-weight: 300; letter-spacing: 0.02em; }

/* Demoted Report link - smallest, plainest treatment */
.profile__report-link { display: block; width: 100%; text-align: left; font-family: var(--font-body); font-size: 11px; font-weight: 400; color: var(--silver); background: transparent; border: none; padding: 12px 0 0; cursor: pointer; transition: color 0.25s; letter-spacing: 0.02em; opacity: 0.75; }
.profile__report-link:hover { color: var(--muted-gold); opacity: 1; }

/* Modal infrastructure for B3 forms */
.fvd-modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; overflow-y: auto; }
.fvd-modal { background: var(--white); max-width: 520px; width: 100%; padding: 36px 32px; border: 1px solid var(--subtle-line); position: relative; max-height: calc(100vh - 40px); overflow-y: auto; }
.fvd-modal__title { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin: 0 0 8px; color: var(--charcoal); letter-spacing: -0.01em; padding-right: 36px; }
.fvd-modal__sub { font-size: 13px; color: var(--silver); font-weight: 300; line-height: 1.7; margin-bottom: 20px; }
.fvd-modal__hint { font-size: 12px; color: var(--silver); font-weight: 300; line-height: 1.6; margin: 8px 0 16px; font-style: italic; }
.fvd-modal-close { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 26px; line-height: 1; color: var(--silver); cursor: pointer; padding: 4px 10px; transition: color 0.2s; }
.fvd-modal-close:hover { color: var(--charcoal); }

.fvd-fld { margin-bottom: 14px; }
.fvd-fld label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 6px; color: var(--charcoal); }
.fvd-fld input, .fvd-fld textarea, .fvd-fld select { width: 100%; padding: 10px 14px; font-family: var(--font-body); font-size: 14px; font-weight: 300; border: 1px solid var(--subtle-line); background: var(--white); color: var(--charcoal); outline: none; transition: border-color 0.25s; }
.fvd-fld input:focus, .fvd-fld textarea:focus, .fvd-fld select:focus { border-color: var(--muted-gold); }
.fvd-fld textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.fvd-fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.fvd-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.fvd-modal-btn { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 22px; border: 1px solid var(--subtle-line); background: var(--white); color: var(--charcoal); cursor: pointer; transition: all 0.25s; }
.fvd-modal-btn:hover { border-color: var(--muted-gold); color: var(--muted-gold); }
.fvd-modal-btn--ghost { background: transparent; }
.fvd-modal-btn--primary { background: var(--muted-gold); color: var(--white); border-color: var(--muted-gold); }
.fvd-modal-btn--primary:hover { background: var(--light-gold); border-color: var(--light-gold); color: var(--white); }
.fvd-modal-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.fvd-msg { padding: 12px 14px; margin-bottom: 14px; font-size: 13px; font-weight: 300; line-height: 1.6; }
.fvd-msg--err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.fvd-msg--ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* Honeypot field: invisible to humans, visible to bots that fill all inputs */
.fvd-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

/* Toast for "copied" notification */
.fvd-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px); background: var(--charcoal); color: var(--white); padding: 12px 24px; font-size: 13px; font-weight: 400; letter-spacing: 0.04em; opacity: 0; transition: opacity 0.3s, transform 0.3s; z-index: 10000; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.fvd-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 600px) {
    .fvd-fld-row { grid-template-columns: 1fr; }
    .fvd-modal { padding: 28px 22px; }
}

/* Legal / policy pages (item 21) */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: clamp(40px,6vw,80px) clamp(24px,4vw,60px); }
.legal-wrap h2 { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 24px); font-weight: 400; letter-spacing: -0.01em; margin: 40px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--subtle-line); color: var(--charcoal); }
.legal-wrap h2:first-of-type { margin-top: 0; }
.legal-wrap h3 { font-family: var(--font-display); font-size: 16px; font-weight: 500; margin: 28px 0 12px; color: var(--charcoal); }
.legal-wrap p { font-size: 15px; line-height: 1.85; font-weight: 300; color: var(--charcoal); margin-bottom: 16px; }
.legal-wrap ul, .legal-wrap ol { font-size: 15px; line-height: 1.85; font-weight: 300; color: var(--charcoal); margin: 0 0 18px 24px; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap strong { font-weight: 500; color: var(--charcoal); }
.legal-wrap a { color: var(--muted-gold); text-decoration: underline; text-underline-offset: 3px; }
.legal-wrap a:hover { color: var(--charcoal); }
.legal-meta { font-size: 12px; color: var(--silver); font-weight: 300; padding: 14px 16px; background: var(--off-white); border-left: 2px solid var(--muted-gold); margin-bottom: 32px; line-height: 1.7; }
.legal-meta strong { color: var(--charcoal); font-weight: 500; }
.legal-toc { background: var(--off-white); padding: 20px 24px; margin-bottom: 36px; border: 1px solid var(--subtle-line); }
.legal-toc h3 { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; margin: 0 0 12px; color: var(--silver); }
.legal-toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.legal-toc li { margin-bottom: 6px; font-size: 14px; break-inside: avoid; }
.legal-toc a { color: var(--charcoal); text-decoration: none; }
.legal-toc a:hover { color: var(--muted-gold); text-decoration: underline; }
@media (max-width: 600px) { .legal-toc ul { columns: 1; } }

/* Footer disclaimer block (items 22, 29) */
.footer { padding: 48px 0 24px; background: var(--black); color: rgba(255,255,255,0.5); }
.footer__inner { display: block; }
.footer__disclaimer { max-width: var(--content-max); margin: 0 auto 28px; padding: 0 clamp(24px,4vw,60px); font-size: 12px; line-height: 1.8; font-weight: 300; color: rgba(255,255,255,0.55); }
.footer__disclaimer p { margin-bottom: 10px; }
.footer__disclaimer p:last-child { margin-bottom: 0; }
.footer__legal-links { max-width: var(--content-max); margin: 0 auto 24px; padding: 0 clamp(24px,4vw,60px); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; }
.footer__legal-links a { color: rgba(255,255,255,0.55); transition: color 0.25s; }
.footer__legal-links a:hover { color: var(--gold-accent); }
.footer__info-links { max-width: var(--content-max); margin: 0 auto 16px; padding: 0 clamp(24px,4vw,60px); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; font-weight: 400; }
.footer__info-links a { color: rgba(255,255,255,0.85); transition: color 0.25s; }
.footer__info-links a:hover { color: var(--gold-accent); }
.footer__legal-sep { color: rgba(255,255,255,0.25); }
.footer__bottom { max-width: var(--content-max); margin: 0 auto; padding: 16px clamp(24px,4vw,60px) 0; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__logo img { height: 32px; width: auto; max-width: 100%; display: block; }
.footer__copy { font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.4); }

/* Newsletter signup in footer (item 22 / 27) */
.footer__newsletter { max-width: var(--content-max); margin: 0 auto 28px; padding: 24px clamp(24px,4vw,60px); border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__newsletter h4 { font-family: var(--font-display); font-size: 13px; font-weight: 400; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); margin: 0 0 6px; }
.footer__newsletter p { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.5); margin: 0 0 14px; line-height: 1.7; max-width: 520px; }
.footer__nl-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; max-width: 520px; }
.footer__nl-form input[type="email"] { flex: 1; min-width: 220px; padding: 10px 14px; font-family: var(--font-body); font-size: 13px; font-weight: 300; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); color: var(--white); outline: none; transition: border-color 0.25s; }
.footer__nl-form input[type="email"]:focus { border-color: var(--gold-accent); }
.footer__nl-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.footer__nl-form button { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; padding: 10px 22px; background: var(--muted-gold); color: var(--white); border: 1px solid var(--muted-gold); cursor: pointer; transition: all 0.25s; }
.footer__nl-form button:hover { background: var(--light-gold); border-color: var(--light-gold); }
.footer__nl-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.footer__nl-msg { font-size: 11px; margin-top: 10px; font-weight: 300; max-width: 520px; }
.footer__nl-msg--ok { color: #88c79f; }
.footer__nl-msg--err { color: #e88; }
.footer__nl-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 11px; color: rgba(255,255,255,0.45); font-weight: 300; line-height: 1.6; max-width: 520px; cursor: pointer; }
.footer__nl-consent input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--muted-gold); }

/* Category-page real-estate disclaimer (item 37) */
.dir-re-disclaimer { max-width: 760px; margin: 0 auto 32px; padding: 14px 18px; font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--charcoal); background: var(--off-white); border-left: 2px solid var(--charcoal); }
.dir-re-disclaimer strong { font-weight: 500; }

/* Banned-phrase warning in submit form (item 38) */
.fld-warn { margin-top: 6px; padding: 8px 12px; font-size: 12px; font-weight: 300; line-height: 1.6; background: #fff7e6; border: 1px solid #f5d480; color: #6b4f12; }
.fld-warn strong { font-weight: 500; }

/* FAQ accordion (item 52) */
.dir-faq { max-width: 820px; margin: 0 auto; }
.dir-faq__item { background: var(--white); border: 1px solid var(--subtle-line); margin-bottom: 8px; transition: border-color 0.25s; }
.dir-faq__item[open] { border-color: var(--muted-gold); }
.dir-faq__q { padding: 18px 22px; font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--charcoal); cursor: pointer; list-style: none; position: relative; padding-right: 50px; line-height: 1.5; letter-spacing: -0.005em; }
.dir-faq__q::-webkit-details-marker { display: none; }
.dir-faq__q::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 200; color: var(--muted-gold); transition: transform 0.25s; }
.dir-faq__item[open] .dir-faq__q::after { content: '-'; }
.dir-faq__a { padding: 0 22px 20px; font-size: 14px; line-height: 1.85; color: var(--charcoal); font-weight: 300; }
.dir-faq__a p { margin-bottom: 12px; }
.dir-faq__a p:last-child { margin-bottom: 0; }

/* Related businesses + categories on profile pages (item 53) */
.related-block { margin-bottom: 36px; }
.related-block:last-child { margin-bottom: 0; }
.related-block__title { font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 22px); font-weight: 400; letter-spacing: -0.01em; margin-bottom: 22px; color: var(--charcoal); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.related-card { display: block; padding: 18px 20px; background: var(--white); border: 1px solid var(--subtle-line); text-decoration: none; transition: all 0.25s; }
.related-card:hover { border-color: var(--muted-gold); transform: translateY(-2px); }
.related-card h4 { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--charcoal); margin: 0 0 6px; line-height: 1.35; }
.related-card__city { font-size: 11px; color: var(--silver); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; margin: 0 0 10px; }
.related-card__desc { font-size: 12px; line-height: 1.6; color: var(--charcoal); font-weight: 300; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.related-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.related-chip { display: inline-block; padding: 9px 16px; font-size: 12px; font-weight: 400; letter-spacing: 0.04em; color: var(--charcoal); background: var(--white); border: 1px solid var(--subtle-line); text-decoration: none; transition: all 0.25s; }
.related-chip:hover { border-color: var(--muted-gold); color: var(--muted-gold); }

/* GRR service callout (item 28) */
.grr-callout { max-width: 760px; margin: 48px auto 0; padding: 28px 32px; background: var(--white); border: 1px solid var(--subtle-line); border-left: 3px solid var(--muted-gold); }
.grr-callout__head { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--muted-gold); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 12px; }
.grr-callout__body { font-size: 15px; font-weight: 300; line-height: 1.75; color: var(--charcoal); margin: 0 0 18px; }
.grr-callout__cta { display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal); text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--muted-gold); transition: color 0.25s; }
.grr-callout__cta:hover { color: var(--muted-gold); }

@media (max-width: 600px) {
    .grr-callout { padding: 22px 22px; margin-top: 36px; }
    .related-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .related-card { padding: 14px 16px; }
}

/* Landing search hero (item 19) */
.dir-hero--search { padding-bottom: 90px; }
.search-bar { display: flex; max-width: 640px; margin: 36px auto 0; gap: 0; box-shadow: 0 12px 40px rgba(0,0,0,0.18); }
.search-bar__input { flex: 1; padding: 18px 22px; font-family: var(--font-body); font-size: 16px; font-weight: 300; background: var(--white); border: none; outline: none; color: var(--charcoal); }
.search-bar__input::placeholder { color: var(--silver); }
.search-bar__btn { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 18px 32px; background: var(--muted-gold); color: var(--white); border: none; cursor: pointer; transition: background 0.25s; }
.search-bar__btn:hover { background: var(--light-gold); }

/* Hero CTA: prominent "List Your Business" below the search bar */
.dir-hero__cta { margin-top: 32px; text-align: center; }
.dir-hero__cta .dir-cta__btn { display: inline-block; }
.dir-hero__cta-note { margin: 14px 0 0; font-size: 12px; font-weight: 300; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); text-transform: uppercase; }

/* Filter bar (item 19) */
.dir-filters { background: var(--off-white); border-bottom: 1px solid var(--subtle-line); padding: 22px 0; }
.dir-filters__inner { max-width: var(--content-max); margin: 0 auto; padding: 0 clamp(24px,4vw,60px); display: flex; flex-wrap: wrap; gap: 22px 28px; align-items: flex-end; }
.dir-filter { display: flex; flex-direction: column; gap: 6px; }
.dir-filter--right { margin-left: auto; }
.dir-filter--trust { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
.dir-filter label, .dir-filter__label { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver); }
.dir-filter select { padding: 9px 14px; font-family: var(--font-body); font-size: 13px; font-weight: 400; background: var(--white); border: 1px solid var(--subtle-line); color: var(--charcoal); cursor: pointer; min-width: 180px; outline: none; transition: border-color 0.25s; }
.dir-filter select:focus { border-color: var(--muted-gold); }
.dir-filter__label { width: 100%; }
.dir-trust-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--white); border: 1px solid var(--subtle-line); cursor: pointer; font-size: 12px; font-weight: 400; letter-spacing: 0.02em; color: var(--charcoal); transition: all 0.25s; }
.dir-trust-pill:hover { border-color: var(--muted-gold); }
.dir-trust-pill input { accent-color: var(--muted-gold); margin: 0; }
.dir-trust-pill input:checked + span { color: var(--muted-gold); font-weight: 500; }

/* Search results region (item 19) */
.dir-section--results { padding-top: 44px; }
.dir-search__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.dir-search__status { font-family: var(--font-body); font-size: 13px; font-weight: 300; color: var(--charcoal); margin: 0; }
.dir-search__clear { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 16px; background: transparent; border: 1px solid var(--subtle-line); color: var(--silver); cursor: pointer; transition: all 0.25s; }
.dir-search__clear:hover { border-color: var(--muted-gold); color: var(--muted-gold); }
.fvd-search__empty { padding: 60px 20px; text-align: center; font-size: 15px; color: var(--silver); font-weight: 300; line-height: 1.7; }
.fvd-search__empty a { color: var(--muted-gold); text-decoration: underline; }
.dir-section__title-row { margin-bottom: 28px; }

/* Browse toggle (Category | Community) */
.dir-browse-toggle { display: inline-flex; gap: 0; margin: 0 auto 36px; padding: 4px; background: var(--off-white); border: 1px solid var(--subtle-line); justify-content: center; left: 50%; transform: translateX(-50%); position: relative; }
.dir-browse-toggle__btn { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 12px 28px; border: none; background: transparent; color: var(--silver); cursor: pointer; transition: all 0.25s; }
.dir-browse-toggle__btn:hover { color: var(--charcoal); }
.dir-browse-toggle__btn.is-active { background: var(--charcoal); color: var(--white); }
.dir-browse-panel { display: none; }
.dir-browse-panel.is-active { display: block; }

/* Larger trust badges on profile (more prominent) */
.profile__badge { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 18px; background: var(--off-white); color: var(--muted-gold); border: 1px solid var(--muted-gold); }

/* Trust badges on result cards */
.biz-card__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.biz-card__badge { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; background: var(--off-white); color: var(--charcoal); border: 1px solid var(--subtle-line); }

/* Inline newsletter signup (item 27) */
.dir-nl-inline { max-width: 760px; margin: 48px auto 0; padding: 26px 30px; background: var(--off-white); border: 1px solid var(--subtle-line); border-left: 3px solid var(--charcoal); }
.dir-nl-inline__head { margin-bottom: 16px; }
.dir-nl-inline__title { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--charcoal); margin: 0 0 6px; letter-spacing: -0.005em; }
.dir-nl-inline__body { font-size: 13px; line-height: 1.7; color: var(--charcoal); font-weight: 300; margin: 0; }
.dir-nl-inline__form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; position: relative; }
.dir-nl-inline__input { flex: 1; min-width: 220px; padding: 10px 14px; font-family: var(--font-body); font-size: 13px; font-weight: 300; background: var(--white); border: 1px solid var(--subtle-line); color: var(--charcoal); outline: none; transition: border-color 0.25s; }
.dir-nl-inline__input:focus { border-color: var(--muted-gold); }
.dir-nl-inline__input::placeholder { color: var(--silver); }
.dir-nl-inline__btn { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 22px; background: var(--muted-gold); color: var(--white); border: 1px solid var(--muted-gold); cursor: pointer; transition: all 0.25s; }
.dir-nl-inline__btn:hover { background: var(--light-gold); border-color: var(--light-gold); }
.dir-nl-inline__btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dir-nl-inline__consent { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: var(--silver); font-weight: 300; line-height: 1.6; cursor: pointer; }
.dir-nl-inline__consent input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--muted-gold); }
.fvd-nl-msg--inline { font-size: 12px; margin-top: 8px; font-weight: 300; }
.fvd-nl-msg--err-light { color: #b00020; }
.fvd-nl-msg--ok-light { color: #166534; }

@media (max-width: 700px) {
    .dir-filters__inner { gap: 16px 18px; }
    .dir-filter { width: 100%; }
    .dir-filter--right { margin-left: 0; }
    .dir-filter select { width: 100%; }
    .search-bar { flex-direction: column; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
    .search-bar__btn { padding: 14px 22px; }
    .dir-nl-inline { padding: 22px 22px; }
    .dir-nl-inline__form { flex-direction: column; }
    .dir-nl-inline__btn { width: 100%; }
    .dir-hero__cta { margin-top: 24px; }
    .dir-hero__cta .dir-cta__btn { display: block; width: 100%; padding: 16px 24px; }
}
