.leaflet-control-attribution.leaflet-control {
    /* hide leaflet attribution */
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

#crosshair {
    left: calc(50% - 10px);
    top: calc(50% - 40px);
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 10000;
    text-align: center;
    font-weight: normal;
    font-size: 32px;
    color: #FF0000;
    text-shadow: 1px 1px 3px #fff;
}

.main-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-container {
    flex: 1 1 auto; /* Grow, shrink, and base size on content */
    /*min-height: 50vh;*/
}

#map {
    width: 100%;
    height: 100%;
}

.splitter {
    height: 8px;
    background: #e0e0e0;
    cursor: row-resize;
    flex: none;
}

.nearbyStops-container {
    flex: 0 auto; /* Don't grow, don't shrink, size to content */
    background: #fff;
    overflow-y: auto;
    display: none; /* Hide when empty */
}

.nearbyStops-container:not(:empty) {
    display: block; /* Show when has content */
    overflow: hidden;
    /*max-height: 50vh; /* Maximum height of 50% viewport height */
}


.bottomMapButtons {
  display: flex;
  position: absolute;
  bottom: 0;
  width: 100%;
  justify-content: space-around;
  /*background-color: DodgerBlue;*/
  z-index: 1500;
}
.bottomMapButtons > div {  
  /*background-color: #f1f1f1;*/
  width: 60px;
  margin: 10px;
  text-align: center;
  line-height: 75px;
  font-size: 30px;
  cursor: pointer;
}

/* Base style for the icon buttons (divs) */
/* ES PARA LOS 3 BOTONES DEL MENU PRINCIPAL: HELP /  SEARCH / SCHEDULE */
.icon-btn {
    width: 3.5rem; /* w-14 */
    height: 3.5rem; /* h-14 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* shadow-md */
}
/* Mobile adjustment for smaller screens */
@media (max-width: 640px) {
    .icon-btn {
        width: 3rem; /* w-12 */
        height: 3rem; /* h-12 */
    }
}

/* IOS ACTION SHEET START */







/* iOS-style floating action button */
.ios-action-button {
    position: absolute;
    right: 16px;
    bottom: 132px;
    z-index: 1200;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,0.82);
    color: #fff;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}
.ios-action-button::before {
    content: "⌕";
    font-size: 16px;
    line-height: 1;
}
.ios-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.ios-action-button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    background: rgba(0,0,0,0.9);
}

/* Backdrop */
.ios-action-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.16);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1600;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

/* Visible state toggled via JS */
.ios-action-backdrop.visible {
    display: flex;
}

/* Sheet */
.ios-action-sheet {
    z-index: 1700;
    /*height: 80%; no porque cuando se abre el teclado en el celular se chava */
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: rgba(245,245,247,0.98);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 26px rgba(0,0,0,0.28);
    padding: 14px 18px 18px;
    transform: translateY(100%);
    transition: transform 0.26s cubic-bezier(.33,.66,.18,1.08);
    touch-action: none;
    font-size: 16px;
}

/* Sheet visible */
.ios-action-sheet.visible {
    transform: translateY(0%);
}

/* Grabber */
.ios-action-grabber {
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(120,120,128,0.36);
    margin: 4px auto 10px;
}

/* Header */
.ios-action-header {
    padding: 0 2px 4px;
}
.ios-action-title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
}
.ios-action-subtitle {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 13px;
    color: #6b7280;
    display: none;;
}

/* Search input inside sheet */
.ios-action-search-wrapper {
    margin: 6px 0 4px;
}
.ios-action-search {
    width: 100%;
    padding: 10px 13px;
    border-radius: 10px;
    border: 0.5px solid rgba(148,163,253,0.7);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 6px rgba(15,23,42,0.08) inset;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 15px;
    outline: none;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.ios-action-search::placeholder {
    color: #9ca3af;
}
.ios-action-search:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.16);
    background: #ffffff;
}

/* Results list */
.ios-action-results {
    max-height: 60vh;
    min-height: 60vh;
    overflow-y: auto;
    margin-top: 4px;
    padding-right: 4px;
}

/* Single result row */
.ios-marker-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.ios-marker-item:hover {
    background: rgba(148,163,253,0.10);
    box-shadow: 0 2px 8px rgba(15,23,42,0.10);
}

/* Cancel the hover effect if the item has a parent two levels up with class mdRowContent */
#mdRowContent .ios-marker-item:hover {
    background: transparent;
    box-shadow: none;
}

.ios-marker-item:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(15,23,42,0.18);
}

.ios-marker-route-pill {
    min-width: 100px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 2px 6px rgba(15,23,42,0.24);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ios-marker-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ios-marker-description {
    font-size: 30px;
    font-weight: 600;
    color: #111827;
}
.ios-marker-route-description {
    font-size: 20px;
    color: #6b7280;
}

/* Footer hint */
.ios-action-footer-hint {
    margin-top: 3px;
    text-align: center;
    font-size: 9px;
    color: #9ca3af;
}



/* IOS ACTION SHEET END */