/* =========================
   THEME VARIABLES
   ========================= */
:root {
  --primary-green:  #7AA21A;
  --primary-blue: #007A8A;
  --primary-emerald: #007A31;
  --primary-light-blue: #C0E6E6;
  --primary-light-gray: #E0E0E0;

  --alt-blue: #007F80;
  --alt-light-blue: #78BDBE;
  --alt-lighter-blue: #A8D8D8;
  --alt-white: #ffffff;

  --secondary-color: #6c757d;
  --background-color: #ececec;
  --text-color: #333333;

  --font-primary: 'Titillium Web', sans-serif;
  --font-secondary: 'Saira', sans-serif;
}

/* =========================
   GLOBAL RESET & BASE
   ========================= */
html, body {
  height: 100%;
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--background-color);
  padding-top: 60px;
  padding-bottom: 150px;
  line-height: 1.3rem;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
}

p, span, a, li {
  font-family: var(--font-secondary);
  font-weight: 400;
}

h1 { font-size: 1.75rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { font-size: 1rem; margin-bottom: 1rem; }
span { font-size: 1rem; margin-bottom: 1rem; }

/* =========================
   GOOGLE MATERIAL ICON
   ========================= */
.material-symbols-outlined {
  font-size: 30px;
  color: var(--alt-blue);
  margin: 0;
}

/* =========================
   MATERIAL ICON OVERRIDES
   ========================= */
   .material-symbols-outlined.search-icon {
    color: #000 !important;
  }
  
  .material-symbols-outlined.filter-icon {
    color: #fff !important;
  }
  

.activity-btn .material-symbols-outlined {
  font-size: 50px;
  color: var(--alt-white);
}

/* =========================
   LOADING SCREEN
   ========================= */
.loading-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--alt-white);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.loading-page img {
  width: 120px;
  max-width: 60vw;
  margin-bottom: 1.5rem;
}

/* =========================
   HEADER
   ========================= */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 60px;
  background: var(--alt-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  z-index: 100;
}

.app-header h1 {
  color: var(--alt-white);
}

.app-header .material-symbols-outlined {
  color: var(--alt-white);
}

/* Back link styles */
.back-link {
  color: var(--alt-white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  color: var(--alt-white);
  opacity: 0.8;
}

.back-link .material-symbols-outlined {
  font-size: 1.5rem;
  line-height: 1;
}

.header-logo {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--alt-blue);
  font-size: 1.2rem;
}

.route-start-button {
  /* Customizable properties */
  --button-bg: var(--primary-blue);
  --button-color: white;
  --button-padding: 0.75rem 1.5rem;
  --button-border-radius: 0.5rem;
  --button-font-size: 1.1rem;
  --button-font-weight: 600;
  --button-hover-bg: var(--alt-blue);
  --button-transition: all 0.3s ease;
  
  background-color: var(--button-bg);
  color: var(--button-color);
  padding: var(--button-padding);
  border-radius: var(--button-border-radius);
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  transition: var(--button-transition);
  border: none;
  cursor: pointer;
}

/* =========================
   BOTTOM NAVIGATION
   ========================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 110px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  z-index: 100;
  padding-top: 12px;
}

.nav-link {
  text-decoration: none;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  color: #005775;
  font-family: var(--font-secondary);
  font-weight: 500;
  background: none;
  box-shadow: none;
  border-radius: 50%;
  padding: 0;
  margin: 0 8px;
  min-width: 80px;
}

.nav-item .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  width: 56px;
  height: 56px;
}

.nav-item.active .nav-icon {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  color: #014157;
  border: 2.5px solid #D9F1F1;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-label {
  font-size: 1.1rem;
  color: #111;
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-top: 2px;
  text-align: center;
}

/* =========================
   FLOATING BUTTON
   ========================= */
.fixed-bottom-button-container {
  position: fixed;
  bottom: 120px;
  left: 0;
  width: 100vw;
  padding: 1rem;
  background-color: var(--alt-white);
  z-index: 80;
  /* Customizable properties */
  --button-container-padding: 1rem;
  --button-container-bg: var(--alt-white);
  --button-container-shadow: none;
  padding: var(--button-container-padding);
  background-color: var(--button-container-bg);
  box-shadow: var(--button-container-shadow);
}

/* =========================
   LIMI THE EEND PICTURE
   ========================= */
.limi-container {
  /* Customizable properties */
  --limi-width: 300px;
  --limi-height: 336px;
  --limi-margin: 3rem auto;
  margin: var(--limi-margin);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  left: 5%;
  right: 10%;
}

/* =========================
   WELCOME SECTION
   ========================= */
.welcome-text {
  /* Customizable properties */
  --welcome-text-margin: 0.2rem auto 4rem;
  --welcome-text-max-width: 600px;
  --welcome-text-align: center;
  --welcome-text-font-size: 1.2rem;
  --welcome-text-color: var(--text-color);
  
  margin: var(--welcome-text-margin);
  padding: var(--welcome-text-padding);
  max-width: var(--welcome-text-max-width);
  text-align: var(--welcome-text-align);
  font-size: var(--welcome-text-font-size);
  color: var(--welcome-text-color);
}

/* =========================
   ACTIVITY BUTTONS
   ========================= */
.activity-btn {
  background: var(--primary-green);
  color: #fff;
  border: none;
  border-radius: 1rem;
  font-size: 1.1rem;
  font-family: var(--font-secondary);
  font-weight: 600;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.2s;
}

.activity-btn:focus {
  background: var(--primary-emerald);
}

/* =========================
   MASCOT SECTION
   ========================= */
.mascot-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 30px;
  right: 20px;
}

.mascot-img {
  width: 90px;
  height: auto;
  margin: 50rem;
}

/* =========================
   SPEECH BUBBLE
   ========================= */
.speech-bubble {
  position: relative;
  bottom: 190px;
  left: 150px;
  background: #fff;
  border-radius: 1.2em;
  padding: 0.5em 1.1em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: 1rem;
  color: var(--text-color);
  font-family: var(--font-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.speech-bubble:after {
  content: '';
  position: absolute;
  left: -18px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 18px solid #fff;
  filter: drop-shadow(-2px 2px 2px rgba(0,0,0,0.04));
}
/*====================== 
SEARCH BAR & FILTER BUTTON
 ======================*/
 .search-bar .input-group{
  margin-top: 15px;
  z-index: 1;  
}

.btn.filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  font-size: 1.1rem;
  gap: 0.25rem;
}

.btn.filter-btn .material-symbols-outlined {
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn.filter-btn span {
  display: flex;
  align-items: center;
  margin: 0;
}

/* =========================
   INPUT GROUP STYLES
   ========================= */
   .input-group .form-control,
   .input-group-text,
   .btn.filter-btn {
     height: 48px;
     min-height: 48px;
     display: flex;
     align-items: center;
     padding-top: 0;
     padding-bottom: 0;
     font-size: 1.1rem;
   }
   
   .input-group-text {
     justify-content: center;
   }
   
   .btn.filter-btn {
     justify-content: center;
     border-radius: 2rem !important; /* Ensure rounded corners for filter button */
   }
   
   .btn.filter-btn .material-symbols-outlined {
     vertical-align: middle;
     display: inline-flex;
     align-items: center;
     font-size: 1.5rem;
     margin-bottom: 0; 
     line-height: 1; /* Ensure consistent line height for vertical alignment */
   }
   
   .btn.filter-btn span {
     display: flex;
     align-items: center;
     line-height: 1; /* Ensure consistent line height for vertical alignment */
   }

/* =========================
   BADGE STYLES
   ========================= */
.badge {
  border-radius: 1.2rem !important;
  padding-left: 0.85em;
  padding-right: 0.85em;
  padding-top: 0.4em;
  padding-bottom: 0.4em;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.badge:active,
.badge.active {
  background-color: var(--primary-green) !important;
  color: white !important;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.bg-light {
  background-color: var(--alt-lighter-blue) !important;
}

.text-primary {
  color: var(--text-color) !important;
}

/* =========================
   FILTER OVERLAY MODAL
   ========================= */
.filter-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.2s;
}

.filter-modal-content {
  background: #fff;
  max-width: 100%;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.10);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  animation: slideUp 0.35s cubic-bezier(.4,1.6,.6,1) both;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  opacity: 0.7;
}

.btn-close:after {
  content: '\00d7';
  font-size: 2rem;
  color: #333;
}

/* Hide overlay by default */
.filter-overlay.d-none {
  display: none !important;
}

/* =========================
   FILTER OVERLAY SEARCH BARS
   ========================= */
#filterOverlay .input-group .form-control {
  border-radius: 0 1.2rem 1.2rem 0;
  border: 1.5px solid #b5b5b5 !important;
}

#filterOverlay .input-group .form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.1rem var(--primary-light-blue);
}

#filterOverlay .input-group .input-group-text {
  border-radius: 1.2rem 0 0 1.2rem;
  border: 1.5px solid #b5b5b5 !important;
}

/* =========================
   ROUTE DETAILS CARD & ROUTE DETAILS ACTIONS
   ========================= */
.route-details-section {
  display: flex;
  justify-content: center;
}

.route-details-card {
  background: var(--alt-white);
  border-radius: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.route-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.route-tag {
  background: var(--alt-lighter-blue);
  color: var(--text-color);
  border-radius: 2rem;
  padding: 0.4em 1.2em;
  font-size: 1.1rem;
  font-family: var(--font-secondary);
  font-weight: 600;
}

.route-details-map {
  min-width: 160px;
  max-width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.route-map-img {
  aspect-ratio: 1/1;
  border-radius: 1rem;
  background: var(--primary-light-blue);
  object-fit: cover;
  margin: 0.2rem;
}

.route-details-actions {
  max-width: 600px;
  width: 100%;
  margin: 0;
}

/*Save button*/
.route-save-btn {
  background: var(--alt-lighter-blue);
  color: var(--text-color);
  border: none;
  border-radius: 1.2rem;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: none;
  transition: background 0.2s;
  min-width: 200px;
  justify-content: center;
}

.route-save-btn .material-symbols-outlined {
  color: #111;
  font-size: 2rem;
}

.route-save-btn:focus {
  background: var(--alt-light-blue);
}
/*Start button*/
.route-start-btn span{
  margin: 0%;
}

.route-save-btn span{
  margin: 0%;
}

.route-start-btn {
  background: var(--primary-green);
  color: #fff;
  border: none;
  border-radius: 1.2rem;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: none;
  transition: background 0.2s;
  min-width: 200px;
  justify-content: center;
}

.route-start-btn .material-symbols-outlined {
  color: #fff;
  font-size: 2rem;
}

.route-start-btn:focus {
  background: var(--primary-emerald);
}

/* =========================
   ROUTE CARD IMAGES
   ========================= */
.route-card img {
  width: 80px; /* Mobile default */
  height: 80px; /* Mobile default */
  object-fit: cover;
  border-radius: 12px;
}

.searched-card img{
 width: 200px;
 height: 120px;
 object-fit: cover;
 border-radius: 0.5rem;
}


/* =========================
   MEDIA QUERIES
   ========================= */

/* === MOBILE (max-width: 767px) === */
@media (max-width: 767px) {
  .hide-mobile {
    display: none;
  }

  .loading-page img {
    width: 120px;
    max-width: 60vw;
  }

  .route-start-button {
    z-index: 70;
    font-size: var(--button-font-size);
  }

  .welcome-text {
    --welcome-text-margin: 0.1rem auto 5rem;
    position: relative;
    bottom: 5vw;
  }

  /* Limi icon as SVG */
.limi-container svg {
  width: var(--limi-width);
  height: var(--limi-height);
}

  .mascot-img {
    width: 70px;
  }

  .bottom-nav {
    height: 90px;
    padding-top: 6px;
  }

  .nav-item .nav-icon, .nav-item.active .nav-icon {
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
  }

  .nav-item.active .nav-icon {
    width: 52px;
    height: 52px;
  }

  .limi-nav-img {
    width: 36px;
    height: 28px;
  }

  .nav-label {
    font-size: 0.95rem;
    margin-bottom: 5px;
  }

  /* Route details card mobile styles */
  .route-details-card {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.2rem;
    border-radius: 1.2rem;
  }

  .route-details-map {
    min-width: 100px;
    max-width: 100%;
    align-items: flex-start;
  }

  .route-map-img {
    min-width: 100px;
    max-width: 100%;
    aspect-ratio: 1.5/1;
  }

  /* Route details actions mobile styles */
  .route-details-actions {
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
  }

  .route-save-btn, .route-start-btn {
    min-width: unset;
    width: 100%;
    font-size: 1.1rem;
    padding-left: 0;
    padding-right: 0;
  }
}

/* === TABLET (min-width: 768px) === */
@media (min-width: 768px) {
  /* Typography */
  h1 { font-size: 2rem; margin-bottom: 1.2rem; }
  h2 { font-size: 1.75rem; margin-bottom: 1rem; }
  h3 { font-size: 1.5rem; margin-bottom: 1rem; }
  
  p, span { 
    font-size: 1.25rem; 
    margin-bottom: 1rem;
    font-weight: 500;

  }

  .hide-tablet {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .loading-page img {
    width: 180px;
    max-width: 30vw;
  }

  .header-logo {
    font-size: 1.6rem;
  }

  .bottom-nav {
    height: 110px;
    padding-top: 12px;
  }

  .limi-nav-svg {
    width: 50px;
    height: 48px;
  }

  .nav-label {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .route-start-button {
    font-size: 1.8rem;
  }

  .welcome-text {
    --welcome-text-font-size: 1.4rem;
    --welcome-text-margin: 2.625rem auto;
    position: relative;
    bottom: 10vw;
  }
  
  .limi-container {
    position: relative;
    bottom: 5vw;
    margin: 50px;
    left: 10%;
    right: 10%;
  }
/* Limi icon as SVG */
.limi-container svg {
  width: 400px;
  height: 800px;
}

  .activity-btn .material-symbols-outlined {
    font-size: 60px;
  }

  .activity-btn{
    height: 10vh;

  }
  /* Filter button tablet styles */
  .btn.filter-btn {
    height: 54px;
    min-height: 54px;
    font-size: 1.15rem;
    gap: 0.5rem;
  }

  .btn.filter-btn .material-symbols-outlined {
    font-size: 1.8rem;
  }

  /* Filter modal tablet styles */
  .filter-modal-content {
    max-width: 100vw;
    width: 1023px;
    padding: 2rem 2rem 1.5rem 2rem;
  }

  /* Route details card tablet styles */
  .route-details-card {
    max-width: 90vw;
    gap: 1.5rem;
    padding: 2rem;
  }

  .route-title {
    font-size: 2.2rem;
  }

  .route-map-img {
    min-width: 120px;
    max-width: 160px;
  }

  /* Route card images tablet styles */
   .route-card img {
    width: 100px; /* Mobile default */
    height: 100px; /* Mobile default */
  }
  
  .searched-card img{
   width: 300px;
   height: 220px;
  }
  
  /* Route details actions responsive tablet styles */
  .route-details-actions-responsive {
    flex-direction: row;
    gap: 1.5rem;
  }

  .route-details-actions-responsive button {
    font-size: 1.25rem;
    padding: 1.1rem 1.8rem;
    min-height: 60px;
  }

  .route-details-actions-responsive button .material-symbols-outlined {
    font-size: 2.2rem;
  }

  /* Header and search bar tablet styles */
  .app-header {
    height: 70px;
  }
  .app-header h2 {
    font-size: 1.8rem;
  }

  .back-link .material-symbols-outlined {
    font-size: 1.8rem;
  }

  .sticky-search-bar {
    top: 100px;
  }

  /* Input group tablet styles */
  .input-group .form-control,
  .input-group-text,
  .btn.filter-btn {
    height: 54px;
    min-height: 54px;
    font-size: 1.15rem;
  }
} 