/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, bsut keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
  body {
    overscroll-behavior-y: contain;
    margin: 0;
    padding: 0;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  /* iPhone-style bottom navigation */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    min-height: 70px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  .bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
      transparent 0%, 
      rgba(0, 0, 0, 0.1) 20%, 
      rgba(0, 0, 0, 0.1) 80%, 
      transparent 100%);
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #8e8e93;
    padding: 6px 16px;
    min-width: 70px;
    min-height: 50px;
    transition: color 0.2s ease;
    position: relative;
    flex: 1;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-item:active {
    opacity: 0.6;
  }

  .nav-icon {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
    line-height: 1;
    display: inline-block;
  }

  .nav-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1.2;
  }

  .nav-item.active {
    color: #007aff;
  }

  .nav-item.active .nav-icon {
    transform: scale(1.1);
  }

  /* Adjust map height to account for bottom nav */
  #map {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  @media (max-width: 768px) {
    body {
      padding-bottom: calc(75px + env(safe-area-inset-bottom));
    }

    .bottom-nav {
      padding: 10px 0;
      padding-bottom: calc(10px + env(safe-area-inset-bottom));
      min-height: 75px;
    }

    .nav-item {
      padding: 8px 12px;
      min-height: 55px;
    }

    .nav-icon {
      font-size: 26px;
      margin-bottom: 4px;
    }

    .nav-label {
      font-size: 10px;
    }

    #map {
      padding-bottom: calc(75px + env(safe-area-inset-bottom));
    }
  }

  @media (min-width: 769px) {
    .bottom-nav {
      max-width: 500px;
      left: 50%;
      transform: translateX(-50%);
      border-radius: 20px 20px 0 0;
    }
  }