/* company-contact-static.css */
* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      font-family: var(--font);
      color: #334155;
      background-color: #ffffff;
      line-height: 1.6;
    }
    
    a {
      text-decoration: none;
      color: inherit;
    }/* Layout: Split (Map left + Info right) */
    .co-split {
      display: flex;
      min-height: 500px;
    }
    .split-map {
      flex: 1.2;
      background: #f1f5f9;
    }
    .split-map iframe {
      width: 100%;
      height: 100%;
      min-height: 500px;
      border: 0;
      display: block;
    }
    .split-info {
      flex: 1;
      padding: 4rem 3rem;
      background: #ffffff;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .section-title {
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--dark);
      margin-bottom: 2rem;
      position: relative;
      padding-bottom: 0.5rem;
    }
    .section-title::after {
      content: '';
      display: block;
      width: 50px;
      height: 3px;
      background: var(--primary);
      position: absolute;
      bottom: 0;
      left: 0;
      border-radius: 0;
    }

    /* Layout: Grid (Cards + full width map below) */
    .detail-body {
      max-width: var(--content-width);
      margin: 4rem auto;
      padding: 0 1.5rem;
    }
    .map-section {
      margin-top: 4.5rem;
    }
    .map-section .section-title {
      margin-bottom: 1.5rem;
    }
    .map-frame {
      border-radius: 0;
      overflow: hidden;
      box-shadow: none;
      border: 1px solid #e2e8f0;
      background: #f1f5f9;
    }
    .map-frame iframe {
      width: 100%;
      height: 450px;
      border: 0;
      display: block;
    }

    /* Contact info list grid cards */
    .contact-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }
    .contact-card {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 0;
      padding: 1.5rem;
      display: flex;
      align-items: flex-start;
      gap: 1.25rem;
      box-shadow: none;
      transition: transform 0.2s, border-color 0.2s;
    }
    .contact-card:hover {
      transform: translateY(-2px);
      box-shadow: none;
      border-color: var(--primary);
    }
    .contact-card.wide {
      grid-column: span 2;
    }
    .cc-icon {
      width: 44px;
      height: 44px;
      background: var(--primary);
      color: #ffffff;
      border-radius: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      flex-shrink: 0;
      box-shadow: none;
    }
    .line-icon.cc-icon {
      font-weight: 800;
      font-size: 1.2rem;
      background: #06c755;
      box-shadow: none;
    }
    .cc-body {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }
    .cc-label {
      font-size: 0.8rem;
      font-weight: 700;
      color: #94a3b8;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .cc-value {
      font-size: 1rem;
      font-weight: 600;
      color: #334155;
      word-break: break-word;
    }
    a.cc-value {
      color: #1e293b;
      transition: color 0.18s;
    }
    a.cc-value:hover {
      color: var(--primary);
      text-decoration: underline;
    }

    /* Scroll top button */
    .scroll-top-btn {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      z-index: 200;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: none;
      background: var(--primary);
      color: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 16px rgba(0,0,0,.2);
      transition: opacity 0.2s, transform 0.2s;
      opacity: 0;
      pointer-events: none;
    }
    .scroll-top-btn.visible {
      opacity: 1;
      pointer-events: all;
    }

    /* ── Split Layout Enhancements ── */
    .co-split .contact-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    .co-split .contact-card.wide {
      grid-column: span 1;
    }

    /* ── Layout 3: Full-width Map + Floating Card (แผนที่เต็มความกว้างพร้อมการ์ดลอย) ── */
    .co-map-full-wrapper {
      position: relative;
      width: 100%;
      min-height: 680px;
      height: 680px;
      background: #f1f5f9;
      overflow: hidden;
    }
    .co-map-full-wrapper iframe {
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
    }
    .co-map-placeholder {
      width: 100%;
      height: 100%;
      background: #f1f5f9;
    }
    .co-floating-card-container {
      position: absolute;
      top: 50%;
      left: max(2.5rem, calc((100% - var(--content-width)) / 2));
      transform: translateY(-50%);
      width: 440px;
      max-width: calc(100% - 3rem);
      max-height: calc(100% - 60px);
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 0 !important;
      box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
      padding: 1.85rem 2rem;
      z-index: 10;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
    }
    .co-floating-header {
      margin-bottom: 1.15rem;
      padding-bottom: 0.85rem;
      border-bottom: 1px solid #f1f5f9;
    }
    .co-floating-badge {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      color: var(--primary);
      background: rgba(37, 99, 235, 0.08);
      padding: 3px 8px;
      border-radius: 0 !important;
      margin-bottom: 0.45rem;
      border-left: 3px solid var(--primary);
    }
    .co-floating-title {
      font-size: 1.38rem;
      font-weight: 700;
      color: #0f172a;
      margin: 0 0 0.2rem 0;
      font-family: var(--font);
      line-height: 1.25;
    }
    .co-floating-subtitle {
      font-size: 0.84rem;
      color: #64748b;
      margin-top: 0.15rem;
    }
    .co-floating-list {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      flex: 1;
    }
    .co-floating-item {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      padding: 0.65rem 0.8rem;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 0 !important;
      text-decoration: none;
      color: inherit;
      transition: all 0.18s ease;
    }
    a.co-floating-item:hover {
      background: #eff6ff;
      border-color: #93c5fd;
    }
    .co-floating-icon-box {
      width: 32px;
      height: 32px;
      background: #eff6ff;
      color: #2563eb;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      border-radius: 0 !important;
      font-size: 15px;
    }
    .co-floating-icon-box .material-icons {
      font-size: 17px;
    }
    .co-floating-icon-box.line-box {
      background: #06c755;
      color: #ffffff;
      font-weight: 800;
      font-size: 9px;
    }
    .co-floating-icon-box.fb-box {
      background: #1877f2;
      color: #ffffff;
    }
    .co-floating-icon-box.ig-box {
      background: #e1306c;
      color: #ffffff;
    }
    .co-floating-content {
      display: flex;
      flex-direction: column;
      gap: 1px;
      min-width: 0;
      flex: 1;
    }
    .co-floating-label {
      font-size: 0.68rem;
      font-weight: 700;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }
    .co-floating-val {
      font-size: 0.88rem;
      font-weight: 600;
      color: #0f172a;
      word-break: break-all;
      line-height: 1.35;
    }
    a.co-floating-item:hover .co-floating-val {
      color: var(--primary);
    }
    .co-floating-action-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 1.15rem;
      padding: 0.75rem 1.25rem;
      background: #0f172a;
      color: #ffffff !important;
      font-weight: 600;
      font-size: 0.88rem;
      text-decoration: none;
      border-radius: 0 !important;
      transition: all 0.2s ease;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
      border: none;
      flex-shrink: 0;
    }
    .co-floating-action-btn:hover {
      background: var(--primary);
      box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
      color: #ffffff !important;
    }
    .co-floating-action-btn .material-icons {
      font-size: 1.1rem;
    }

    /* Responsive */
    @media (max-width: 900px) {
      .co-split {
        flex-direction: column;
      }
      .split-info {
        padding: 3rem 1.5rem;
      }
      .split-map iframe {
        min-height: 350px;
      }
      .co-map-full-wrapper {
        display: flex;
        flex-direction: column-reverse;
        height: auto !important;
        min-height: auto !important;
      }
      .co-map-full-wrapper iframe {
        height: 380px !important;
      }
      .co-floating-card-container {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        box-shadow: none !important;
        border: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 2rem 1.5rem !important;
      }
    }
    @media (max-width: 768px) {
      .navbar-links {
        display: none;
      }
      .navbar-hamburger {
        display: block;
      }
      .contact-grid {
        grid-template-columns: 1fr;
      }
      .contact-card.wide {
        grid-column: span 1;
      }
    }