/* ==========================================================================
   BLOCKISLAND.COM — PRODUCTION STYLESHEET (assets/css/styles.css)
   The Independent Island Telephone Directory, Classifieds & Maritime Registry
   ==========================================================================

   HOW THE 4 DIRECTORY TIERS WORK (Change 1 CSS class in index.html):
   --------------------------------------------------------------------------
   1. TIER 1 — STANDARD LINE LISTING (Default row inside .classified-columns):
      <div class="listing-entry">
        <div class="listing-top-row">
          <span class="listing-name">Business Name</span>
          <span class="listing-phone"><a href="tel:+14014660000">466-0000</a></span>
        </div>
        <div class="listing-details">Street Address &bull; Short description</div>
      </div>

   2. TIER 2 — HIGHLIGHTED LINE LISTING (Add "tier-highlight" class):
      <div class="listing-entry tier-highlight">
        <div class="listing-top-row">
          <span class="listing-name">Business Name</span>
          <span class="listing-phone"><a href="tel:+14014660000">466-0000</a></span>
        </div>
        <div class="listing-details">Street Address &bull; Featured description</div>
        <div class="listing-links"><a href="https://example.com" target="_blank" rel="noopener">example.com</a></div>
      </div>

   3. TIER 3 — HALF-WIDTH SPONSOR BOX AD (1-column box inside .box-ad-grid):
      <div class="box-ad tier-half">
        <div class="box-ad-tag">Category Tag</div>
        <div class="box-ad-title-row">
          <div class="box-ad-title">BUSINESS NAME</div>
          <div class="box-ad-phone"><a href="tel:+14014660000">(401) 466-0000</a></div>
        </div>
        <div class="box-ad-desc">2-3 lines of description here.</div>
        <div class="box-ad-footer">
          <span>Address, Block Island</span>
          <span><a href="https://example.com" target="_blank" rel="noopener">example.com</a></span>
        </div>
      </div>

   4. TIER 4 — FULL-WIDTH PREMIER FEATURE BOX (Spans 100% across both columns):
      <div class="box-ad tier-full">
        <div class="box-ad-tag">Premier Island Feature</div>
        <div class="box-ad-title-row">
          <div class="box-ad-title">BUSINESS NAME</div>
          <div class="box-ad-phone"><a href="tel:+19147152957">(914) 715-2957</a></div>
        </div>
        <div class="box-ad-body">
          <img src="assets/images/photo.webp" alt="..." width="160" height="106" class="box-ad-thumb" />
          <div class="box-ad-desc">Full description and credentials here.</div>
        </div>
        <div class="box-ad-footer">
          <span>Location: Block Island, RI</span>
          <span>Website: <a href="https://example.com" target="_blank" rel="noopener">www.example.com</a></span>
        </div>
      </div>
   ========================================================================== */

:root {
  --paper-bg: #FCFBF7;
  --paper-white: #FFFFFF;
  --ink-black: #111827;
  --ink-dark: #1F2937;
  --ink-muted: #374151;
  --rule-dark: #111827;
  --rule-light: #CBD5E1;
  --rule-dotted: #6B7280;
  --nautical-navy: #0A2240;
  --nautical-gold: #854D0E;
  --highlight-bg: #FEFCE8;
  --highlight-border: #CA8A04;
  --link-blue: #0A3D7A;
  --font-serif: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
  background-color: var(--paper-bg);
  color: var(--ink-black);
  font-family: var(--font-serif);
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

a {
  color: var(--link-blue);
  text-decoration: underline;
}

a:hover {
  color: #000000;
}

/* ==========================================================================
   LOCAL LUCIDE CSS ICONS (Usage: <i class="icon icon-anchor"></i>)
   ========================================================================== */
.icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-sun {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}

.icon-anchor {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22V8'/%3E%3Cpath d='M5 12H2a10 10 0 0 0 20 0h-3'/%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22V8'/%3E%3Cpath d='M5 12H2a10 10 0 0 0 20 0h-3'/%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3C/svg%3E");
}

.icon-bed {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4v16'/%3E%3Cpath d='M2 8h18a2 2 0 0 1 2 2v10'/%3E%3Cpath d='M2 17h20'/%3E%3Cpath d='M6 8v9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4v16'/%3E%3Cpath d='M2 8h18a2 2 0 0 1 2 2v10'/%3E%3Cpath d='M2 17h20'/%3E%3Cpath d='M6 8v9'/%3E%3C/svg%3E");
}

.icon-utensils {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2'/%3E%3Cpath d='M7 2v20'/%3E%3Cpath d='M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2'/%3E%3Cpath d='M7 2v20'/%3E%3Cpath d='M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7'/%3E%3C/svg%3E");
}

.icon-ship {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1 .6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1'/%3E%3Cpath d='M19.38 20A11.6 11.6 0 0 0 21 14l-9-4-9 4c0 2.9.94 5.34 2.81 7.76'/%3E%3Cpath d='M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6'/%3E%3Cpath d='M12 10v4'/%3E%3Cpath d='M12 2v3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1 .6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1'/%3E%3Cpath d='M19.38 20A11.6 11.6 0 0 0 21 14l-9-4-9 4c0 2.9.94 5.34 2.81 7.76'/%3E%3Cpath d='M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6'/%3E%3Cpath d='M12 10v4'/%3E%3Cpath d='M12 2v3'/%3E%3C/svg%3E");
}

.icon-music {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E");
}

.icon-trees {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z'/%3E%3Cpath d='M7 16v6'/%3E%3Cpath d='M13 19v3'/%3E%3Cpath d='M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z'/%3E%3Cpath d='M7 16v6'/%3E%3Cpath d='M13 19v3'/%3E%3Cpath d='M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5'/%3E%3C/svg%3E");
}

.icon-home {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8'/%3E%3Cpath d='M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8'/%3E%3Cpath d='M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}

.icon-camera {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E");
}

.icon-mail {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.icon-search {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}

/* ==========================================================================
   PAGE WRAPPER (8.5 x 11 Newspaper / Phone Book Proportions)
   ========================================================================== */
.directory-page {
  max-width: 1060px;
  margin: 24px auto;
  background: var(--paper-white);
  border: 1px solid var(--rule-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 36px 44px;
}

/* ==========================================================================
   NEWSPAPER / DIRECTORY MASTHEAD
   ========================================================================== */
.masthead {
  text-align: center;
  margin-bottom: 16px;
}

.masthead-topline {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.masthead-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.masthead-logo {
  width: 225px;
  height: 50px;
  object-fit: contain;
}

.masthead-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--nautical-navy);
  line-height: 1;
}

.masthead-subtitle {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.double-rule {
  height: 6px;
  border-top: 3px double var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  margin: 12px 0 16px;
}

/* Notice Box */
.notice-box {
  background: #F9FAFB;
  border: 1px solid var(--rule-dark);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.notice-box strong {
  color: var(--nautical-navy);
}

/* ==========================================================================
   LIVE MARINE, WEATHER, TIDES & FERRY TABLE
   ========================================================================== */
.conditions-table {
  width: 100%;
  border: 2px solid var(--rule-dark);
  border-collapse: collapse;
  background: var(--paper-white);
  margin: 0 auto 20px;
  font-size: 13px;
}

.conditions-table th {
  background: var(--nautical-navy);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  text-align: center;
}

.conditions-table td {
  width: 50%;
  border: 1px solid var(--rule-light);
  padding: 8px 12px;
  vertical-align: top;
}

.conditions-links {
  display: inline-block;
  margin-top: 3px;
  font-size: 11.5px;
}

.status-ok {
  color: #065F46;
  font-weight: 700;
}

.status-warn {
  color: #92400E;
  font-weight: 700;
}

.conditions-table td.conditions-disclaimer {
  width: 100%;
  background: #F8FAFC;
  font-size: 11.5px;
  color: #334155;
  padding: 6px 12px;
  line-height: 1.45;
}

/* ==========================================================================
   QUICK JUMP INDEX & SEARCH / TIER FILTER BAR
   ========================================================================== */
.pb-mobile-toggle {
  display: none;
}

.quick-index-bar {
  background: #F3F4F6;
  border: 1px solid var(--rule-light);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.quick-index-bar a {
  color: var(--ink-dark);
  text-decoration: none;
}

.quick-index-bar a:hover {
  text-decoration: underline;
  color: var(--link-blue);
}

.search-filter-box {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper-white);
  padding: 10px 12px;
  margin: 0 -12px 16px;
  border-top: 1px solid var(--rule-light);
  border-bottom: 2px solid var(--rule-dark);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  transition: box-shadow 0.15s ease;
}

.search-filter-box.is-stuck {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.11);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 11px;
  color: var(--ink-muted);
  pointer-events: none;
  width: 15px;
  height: 15px;
}

.search-filter-box input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 9px 70px 9px 34px;
  border: 1px solid var(--rule-dark);
  border-radius: 0;
  background: #FFFFFF;
  color: var(--ink-black);
  outline: none;
}

.search-filter-box input:focus {
  background: var(--highlight-bg);
}

.search-kbd-hint {
  position: absolute;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  background: #F3F4F6;
  border: 1px solid var(--rule-light);
  padding: 1px 6px;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 6px;
  background: var(--nautical-navy);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
}

.search-clear-btn:hover {
  background: #000000;
}

.tier-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
}

.tier-pill {
  background: #F3F4F6;
  color: var(--ink-dark);
  border: 1px solid var(--rule-light);
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.tier-pill.active,
.tier-pill:hover {
  background: var(--nautical-navy);
  color: #FFFFFF;
  border-color: var(--nautical-navy);
}

#search-match-count {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--nautical-navy);
  white-space: nowrap;
}

#directory-results-start,
#Weather,
#Tides {
  scroll-margin-top: 74px;
}

.search-empty-state {
  border: 2px dashed var(--rule-light);
  background: #F9FAFB;
  padding: 24px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  margin: 16px 0 24px;
}

.search-empty-state p {
  margin-bottom: 12px;
}

/* ==========================================================================
   CLASSIFIED SECTION HEADINGS
   ========================================================================== */
.section-heading-box {
  scroll-margin-top: 74px;
  background: var(--nautical-navy);
  color: #FFFFFF;
  padding: 7px 12px;
  margin: 32px 0 14px;
  border: 1px solid #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-heading-box h2 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0;
}

.section-heading-box .section-count {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
}

.subheading-rule {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--nautical-navy);
  border-bottom: 2px solid var(--rule-dark);
  padding-bottom: 3px;
  margin: 18px 0 10px;
}

/* ==========================================================================
   THE 4 DIRECTORY LISTING TIERS
   ========================================================================== */

/* Two-column phonebook flow for Tier 1 & Tier 2 line listings */
.classified-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 30px;
  align-items: start;
}

/* --- TIER 1: Standard Line Listing (.listing-entry) --- */
.listing-entry {
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule-light);
  font-size: 13.5px;
  break-inside: avoid;
}

.listing-entry:hover {
  background: #FAF9F0;
}

.listing-top-row {
  display: flex;
  align-items: baseline;
  width: 100%;
}

.listing-name {
  order: 1;
  font-weight: 700;
  color: var(--ink-black);
  white-space: nowrap;
}

/* Automatic dotted leader line ("Business Name . . . . . 466-XXXX") */
.listing-dots,
.listing-top-row:not(:has(.listing-dots))::after {
  content: "";
  order: 2;
  flex: 1;
  border-bottom: 1px dotted var(--rule-dotted);
  margin: 0 6px;
  min-width: 15px;
  height: 0;
  position: relative;
  top: -3px;
}

.listing-phone {
  order: 3;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-black);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.listing-phone a {
  color: var(--ink-black);
  text-decoration: none;
}

.listing-phone a:hover {
  text-decoration: underline;
  color: var(--link-blue);
}

.listing-details {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.listing-links {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 3px;
}

/* --- TIER 2: Highlighted Line Listing (.listing-entry.tier-highlight) --- */
.listing-entry.tier-highlight {
  background: var(--highlight-bg);
  border: 1px solid #E5E0B8;
  border-left: 4px solid var(--nautical-navy);
  padding: 8px 10px;
  margin: 3px 0;
}

.listing-entry.tier-highlight .listing-name {
  font-size: 14.5px;
  color: var(--nautical-navy);
}

/* --- TIER 3 & TIER 4: Display Classified Box Ads (.box-ad) --- */
.box-ad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0;
}

.box-ad {
  border: 2px solid var(--rule-dark);
  padding: 14px 16px;
  margin: 14px 0;
  background: #FFFFFF;
  position: relative;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.14);
}

/* Tier 3: Half-width box inside .box-ad-grid */
.box-ad-grid .box-ad,
.box-ad.tier-half {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Tier 4: Full-width premier feature box */
.box-ad.tier-full {
  border: 2px solid var(--nautical-navy);
  background: #F8FAFC;
  padding: 16px 18px;
  margin: 16px 0;
  box-shadow: 3px 3px 0 rgba(10, 34, 64, 0.18);
}

.box-ad-tag {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--nautical-navy);
  color: #FFFFFF;
  padding: 2px 7px;
  position: absolute;
  top: -10px;
  left: 14px;
}

.box-ad-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: 5px;
  margin-bottom: 8px;
  gap: 10px;
}

.box-ad-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--nautical-navy);
}

.box-ad.tier-full .box-ad-title {
  font-size: 18px;
}

.box-ad-phone {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.box-ad-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.box-ad-thumb {
  width: 160px;
  height: auto;
  border: 1px solid var(--rule-dark);
  flex-shrink: 0;
  display: block;
}

.box-ad-desc {
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink-dark);
  margin-bottom: 8px;
}

.box-ad-body .box-ad-desc {
  margin-bottom: 0;
}

.box-ad-footer {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--ink-muted);
  border-top: 1px dotted var(--rule-light);
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.webcam-preview-img {
  border: 1px solid var(--ink-black);
  margin: 6px 0 8px;
  max-width: 280px;
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   DIRECTORY LISTING & TIER UPGRADE INQUIRY FORM
   ========================================================================== */
.directory-form-box {
  border: 2px solid var(--nautical-navy);
  background: var(--highlight-bg);
  padding: 18px 20px;
  margin: 28px 0 10px;
}

.directory-form-box h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--nautical-navy);
  margin-bottom: 6px;
}

.directory-form-box p {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-dark);
  margin-bottom: 12px;
}

.directory-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.directory-form-grid input,
.directory-form-grid select,
.directory-form-grid textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--rule-dark);
  background: #FFFFFF;
  color: var(--ink-black);
}

.directory-form-grid .full-span {
  grid-column: 1 / -1;
}

.directory-submit-btn {
  background: var(--nautical-navy);
  color: #FFFFFF;
  border: none;
  padding: 9px 20px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
}

.directory-submit-btn:hover {
  background: #1E3A8A;
}

/* ==========================================================================
   DIRECTORY FOOTER
   ========================================================================== */
.directory-footer {
  margin-top: 36px;
  border-top: 3px double var(--rule-dark);
  padding-top: 14px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.65;
}

.directory-footer strong {
  color: var(--ink-black);
}

.footer-nav-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE MOBILE & TABLET LAYOUT
   ========================================================================== */
@media (max-width: 768px) {
  .directory-page {
    margin: 8px;
    padding: 18px 14px;
  }

  .conditions-table,
  .conditions-table tbody,
  .conditions-table tr,
  .conditions-table td {
    display: block;
    width: 100%;
  }

  .pb-mobile-toggle {
    display: block;
    width: 100%;
    background: var(--nautical-navy);
    color: #FFFFFF;
    border: 1px solid #000000;
    padding: 9px 14px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 12px;
  }

  .quick-index-bar {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }

  .quick-index-bar.nav-open {
    display: flex;
  }

  .quick-index-bar span {
    display: none;
  }

  .classified-columns,
  .box-ad-grid,
  .directory-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .masthead-topline {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .masthead-title-row {
    flex-direction: column;
    gap: 8px;
  }

  .masthead-title {
    font-size: 26px;
    letter-spacing: 1px;
  }

  .box-ad-body {
    flex-direction: column;
  }

  .box-ad-thumb {
    width: 100%;
    max-width: 240px;
  }

  .listing-top-row,
  .box-ad-title-row,
  .section-heading-box {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .listing-name {
    white-space: normal;
  }
}

