/* ============================================================
   MAPCO DESIGN SYSTEM — styles_new.css additions
   Market Map, Featured Companies, Directory
   ============================================================ */

   :root {
    --navy: #00243f;
    --navy-mid: #00407f;
    --orange: #ed7d31;
    --orange-light: #f5a06a;
    --cta: #ed7d31;
    --cta-hover: #d96b20;
    --cream: #faf8f4;
    --text: #1a1a1a;
    --muted: #6b7280;
    --border: #e5e2db;
  }
  
  /* =====================
     FEATURED COMPANIES GRID
  ===================== */
  .featured-companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }
  
  .featured-company-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  .featured-company-card:hover {
    border-color: var(--navy-mid);
    box-shadow: 0 4px 16px rgba(0,36,63,0.08);
  }
  
  .featured-card-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--cream);
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
  }
  
  .featured-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
  }
  
  .featured-card-info {
    flex: 1;
    min-width: 0;
  }
  
  .featured-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .featured-card-category {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .featured-card-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--orange);
    background: rgba(237,125,49,0.1);
    border: 1px solid rgba(237,125,49,0.2);
    padding: 2px 8px;
    border-radius: 3px;
  }
  
  .featured-card-arrow {
    font-size: 16px;
    color: var(--muted);
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
  }
  
  .featured-company-card:hover .featured-card-arrow {
    color: var(--navy);
    transform: translateX(3px);
  }
  
  /* =====================
     DIRECTORY SECTION HEADERS
  ===================== */
  .dir-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--navy);
  }
  
  .dir-section-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    color: var(--navy);
    font-weight: 400;
  }
  
  .dir-section-meta {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
  }
  
  /* =====================
     MARKET MAP
  ===================== */
  #market-map {
    font-family: 'DM Sans', -apple-system, sans-serif;
  }
  
  .main-category-box {
    margin-bottom: 32px;
  }
  
  .main-category-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--navy);
    padding: 10px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  
  .sub-category-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }
  
  .category-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  
  .category-box:hover {
    border-color: rgba(0,64,127,0.3);
    box-shadow: 0 2px 12px rgba(0,36,63,0.06);
  }
  
  .category-header {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: var(--navy);
    line-height: 1.3;
  }
  
  .category-header a {
    color: inherit;
    text-decoration: none;
  }
  
  .category-header a:hover {
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.5);
  }
  
  .company-list {
    list-style: none;
    padding: 6px 0;
    margin: 0;
  }
  
  .company-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 12px;
    border-bottom: 1px solid #f5f3ef;
    transition: background 0.1s;
  }
  
  .company-list li:last-child {
    border-bottom: none;
  }
  
  .company-list li:hover {
    background: var(--cream);
  }
  
  .company-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 6px;
    transition: color 0.15s;
  }
  
  .company-name:hover {
    color: var(--navy-mid);
  }
  
  .company-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  
  .company-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
  }
  
  .country-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    border-radius: 2px;
    opacity: 0.8;
  }
  
  .show-more {
    display: block;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
    text-align: center;
    background: rgba(237,125,49,0.04);
    border-top: 1px solid var(--border);
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.02em;
  }
  
  .show-more:hover {
    background: rgba(237,125,49,0.08);
    color: var(--cta-hover);
  }
  
  /* =====================
     MAP LINKS (Other Maps)
  ===================== */
  .map-link-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  
  .map-link-box:hover {
    border-color: var(--navy-mid);
    box-shadow: 0 2px 8px rgba(0,36,63,0.06);
  }
  
  .map-link-box--mapco {
    background: var(--navy);
    border-color: var(--navy);
    color: #ffffff;
  }
  
  .map-link-box--mapco:hover {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
  }
  
  .map-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
  }
  
  .map-badge-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
    display: block;
  }
  
  /* =====================
     RESPONSIVE
  ===================== */
  @media (max-width: 900px) {
    .featured-companies-grid {
      grid-template-columns: 1fr;
    }
  
    .sub-category-container {
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 8px;
    }
  
    .category-header {
      font-size: 10px;
      padding: 7px 10px;
    }
  
    .company-name {
      font-size: 11px;
    }
  }
  
  @media (max-width: 600px) {
    .featured-companies-grid {
      grid-template-columns: 1fr;
    }
  
    .sub-category-container {
      grid-template-columns: 1fr 1fr;
    }
  
    .category-header {
      font-size: 9px;
      padding: 6px 8px;
    }
  
    .company-name {
      font-size: 10px;
    }
  
    .company-list li {
      padding: 4px 8px;
    }
  
    .company-logo {
      width: 13px;
      height: 13px;
    }
  
    .country-icon {
      width: 12px;
      height: 12px;
    }
  
    .show-more {
      font-size: 10px;
      padding: 6px 8px;
    }
  }