/* RoutePlanner_Budge_Weather/style.css */

:root {
    --navbar-height: var(--cn-actual-height, 79px); 
    --navbar-height-mobile: var(--cn-actual-height-mobile, 60px);
    --cs-font-ui: 'Titillium Web', sans-serif;
    --font-primary: 'Poppins', sans-serif;

    --bg-light: #f9fafb; 
    --bg-white: #ffffff;
    --primary-yellow: #ffd77b;
    --secondary-yellow: #ffe4a1;
    --accent-orange: #ff9800; 
    --text-dark: #2c3e50; 
    --text-medium: #566573; 
    --text-light: #85929e;  
    --primary-blue: #3498db; 
    --success-green: #2ecc71;
    --danger-red: #e74c3c; 
    --border-color: #dde2e8; /* Slightly darker for better contrast */
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 14px;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.07);

    --scrollbar-track: #f0f2f5;
    --scrollbar-thumb: #c0c9d1;
    --scrollbar-thumb-hover: #a8b3be;
}
  
html, body, div, section, main, h2, h3, h4, p, ul, li, input, button, label, header, aside {
  margin: 0; padding: 0; box-sizing: border-box;
}
body { line-height: 1.6; font-size: 15px; } 
ul { list-style: none; }

body {
  font-family: var(--font-primary), sans-serif; 
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding-top: var(--navbar-height);
  height: 100vh; 
  display: flex;
  flex-direction: column;
  overflow: hidden; 
}

.route-planner-page-container {
    flex-grow: 1; width: 100%; display: flex;
    flex-direction: column; overflow: hidden; min-height: 0; 
}

main.main-container {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.7fr); 
  gap: 1.25rem; padding: 1.25rem; flex-grow: 1;
  overflow: hidden; height: 100%; 
}

section.map-container {
  background: var(--bg-white); border-radius: var(--border-radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  height: 100%; position: relative; 
}
#map { height: 100%; width: 100%; border-radius: inherit; }

.right-column-content {
    display: flex; flex-direction: column; gap: 1.25rem; 
    height: 100%; overflow: hidden; min-height: 0; 
}

/* Weather Section Refinements */
.weather-forecast-section {
  padding: 0; background-color: transparent; border-bottom: none; 
  flex-shrink: 0; max-height: 220px; /* More constrained height */
}
.weather-forecast-section .card-box.weather {
    margin: 0; background-color: var(--bg-white);
    border-radius: var(--border-radius-md); 
    box-shadow: var(--shadow-sm); 
    padding: 0.7rem 0.8rem; 
    height: 100%; display: flex; flex-direction: column;
    position: relative; 
    border: 1px solid var(--border-color); /* Add border for differentiation */
}
.card-header { 
    font-size: 1.05rem; 
    font-weight: 600; color: var(--primary-blue); 
    margin-bottom: 0.4rem; 
    border-bottom: 1px solid var(--primary-yellow); 
    padding-bottom: 0.3rem; 
    display: flex; align-items: center; gap: 0.4rem;
}
.card-header i.ti { font-size: 1.05em; }

#weather-wrapper.glider-contain {
    width: 100%; position: relative; flex-grow: 1; 
    display: flex; align-items: center; 
}
.weather-glider { 
    height: 100%; 
    padding-left: 30px; /* Space for prev arrow */
    padding-right: 30px; /* Space for next arrow */
    overflow: hidden; /* Ensure glider itself clips content */
}
.weather-glider .weather-block {
    background: linear-gradient(135deg, var(--bg-white) 0%, #fefefe 100%);
    border: 1px solid #edf0f3; /* Softer border for blocks */
    border-radius: var(--border-radius-sm); 
    padding: 0.5rem 0.6rem; /* Adjusted padding */
    height: calc(100% - 25px); /* Account for dots area */
    min-height: 0; 
    display: flex !important; flex-direction: column;
    justify-content: space-around; gap: 0.25rem; 
    box-shadow: var(--shadow-xs);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
.weather-block:hover {
    transform: translateY(-2px) scale(1.015); 
    box-shadow: var(--shadow-sm); z-index: 5;
}
.weather-block .weather-date {
    font-weight: 600; font-size: 0.8rem; 
    color: var(--text-dark);
    display: flex; align-items: center; gap: 0.25rem;
    padding-bottom: 0.15rem; margin-bottom: 0.2rem; 
    border-bottom: 1px dashed #eee; 
}
.weather-block .weather-date i.ti { color: var(--accent-orange); font-size: 0.9em; }

.weather-detail {
    display: flex; 
    align-items: flex-start; /* Important for multi-line text alignment with icon */
    gap: 0.4rem; /* Increased gap slightly for breathing room */
    font-size: 0.7rem; 
    color: var(--text-medium);
    line-height: 1.35; 
    min-height: 2.7em; /* Ensure at least two lines of text can fit without pushing icon too much */
}
.weather-detail .weather-icon { 
    font-size: 1rem; 
    /* color is set by specific icon classes below */
    width: 20px; text-align: center; 
    flex-shrink: 0; 
    margin-top: 2px; /* Fine-tune vertical alignment */
}
.weather-detail .label { 
    font-weight: 500; 
    min-width: 45px; /* Further reduced for more value space */
    color: var(--text-medium); 
    flex-shrink: 0;
    margin-right: 2px; /* Small space between label and value */
}
.weather-detail .weather-value { 
    font-weight: 400;
    overflow-wrap: break-word; 
    word-break: break-word; 
    flex-grow: 1; 
    text-align: left; 
}
/* Specific icon colors using Tabler Icon classes as selectors */
.weather-icon .ti-sun { color: #ffc107; }        
.weather-icon .ti-cloud-sun { color: #ffb300; }  
.weather-icon .ti-cloud { color: #78909c; }      
.weather-icon .ti-cloud-rain { color: #2196f3; } 
.weather-icon .ti-cloud-storm { color: #f44336; }
.weather-icon .ti-cloud-drizzle { color: #03a9f4;}
.weather-icon .ti-cloud-snow { color: #e1f5fe; } 
.weather-icon .ti-mist { color: #9e9e9e; }       
.weather-icon .ti-question-mark { color: #757575; }


.weather-carousel .glider-prev, .weather-carousel .glider-next {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    z-index: 10;
    background: rgba(255,255,255,0.7); /* More transparent */
    border: none; /* Remove border for cleaner look */
    width: 26px; height: 26px; 
    font-size: 1rem; 
    color: var(--text-dark); box-shadow: var(--shadow-sm); /* Slightly stronger shadow for pop */
    transition: background-color 0.2s, color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.7;
}
.weather-carousel .glider-prev:hover, .weather-carousel .glider-next:hover {
    background: var(--bg-white); color: var(--accent-orange);
    transform: translateY(-50%) scale(1.15);
    box-shadow: var(--shadow-md);
    opacity: 1;
}
.weather-carousel .glider-prev { left: 2px; /* Closer to edge of glider content area */ } 
.weather-carousel .glider-next { right: 2px; /* Closer to edge of glider content area */ } 

.weather-carousel .dots.weather-dots { 
    text-align: center; 
    margin-top: 0; /* Remove margin, dots are at bottom */
    padding-bottom: 2px; /* Small padding from card bottom */
    position: absolute; 
    bottom: 2px; /* Closer to bottom */
    left: 0;
    width: 100%; 
    pointer-events: auto; 
}
.weather-carousel .dots .glider-dot {
    width: 6px; height: 6px; background-color: #dde3e9; 
    margin: 0 2.5px; 
}
.weather-carousel .dots .glider-dot.active { background-color: var(--accent-orange); transform: scale(1.2); }


/* Planner Sidebar */
aside.planner-container {
  background: var(--bg-white); border-radius: var(--border-radius-md);
  padding: 0; 
  box-shadow: 0 6px 15px rgba(44, 62, 80, 0.08); /* Slightly more prominent shadow */
  display: flex; flex-direction: column;
  overflow: hidden; flex-grow: 1; min-height: 0; 
  border: 1px solid var(--border-color); /* Add border for differentiation */
}
/* Rest of the planner CSS remains largely the same as your last good version... */
/* ... including .planner-sticky-content and its scrollbar/fade effects */
.planner-sticky-content { 
    padding: 1.1rem; 
    overflow-y: auto; height: 100%; position: relative; 
    padding-bottom: calc(1.1rem + 40px); /* Ensure space for scroll indicator */
}
.planner-sticky-content::-webkit-scrollbar { width: 8px; }
.planner-sticky-content::-webkit-scrollbar-thumb { 
    background-color: var(--scrollbar-thumb); border-radius: 4px; 
    border: 2px solid var(--scrollbar-track); 
}
.planner-sticky-content::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover); }
.planner-sticky-content::-webkit-scrollbar-track { background-color: var(--scrollbar-track); border-radius: 4px; }
.planner-sticky-content {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.planner-sticky-content::before, .planner-sticky-content::after {
    content: ''; position: sticky; left: 0; width: 100%;
    height: 20px; z-index: 10; pointer-events: none; 
    opacity: 0; transition: opacity 0.3s ease;
}
.planner-sticky-content::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-white) 50%, rgba(255,255,255,0));
}
.planner-sticky-content::after {
    bottom: 40px; /* Position above scroll indicator */
    background: linear-gradient(to top, var(--bg-white) 50%, rgba(255,255,255,0));
}
.planner-sticky-content.scrolling-top::before,
.planner-sticky-content.scrolling-bottom::after {
    opacity: 1;
}

.planner-title { 
  font-family: var(--cs-font-ui); font-size: 1.2rem; 
  color: var(--primary-blue); margin-bottom: 0.85rem; 
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--primary-yellow);
  display: flex; align-items: center; gap: 0.4rem;
}
.planner-title i.ti { font-size: 1.05em; }

.input-group label {
    display: block; margin-bottom: 0.25rem; 
    font-weight: 500; font-size: 0.8rem; 
    color: var(--text-medium);
}
.input-wrapper { position: relative; margin-bottom: 0.75rem; }
.input-wrapper .input-icon {
    position: absolute; left: 10px; top: 50%;
    transform: translateY(-50%); color: var(--text-light);
    font-size: 0.9rem; pointer-events: none; 
}
.input-wrapper input {
  width: 100%; padding: 0.6rem 0.8rem 0.6rem 2rem; 
  border: 1px solid var(--border-color); border-radius: var(--border-radius-sm);
  font-size: 0.85rem; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fdfdfd;
}
.input-wrapper input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2.5px rgba(255, 152, 0, 0.3); 
  background-color: var(--bg-white);
}

.suggestions {
  position: absolute; top: calc(100% + 2px); left: 0;
  width: 100%; padding: 0; background: white;
  border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); 
  border-radius: var(--border-radius-sm); max-height: 150px; 
  overflow-y: auto; z-index: 1001; 
}
.suggestions li {
  padding: 0.4rem 0.7rem; font-size: 0.75rem;
  cursor: pointer; border-bottom: 1px solid #f5f5f5; 
  transition: background-color 0.15s ease;
}
.suggestions li:last-child { border-bottom: none; }
.suggestions li:hover, .suggestions li.selected { 
  background-color: #fff5e6; color: var(--accent-orange);
}

.budget-trigger-hint {
    font-size: 0.65rem; color: var(--text-light); 
    text-align: center; margin-top: 0.15rem; margin-bottom: 0.75rem; 
    font-style: italic;
}

.btn-planner-action { 
  margin-top: 0.25rem; padding: 0.65rem; width: 100%; 
  background: linear-gradient(135deg, var(--primary-blue), #194391); 
  color: var(--bg-white); font-weight: 500; font-size: 0.85rem; 
  border: none; border-radius: var(--border-radius-sm); cursor: pointer;
  transition: all 0.2s ease-out; 
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  box-shadow: var(--shadow-xs); text-transform: uppercase; letter-spacing: 0.5px;   
}
.btn-planner-action:hover {
  background: linear-gradient(135deg, #194391, var(--primary-blue));
  box-shadow: var(--shadow-sm); transform: translateY(-1px) scale(1.01); 
}
.btn-planner-action:active {
    transform: translateY(0px) scale(1); box-shadow: var(--shadow-xs);
}
.btn-planner-action i.ti { font-size: 1em; }

.sidebar-section-header {
    font-size: 1rem; 
    font-weight: 600; color: var(--primary-blue);
    margin-top: 1rem; margin-bottom: 0.6rem; 
    padding-bottom: 0.3rem; border-bottom: 1px solid #eee;
    display: flex; align-items: center; gap: 0.35rem;
}
.sidebar-section-header i.ti { font-size: 1.05em; }

#route-info.dual-panel {
  display: flex; flex-direction: column; gap: 0.75rem; 
  margin-top: 0.6rem; 
}
@media (min-width: 600px) { 
    #route-info.dual-panel { flex-direction: row; gap: 0.75rem; }
}
.route-card h4 { 
    display: flex; align-items: center; gap: 0.3rem;
    font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text-dark); 
}
.route-card h4 i.ti { color: var(--primary-blue); font-size: 1.1em; }

.route-placeholder {
  font-style: italic; color: var(--text-light);
  font-size: 0.7rem; margin-top: 0.25rem; 
}
.route-card {
  flex: 1; padding: 0.7rem; border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-xs); font-size: 0.75rem; 
  min-height: 80px; display: flex; flex-direction: column;
  justify-content: flex-start; border: 1px solid var(--border-color); 
  transition: box-shadow 0.2s ease;
}
.route-card:hover { box-shadow: var(--shadow-sm); }
.private-car { background-color: #f4f9ff; } 
.public-transit { background-color: #fffaf0; } 

.pub-options { display:flex; flex-direction:column; gap:0.35rem; margin:0.4rem 0; }
.pub-option { 
    border:1px solid var(--border-color); border-radius:var(--border-radius-sm); 
    padding:0.35rem 0.6rem; font-size:0.7rem; 
    cursor:pointer; background:var(--bg-white); 
    transition:background .2s, border-color .2s, color .2s, box-shadow .2s ease; 
    text-align: left; color: var(--text-medium);
}
.pub-option:hover { background:#f7faff; border-color: var(--primary-blue); color: var(--primary-blue); }
.pub-option.active { 
    background: #eaf6ff; border-color:var(--primary-blue); 
    font-weight:600; color: var(--primary-blue);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.pub-caption { font-size:0.65rem; color:var(--text-light); margin-top:0.25rem; }

.car-options { display:flex; flex-direction:column; gap:0.35rem; margin:0.4rem 0; }
.car-option {
    border:1px solid var(--border-color); border-radius:var(--border-radius-sm); 
    padding:0.35rem 0.6rem; font-size:0.7rem; 
    cursor:pointer; background:var(--bg-white); 
    transition:background .2s, border-color .2s, color .2s, box-shadow .2s ease; 
    text-align: left; color: var(--text-medium);
}
.car-option:hover { background: #f7fff7; border-color: var(--success-green); color: var(--success-green); }
.car-option.active {
    background: #e6ffe6; border-color: var(--success-green);
    font-weight:600; color: var(--success-green);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.route-hint { font-size: 0.65rem; color: var(--text-light); margin-top:0.25rem; margin-bottom: 0.4rem; }

.route-legend{ 
    background:rgba(255,255,255,0.92); 
    padding:0.35rem 0.45rem;
    border-radius:var(--border-radius-sm); 
    box-shadow:var(--shadow-sm);
    font-size:0.65rem; 
    line-height:1.35; 
    backdrop-filter: blur(4px);
}
.route-legend .leg-line {
    display: inline-block; width: 20px; 
    height: 4px; 
    margin-right: 6px; vertical-align: middle; border-radius: 1px; 
}
.route-legend .leg-line.walk.dashed {
    background-image: repeating-linear-gradient(to right, 
        var(--success-green) 0, var(--success-green) 4px, 
        transparent 4px, transparent 8px 
    );
    background-color: transparent !important; 
    height: 3px; 
}
.route-legend .leg-line.car { background-color: var(--success-green); } 
.route-legend .leg-line.bus { background-color: var(--primary-blue); }
.route-legend .leg-line.rail { background-color: var(--danger-red); }

.station-swatch { 
    display: inline-block; width: 8px; height: 8px;
    border: 2px solid #666; background-color: white;
    border-radius: 50%; margin-right: 5px; vertical-align: middle;
}
.station-swatch.bus { border-color: var(--primary-blue); } 
.station-swatch.rail { border-color: var(--danger-red); }
.legend-pin-note img { width: 12px; }
.legend-pin-note { margin-top: 3px; font-size: 0.65rem; }

/* Budget Estimator Section - Redesign */
.budget-subtext {
  font-size: 0.7rem; 
  color: var(--text-light); margin-bottom: 0.25rem; 
  font-style: italic;
}
.data-source-attribution.budget-data-source {
    font-size: 0.6rem; color: #b0b0b0; 
    margin-bottom: 0.4rem; line-height: 1.2;
    text-align: center;
}

#budget-items-container.budget-grid-sidebar { 
  display: flex;
  flex-wrap: nowrap; 
  gap: 0.75rem; 
  margin-top: 0.6rem; 
  padding-bottom: 0.75rem; 
  overflow-x: auto; 
  overflow-y: hidden; 
  align-items: stretch; 
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
#budget-items-container.budget-grid-sidebar::-webkit-scrollbar { height: 6px; }
#budget-items-container.budget-grid-sidebar::-webkit-scrollbar-thumb { 
    background-color: var(--scrollbar-thumb); border-radius: 3px; 
}
#budget-items-container.budget-grid-sidebar::-webkit-scrollbar-track { 
    background-color: var(--scrollbar-track); border-radius: 3px; 
}

.budget-item { 
  background: var(--bg-white); padding: 0.8rem 0.7rem; 
  border-radius: var(--border-radius-sm); box-shadow: var(--shadow-xs);
  text-align: center; font-size: 0.7rem; display: flex;
  flex-direction: column; align-items: center; justify-content: center; 
  border: 1px solid var(--border-color); 
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
  min-width: 95px; 
  flex: 0 0 auto; height: auto; 
}
.budget-item:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-md); 
    border-color: var(--accent-orange);
}
.budget-item .budget-item-icon { 
  font-size: 1.5rem; 
  margin-bottom: 0.3rem; color: var(--primary-blue); 
  line-height: 1; display: flex; align-items: center;
  justify-content: center; width: 30px; height: 30px; 
}
.budget-item .budget-item-icon i.ti { stroke-width: 1.5; }
.budget-item strong { 
  font-weight: 500; display: block; margin-bottom: 0.15rem; 
  color: var(--text-dark); font-size: 0.7rem; 
  white-space: nowrap; 
}
.budget-item div { 
    font-size: 0.7rem; 
    color: var(--accent-orange); font-weight: 600;
}

.loading-indicator-route {
  background: var(--bg-white); 
  padding: 0.8rem 0.7rem; 
  border-radius: var(--border-radius-sm); 
  box-shadow: var(--shadow-xs);
  text-align: center; 
  font-size: 0.7rem; 
  display: flex;
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  border: 1px solid var(--border-color); 
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
  min-width: 95px; 
  flex: 0 0 auto; 
  height: auto; 
  position: relative;
}
.loading-indicator-route .spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--accent-orange);
  border-radius: 50%;
  animation: spin-bounce 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.08);
}
@keyframes spin-bounce {
  0% {
    transform: rotate(0deg) scale(1);
    box-shadow: 0 0 0 0 rgba(255,152,0,0.15);
  }
  50% {
    transform: rotate(180deg) scale(1.15);
    box-shadow: 0 0 12px 4px rgba(255,152,0,0.18);
  }
  100% {
    transform: rotate(360deg) scale(1);
    box-shadow: 0 0 0 0 rgba(255,152,0,0.15);
  }
}

.budget-placeholder-message,
#budget-items-container.budget-grid-sidebar .loading-indicator-route .spinner + div {
    width: 100%; text-align: center; padding: 1rem 0.8rem; 
    font-style: italic; color: var(--text-medium); font-size: 0.8rem; 
}
#budget-items-container.budget-grid-sidebar .loading-indicator-route { 
    width: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; min-height: 60px; 
}
#budget-items-container.budget-grid-sidebar .loading-indicator-route .spinner {
    border: 3px solid rgba(0, 0, 0, 0.08); width: 22px; height: 22px; 
    border-left-color: var(--accent-orange); margin-bottom: 5px; 
    animation: spin 0.8s linear infinite; 
}

#budget-estimator-section.budget-estimator-section-sidebar {
    background-color: transparent; 
    box-shadow: none; padding: 0; margin-top: 0; border: none;
    opacity: 0; max-height: 0; transform: translateY(8px) scale(0.98); 
    overflow: hidden;
    transition: opacity 0.3s ease-out, max-height 0.35s ease-out, transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), margin-top 0.3s ease-out;
}
#budget-estimator-section.budget-estimator-section-sidebar.visible {
    opacity: 1; max-height: 1000px; 
    transform: translateY(0) scale(1); margin-top: 1rem; 
}

/* Scroll Indicator */
.scroll-indicator-container {
  position: sticky; /* Make it sticky */
  bottom: 0; /* Stick to the bottom of the scrollable container's viewport */
  left: 0; /* Align to the left */
  width: 100%; /* Take full width */
  /* Stronger fade using background color */
  background: linear-gradient(to top, var(--bg-white) 40%, rgba(255,255,255,0));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 10;
  opacity: 0; /* Start hidden */
  transition: opacity 0.3s ease-in-out; /* Smoother fade for indicator */
  padding-bottom: 0; /* No padding needed here */
  height: 35px; /* Give it a defined height */
}

.scroll-indicator-container::before, .scroll-indicator-container::after {
    content: none;
}

.planner-sticky-content.scrolling-bottom .scroll-indicator-container {
  opacity: 1;
}

/* Adjustments needed in .planner-sticky-content because the indicator is now inside and sticky */
.planner-sticky-content {
  padding-bottom: 0;
  padding-top: 1.1rem; padding-left: 1.1rem; padding-right: 1.1rem;
  overflow-y: auto; height: 100%; position: relative;
  /* The sticky fade pseudo-elements should remain */
}

.planner-sticky-content::after { /* Bottom sticky shadow */
  bottom: 35px; /* Position above the sticky indicator height */
  content: ''; position: sticky; left: 0; width: 100%;
  height: 20px; z-index: 10; pointer-events: none;
  opacity: 0; transition: opacity 0.3s ease;
  background: linear-gradient(to top, var(--bg-white) 50%, rgba(255,255,255,0));
}
.planner-sticky-content::before { /* Top sticky shadow */
  top: 0;
  content: ''; position: sticky; left: 0; width: 100%;
  height: 20px; z-index: 10; pointer-events: none;
  opacity: 0; transition: opacity 0.3s ease;
  background: linear-gradient(to bottom, var(--bg-white) 50%, rgba(255,255,255,0));
}

/* The classes for showing the sticky shadows based on scrolling state */
.planner-sticky-content.scrolling-top::before {
    opacity: 1;
}
.planner-sticky-content.scrolling-bottom::after {
    opacity: 1;
}

.scroll-indicator-arrow {
  font-size: 1.1rem; /* Slightly larger arrow */
  color: var(--accent-orange);
  animation: bounce-arrow 1.5s infinite ease-in-out;
  line-height: 1;
}
.scroll-indicator-text {
  font-size: 0.65rem; /* Slightly larger text */
  color: var(--text-medium); /* Slightly darker text */
  margin-top: 1px;
}
@keyframes bounce-arrow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); } /* Adjusted bounce */
  60% { transform: translateY(-2px); }
}

/* Footer styling will be handled by common_footer.css */


@media (max-width: 1024px) {
  main.main-container {
    grid-template-columns: 1fr; height: auto; 
    overflow-y: auto; padding-bottom: 1rem; 
  }
  section.map-container, .right-column-content {
      width: 100%; height: auto; overflow: visible; 
  }
  section.map-container { height: 45vh; min-height: 300px; }
  aside.planner-container { width: 100%; min-height: 300px; }
  .weather-forecast-section { max-height: none; width: 100%; }
}

@media (max-width: 768px) {
  body { padding-top: var(--navbar-height-mobile); }
  main.main-container { padding: 0.8rem; gap: 0.8rem; }
  .card-header { font-size: 1rem; }
  .planner-title { font-size: 1.15rem; }
  section.map-container { min-height: 280px; } 
  .weather-glider .weather-block { padding: 0.6rem; }
  .weather-detail { font-size: 0.75rem; }
  .weather-detail .weather-icon { font-size: 1.1rem; }
  .input-wrapper input { font-size: 0.85rem; padding-top: 0.6rem; padding-bottom: 0.6rem;}
  .btn-planner-action { font-size: 0.85rem; padding: 0.6rem; }
  .sidebar-section-header { font-size: 1rem; }
  #route-info.dual-panel { flex-direction: column; } 
  .budget-item { min-width: 90px; }
  /* Adjust glider padding for arrows on mobile */
  .weather-glider { padding-left: 22px; padding-right: 22px; }
  .weather-carousel .glider-prev { left: 2px; } 
  .weather-carousel .glider-next { right: 2px; }
}

@media (max-width: 480px) {
    .weather-carousel .glider-prev, .weather-carousel .glider-next {
        width: 24px; height: 24px; font-size: 0.8rem; 
    }
    .weather-glider { padding-left: 18px; padding-right: 18px; } 

    main.main-container { padding: 0.6rem; gap: 0.6rem; }
    .planner-sticky-content { padding: 0.8rem; padding-bottom: calc(0.8rem + 35px); }
    .card-header { font-size: 0.9rem;}
    .planner-title { font-size: 1.05rem; }
    .sidebar-section-header {font-size: 0.9rem;}
    .route-card h4 { font-size: 0.85rem; }
    .pub-option, .car-option { font-size: 0.65rem; padding: 0.3rem 0.5rem; }
    .budget-item { min-width: 80px; padding: 0.6rem 0.5rem; }
    .budget-item .budget-item-icon { font-size: 1.4rem; width: 28px; height: 28px;}
    .budget-item strong {font-size: 0.7rem;}
    .budget-item div {font-size: 0.7rem;}
}