/* prototype css */
body {
    font-family: 'Noto Sans', sans-serif;
    background-color: #f4f3e8;
    margin: 0;
    padding: 0;
    color: #4b543b;
  }
  
  /* Main Layout */
  main {
    padding: 3rem 1rem;
    max-width: 600px;
    margin: auto;
    text-align: center;
  }

  /* Progress Bar Styles */
  .progress-bar {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 3rem;
    padding: 0 2rem;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .progress-bar.hidden {
    display: none;
  }
  
  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 150px;
  }
  
  .step-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
  }
  
  .step.active .step-text {
    color: #4b543b;
    font-weight: 600;
  }
  
  .step-line {
    height: 5px;
    background-color: #b4d2ba;
    width: 100%;
    border-radius: 2px;
    transition: background-color 0.3s ease;
  }
  
  .step.active .step-line {
    background-color: #4b543b;
  }
  
  /* Headings */
  h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
  }
  
  /* Filter Selection Buttons Grid */
  .filter-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto 2.5rem auto;
  }
  
  /* All Buttons */
  button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 400;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  /* Type 2 Buttons: Filter Selection + Option Buttons */
  .filter-buttons button,
  .option-btn {
    background-color: #b4d2ba;
    color: #4b543b;
    transition: background-color 0.3s ease;
  }
  
  .filter-buttons button:hover,
  .option-btn:hover {
    background-color: #97b9ae;
    color: #4b543b;
    transform: translateY(-2px);
  }
  
  .option-btn.selected {
    background-color: #dce2aa;
    color: #4b543b;
  }
  
  /* Type 1 Buttons: Skip & Confirm */
  .confirm-btn {
    background-color: #4b543b;
    color: #f3f4e4;
    width: 50%;
    max-width: 200px;
    display: block;
    margin: 0 auto;
    transition: background-color 0.3s ease;
  }
  
  .skip-btn:hover,
  .confirm-btn:hover {
    background-color: #000000;
    color: #f3f4e4;
    transform: translateY(-2px);
  }
  
  /* Uniform  buttons */
  .filter-buttons button {
    width: 200px; /* Ensures uniform width */
    text-align: center;
  }
  
  /* Filter Options Grid */
  .options-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem 2rem;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
  }
  
  /* Cuisine Option Buttons */
  .option-btn {
    background-color: #b4d2ba;
    color: #4b543b;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    width: 140px;
    text-align: center;
    transition: background-color 0.3s ease;
    margin: 1rem; 
  }
  
  .option-btn:hover {
    background-color: #97b9ae;
    color: #4b543b;
  }
  
  #cuisine-grid {
    /* turn it into a responsive grid that auto–fits */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  
    /* the first value = row gap, second = column gap */
    gap: 2rem 2.5rem;
  
    /* keep the whole block centred in its section */
    max-width: 600px;          /* tweak as you like */
    margin: 0 auto 3rem auto;  /* centers horizontally, adds space below */
    justify-items: center;     /* centre each button inside its cell */
  }
  /* Distance, Price, and Rating Inputs */
  input[type="number"],
  input[type="text"] {
    padding: 0.75rem;
    font-size: 1rem;
    width: 80%;
    max-width: 300px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-bottom: 2rem;
  }
  
  /* Hidden Sections */
  .hidden {
    display: none;
  }

  /* Fade-in animation for filter options */
  .filter-options {
    animation: fadeIn 0.4s ease-in-out;
  }

  .price-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .price-btn {
    width: 80px;
    height: 80px;
    font-size: 1.4rem;
    font-weight: 500;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .star-rating {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  
  .star {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
  }
  
  .star.selected {
    opacity: 1;
    transform: scale(1.1);
  }

  #summary {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 2.5rem;
    background-color: #f4f3e8;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  #summary.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
  }
  
  #summary h2 {
    color: #4b543b;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
  }
  
  #summary ul {
    list-style: none;
    padding: 0;
    width: 100%;
    margin-bottom: 2rem;
  }
  
  #summary li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border-radius: 8px;
    font-size: 1.1rem;
  }
  
  #summary li span {
    color: #4b543b;
    font-weight: 500;
  }
  
  #done-btn {
    background-color: #4b543b;
    color: #f3f4e4;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  #done-btn:hover {
    background-color: #000000;
    transform: translateY(-2px);
  }
  
  @keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
  }
  
  /* Mobile Layout Notes
   Need to add scrollable contianer for cuisine
   */
   
  /* Mobile Layout */
  @media (max-width: 550px) {
    main {
      padding: 3rem 2rem;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .filter-container {
      width: 100%;
    }

    .progress-bar {
      padding: 0 1rem;
      margin-bottom: 2rem;
      max-width: 100%;
    }
    
    .step {
      max-width: none;
      margin: 0;
      padding: 0 0.5rem;
    }
    
    .step-text {
      font-size: 1.1rem;
      font-weight: 500;
      margin-bottom: 0.5rem;
      white-space: nowrap;
    }
    
    .step-line {
      height: 4px;
      width: calc(100% + 1rem);
      margin-left: -0.5rem;
    }

    .filter-buttons {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      width: 100%;
      max-width: 350px;
      justify-items: center;
    }

    .filter-buttons button {
      width: 100%;
      max-width: 300px;
    }

    .confirm-btn {
      width: 100%;
      max-width: 250px;
    }
  
    .options-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
      max-height: 300px;
      overflow-y: auto;
      padding: 1rem;
      margin-bottom: 1rem;
      max-width: 300px;
      justify-items: center;
    }
  
    .option-btn {
      width: 100%;
      max-width: 250px;
    }

    .price-options {
      flex-direction: column;
      align-items: center;
      gap: 0;
      max-width: 200px;
      margin: 0 auto 2rem auto;
    }
    
    .price-btn {
      width: 80px;
      height: 80px;
      font-size: 1.6rem;
    }

    .star {
      width: 32px;
      height: 32px;
    }
  
    .star.selected {
      transform: scale(1.05);
    }

    #summary {
      padding: 1.5rem;
      margin: 1rem;
      width: 80%;
    }

    #summary h2 {
      font-size: 1.5rem;
    }

    #summary li {
      font-size: 1rem;
      padding: 0.5rem 0.75rem;
    }

    #done-btn {
      width: 100%;
      justify-content: center;
      font-size: 1.1rem;
    }
  }
  