/**
 * Location Chooser Styles
 * Styles for location modal, indicator, and filtering
 */

/* ========================================
   Location Modal
   ======================================== */

   .location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .location-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 20, 60, 0.85);
    backdrop-filter: blur(4px);
  }
  
  .location-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
  }
  
  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .location-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
  }
  
  .location-modal-header h3 {
    color: #5B2E91;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
  }
  
  .location-modal-header p {
    color: #6b7280;
    font-size: 1.25rem;
    margin: 0;
  }
  
  .location-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .location-modal-close:hover {
    background-color: #f3f4f6;
    color: #5B2E91;
  }
  
  .location-modal-body {
    padding: 2rem;
  }
  
  .location-modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
  }
  
  /* ========================================
     Location Cards
     ======================================== */
  
  .location-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .location-card {
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
  }
  
  .location-card:hover {
    border-color: #F7931E;
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.15);
    transform: translateY(-2px);
  }
  
  .location-card-header {
    margin-bottom: 1rem;
  }
  
  .location-card-title {
    color: #5B2E91;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
  }
  
  .location-card-address {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .location-card-body {
    flex: 1;
    margin-bottom: 1rem;
  }
  
  .location-card-intro {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  
  .location-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .location-card-phone,
  .location-card-hours {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .location-icon {
    flex-shrink: 0;
    color: #F7931E;
    margin-top: 0.125rem;
  }
  
  .location-card-footer {
    margin-top: auto;
  }
  
  .location-select-btn {
    width: 100%;
    background-color: #5B2E91;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .location-select-btn:hover {
    background-color: #4a2573;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(91, 46, 145, 0.2);
  }
  
  .location-select-btn:active {
    transform: translateY(0);
  }
  
  /* ========================================
     Location Indicator (Header)
     ======================================== */
  
  .location-indicator {
    display: flex;
    align-items: center;
    margin-right: 1rem;
  }
  
  .location-indicator-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
  }
  
  .location-indicator-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .location-indicator-btn .location-icon {
    color: #F7931E;
  }
  
  .location-chevron {
    transition: transform 0.2s ease;
  }
  
  .location-indicator-btn:hover .location-chevron {
    transform: translateY(2px);
  }
  
  /* ========================================
     View All Button
     ======================================== */
  
  .location-view-all {
    background: none;
    border: none;
    color: #5B2E91;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    text-decoration: underline;
  }
  
  .location-view-all:hover {
    color: #4a2573;
    text-decoration: none;
  }
  
  /* ========================================
     Location Filtered Content
     ======================================== */
  
  .location-filtered {
    display: none !important;
  }
  
  /* ========================================
     Responsive Styles
     ======================================== */
  
  /* Tablet and below - Stack header elements */
  @media (max-width: 991px) {
    .right-header {
      justify-content: flex-end !important;
    }
    
    #header-booking-btn,
    #mobile-booking-btn {
      font-size: 0.875rem;
      padding: 0.5rem 1rem;
      white-space: nowrap;
    }
  }
  
  /* Mobile - Better spacing */
  @media (max-width: 768px) {
    .location-modal-content {
      width: 95%;
      max-height: 95vh;
      border-radius: 12px;
    }
  
    .location-modal-header {
      padding: 1.5rem 1.5rem 1rem;
    }
  
    .location-modal-header h3 {
      font-size: 1.5rem;
      padding-right: 2rem;
    }
  
    .location-modal-header p {
      font-size: 0.875rem;
    }
  
    .location-modal-body {
      padding: 1.5rem;
    }
  
    .location-cards {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  
    .location-card {
      padding: 1.25rem;
    }
  
    .location-indicator {
      margin-right: 0.5rem;
    }
    
    .location-indicator-btn {
      padding: 0.375rem 0.75rem;
      font-size: 0.8125rem;
    }
  
    .location-indicator-btn span {
      max-width: 100px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    #header-booking-btn,
    #mobile-booking-btn {
      font-size: 0.75rem;
      padding: 0.4rem 0.75rem;
    }
  }
  
  @media (max-width: 480px) {
    .location-modal-header h3 {
      font-size: 1.25rem;
    }
  
    .location-card-title {
      font-size: 1.125rem;
    }
  
    .location-indicator {
      margin-right: 0.25rem;
    }
    
    .location-indicator-btn {
      padding: 0.3rem 0.5rem;
      font-size: 0.75rem;
    }
    
    .location-indicator-btn span {
      max-width: 200px;
    }
    
    #header-booking-btn,
    #mobile-booking-btn {
      font-size: 0.7rem;
      padding: 0.35rem 0.6rem;
    }
  }
  
  /* ========================================
     Print Styles
     ======================================== */
  
  @media print {
    .location-modal,
    .location-indicator {
      display: none !important;
    }
  }
  
  /* ========================================
     Accessibility
     ======================================== */
  
  .location-modal-close:focus,
  .location-select-btn:focus,
  .location-indicator-btn:focus,
  .location-view-all:focus {
    outline: 2px solid #F7931E;
    outline-offset: 2px;
  }
  
  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .location-modal-content {
      animation: none;
    }
  
    .location-card,
    .location-select-btn,
    .location-indicator-btn,
    .location-chevron {
      transition: none;
    }
  }
  
  /* ========================================
     Custom Responsive Display for Booking Button
     ======================================== */
  
  /* Default: Hide below 500px */
  #header-booking-btn {
    display: none;
  }
  
  /* Show between 500px and 990px */
  @media (min-width: 500px) and (max-width: 989px) {
    #header-booking-btn {
      display: inline-block !important;
    }
  }
  
  /* Hide between 990px and 1440px */
  @media (min-width: 990px) and (max-width: 1439px) {
    #header-booking-btn {
      display: none !important;
    }
  }
  
  /* Show above 1440px */
  @media (min-width: 1440px) {
    #header-booking-btn {
      display: inline-block !important;
    }
  }