.no-scroll {
    overflow: hidden !important;
}
.slide-down {
    animation: slideDown 0.5s forwards;
}
.slide-right {
    animation: slideRight 0.5s forwards;
}
.slide-left {
    animation: slideLeft 0.5s forwards;
}
.slide-in-right {
    animation: slideInRight 0.5s forwards;
}
.slide-in-left {
    animation: slideInLeft 0.5s forwards;
}
.slide-out-right {
    animation: slideOutRight 0.5s forwards;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 1000px; /* Adjust as needed */
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.overlay-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 3px 3px 0 red, -1px -1px 0 red, 1px -1px 0 red, -1px 1px 0 red, 1px 1px 0 red;
}

.top-text {
    top: 10px;
}

.bottom-text {
    bottom: 10px;
}

/* Add styles for bus stop markers */
.bus-stop-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.bus-stop-marker:hover {
    transform: scale(1.2);
}

/* Add styles for ad location markers (smaller size and hover effect) */
.ad-location-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ad-location-marker:hover {
    transform: scale(1.3);
}

.ad-location-marker div {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add styles for heatmap control slider */
.heatmap-control {
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.intensity-slider {
    cursor: pointer;
}

.intensity-slider:focus {
    outline: none;
}



/* Responsive poster image - 50% on desktop */
@media (min-width: 768px) {
    #poster_image {
        max-width: 50% !important;
        width: auto !important;
    }
}
#mapa_perdida {
    position: relative; 
    width: 100%;
    height: 600px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.disabled-map {
    position: relative;
}
.disabled-map::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Updated shimmer effect using linear-gradient */
    background: linear-gradient(125deg, rgba(89, 89, 89, 0.1) 0%, rgba(192,192,192,0.6) 50%, rgba(84, 84, 84, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1s infinite;
    pointer-events: none;
    z-index: 10;
}

.range-container {
    position: relative;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 40px; 
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.form-label {
    font-weight: 500;
    color: #343a40;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    margin: 10px 0;
    position: relative;
    z-index: 3; 
    background: #d3d3d3;
    height: 6px;
    border-radius: 5px;
    
    background: 
        linear-gradient(to right, #d3d3d3 0%, #d3d3d3 100%),
        repeating-linear-gradient(to right, 
            transparent 0%, 
            transparent calc(20% - 1px), 
            #fff calc(20% - 1px), 
            #fff 20%);
    background-size: 100% 6px, 4px 6px;
    background-repeat: no-repeat, repeat;
    background-position: center;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: 50px;
    background: #e91e63;
    cursor: pointer;
    border-radius: 50%;
    position: relative;
    top: -18px; 
    z-index: 6; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

input[type="range"]::-moz-range-thumb {
    width: 50px; 
    height: 50px;
    background: #e91e63;
    cursor: pointer;
    border-radius: 50%;
    position: relative;
    top: -18px; 
    z-index: 6; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.slider-value {
    z-index: 7; 
    position: absolute;
    font-size: 16px;
    white-space: nowrap;
    pointer-events: none;
    transition: left 0.05s ease-in-out; 
    color: white;
    top: 20px; 
}

input[type="range"]::-moz-range-thumb::after {
    top: -45px; 
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    transition: left 0.05s;
    content: attr(data-value);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}


.range-container .ticks {
    position: absolute;
    left: 25px; 
    width: calc(100% - 50px); 
    height: 10px;
    top: 61%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.range-container .ticks span {
    width: 1px;
    height: 150%;
    background: #000;
    position: relative;
    top: -25%;
}

.range-container .ticks-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.range-container .ticks-labels span {
    font-size: 12px;
    color: #343a40;
    position: relative;
    top: 15px;
}

.radar-spinner {
    position: absolute;
    width: 1px;
    height: 100px; 
    background-color: red;
    transform-origin: bottom center; 
    animation: rotate-spinner 3s linear infinite;
    pointer-events: none; 
    transition: top 0.1s ease, left 0.1s ease;
}

@keyframes rotate-spinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .container {
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }
}

#address_input {
    width: 100%; 
    background-color: #f8f9fa; 
    border: 2px solid #ced4da;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s; 
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#address_input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 8px rgba(128, 189, 255, 0.6);
    outline: none; 
}

#address_input::placeholder {
    color: #6c757d;
    opacity: 1; 
}

@keyframes focusAnimation {
    from {
        box-shadow: 0 0 0 rgba(128, 189, 255, 0);
    }
    to {
        box-shadow: 0 0 8px rgba(128, 189, 255, 0.6);
    }
}

#address_input:focus {
    animation: focusAnimation 0.3s forwards;
}

#image_preview {
    margin-top: 15px;
}

#preview_image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ced4da;
    border-radius: 5px;
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
}

#cropped_image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ced4da;
    border-radius: 5px;
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
}

#step3 .card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#step3 h4 {
    color: #343a40;
    font-weight: 600;
}

#upload_photo {
    border: 2px dashed #ced4da;
    padding: 20px;
    border-radius: 10px;
    transition: border-color 0.3s;
}

#upload_photo:focus {
    border-color: #80bdff;
    box-shadow: 0 0 5px rgba(128, 189, 255, 0.5);
}

#image_preview img {
    border-radius: 10px;
    transition: transform 0.3s;
}

#image_preview img:hover {
    transform: scale(1.05);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.enlarged-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ced4da;
    border-radius: 5px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    max-height: 400px; 
}

#step4 .form-label {
    font-size: 1.25rem; 
    font-weight: 600;
}

#step4 h5.display-5 {
    font-size: 2rem; 
    font-weight: bold;
}

#reach-estimate {
    font-size: 1.25rem; /* Increase font size */
    font-weight: bold; /* Make text bold */
    text-align: center; /* Center the text */
    color: #f5f5f5; /* Set a darker color for better readability */
    padding: 10px 20px; /* Add padding for spacing */
    background-color: #e91e63;     border-radius: 8px; /* Optional: Round the corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    margin-top: 15px; /* Add top margin for separation */
}

/* Responsive Design for Smaller Screens */
@media (max-width: 767px) {
    #reach-estimate {
        font-size: 1rem; /* Slightly smaller font on mobile */
        padding: 8px 16px; /* Adjust padding */
    }
}

/* Modal de Estimación de Alcance */
#reachEstimateModal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#reachEstimateModal .modal-body {
    padding: 2.5rem 2rem;
}

#modal-reach-text {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}

#modal-reach-icon .fa-pulse {
    animation: fa-pulse 1s ease-in-out infinite;
}

@keyframes fa-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Map Accordion Styles */
#mapAccordion .accordion-button {
    border-radius: 10px;
    font-weight: 600;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#mapAccordion .accordion-button:not(.collapsed) {
    background-color: #0d6efd;
    color: white;
}

#mapAccordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#mapAccordion .accordion-button::after {
    filter: brightness(0) invert(1);
}

.btn-back + .btn-next {
    margin-left: 10px;
}

.btn-next + .btn-back {
    margin-left: 10px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer-container {
    background-color: #e91e63; /* Your desired background color */
    display: inline-block; /* Ensure the container fits the text */
}

.shimmer-text {
    display: inline-block;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.474) 0%, rgba(255, 255, 255, 0.912) 50%, rgba(255, 255, 255, 0.479) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Allow clicks to pass through the circle */
#mapa_perdida .gm-style .gm-circle {
     pointer-events: none;
}
