/* =========================================================
   SUMMITS INDEX - FULL MATERIAL UPGRADE
   ========================================================= */

   :root {
    --parchment: #fffdfa;
    --accent-gold: #FFCC00;
    --text-main: #2d3748;
    --text-light: #718096;
    --border-stone: #edf2f7;
    --ledger-dots: #cbd5e1;
  }
  
  .trail-container {
    max-width: 1200px; /* Wider for full desktop view */
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--parchment);
    box-sizing: border-box;
  }
  
  .trail-intro {
    margin-bottom: 40px;
    border-left: 5px solid var(--accent-gold);
    padding: 10px 0 10px 25px;
  }
  
  .trail-intro h2 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    color: var(--text-main);
  }
  
  /* 1. CONTROLS BAR (Search & Filter) */
  .controls-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid var(--border-stone);
  }
  
  .controls-bar input, 
  .controls-bar select {
    padding: 12px 16px;
    border: 1px solid var(--border-stone);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
  }
  
  .controls-bar input:focus {
    border-color: var(--accent-gold);
  }
  
  #summit-search {
    flex: 2;
  }
  
  #range-filter {
    flex: 1;
  }
  
  /* 2. MATERIAL TABLE LOGIC */
  .table-wrapper {
    overflow-x: auto;
  }
  
  .trail-table {
    width: 100%;
    border-collapse: separate; 
    border-spacing: 0 12px; /* Gap between cards */
    margin-top: -12px;
  }
  
  .trail-table thead th {
    padding: 15px 20px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    opacity: 0.5;
    border-bottom: 1px solid var(--border-stone);
  }
  
  .trail-table tbody tr {
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  }
  
  .trail-table tbody tr:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    background: #ffffff;
    z-index: 10;
  }
  
  .trail-table td {
    padding: 20px;
    vertical-align: middle;
  }
  
  /* Rounding the Card Corners */
  .trail-table td:first-child { border-radius: 15px 0 0 15px; }
  .trail-table td:last-child { border-radius: 0 15px 15px 0; }
  
  /* 3. COLUMN CONTENT STYLING */
  .summit-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .tag-range {
    display: inline-block;
    background: #fff5d6;
    border: 1px solid #ffeeba;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    color: #b08900;
    text-transform: uppercase;
  }
  
  .elev-pill {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
  }
  
  .elev-unit {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.4;
    margin-left: 4px;
  }
  
  .coords-text {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-light);
    text-align: right;
  }
  
  /* 4. PAGINATION */
  .pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 50px 0;
  }
  
  .nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-stone);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  }
  
  .nav-arrow:hover:not(:disabled) {
    background: var(--text-main);
    color: white;
    transform: scale(1.1);
  }
  
  .nav-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
  }
  
  #page-info {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
  }
  
  /* 5. SORTABLE HEADERS */
  .sortable {
    cursor: pointer;
    transition: color 0.2s;
  }
  
  .sortable:hover {
    color: var(--accent-gold);
    opacity: 1 !important;
  }
  
  /* 6. MOBILE STACKING */
  @media (max-width: 768px) {
    .trail-container {
      padding: 20px 10px;
    }
  
    .controls-bar {
      flex-direction: column;
      padding: 15px;
    }
  
    .trail-table, 
    .trail-table tbody, 
    .trail-table tr, 
    .trail-table td {
      display: flex;
      flex-direction: column;
      width: 100% !important;
      text-align: center;
      box-sizing: border-box;
    }
  
    .trail-table thead {
      display: none;
    }
  
    .trail-table tr {
      margin-bottom: 20px;
      padding: 20px;
      border: 1px solid var(--border-stone);
      border-radius: 16px;
    }
  
    .trail-table td {
      padding: 10px 0 !important;
      border: none !important;
    }
  
    .summit-name {
      justify-content: center;
      font-size: 1.4rem;
    }
  
    .elev-pill {
      justify-content: center;
    }
  
    .coords-text {
      text-align: center;
      margin-top: 10px;
    }
  }

  .col-description {
    width: 35%; /* Adjust based on preference */
  }
  
  .description-box {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-light);
    background: rgba(237, 242, 247, 0.4); /* Very light stone tint */
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--border-stone);
  }
  
  /* Mobile Adjustment: Make the description box full width in the card stack */
  @media (max-width: 768px) {
    .col-description {
      width: 100% !important;
      padding: 15px 0 !important;
    }
    
    .description-box {
      text-align: left;
      font-size: 14px;
    }
  }