/* map-modal.css */
.map-modal-container {
    padding: 0;
}

.map-modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 70vh;
}

.map-container {
    flex: 1;
    width: 100%;
    min-height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

#map-modal {
    width: 100%;
    height: 100%;
    min-height: 400px;

}
.mcl{
    position: absolute;
    z-index: 999;
    right: 0;
    opacity: 5;
}
.main-map .fade{
background: linear-gradient(135deg, #1a2a3a, #2c3e50);
}

.map-search-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 300px;
}

.search-box {
    position: relative;
    width: 100%;
}

#search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.5);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 1.2rem;
    }

.search-results li strong{
    font-weight:500;
    
    }
#search-results {
    list-style: none;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: absolute;
    width: 100%;
    z-index: 1001;
    display: none;
}

#search-results li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    background: var(--bs-light);
}

#search-results li:last-child {
    border-bottom: none;
}

#search-results li:hover {
    background: #3498db;
    color: white;
    transform: translateX(5px);
}

#search-results li.highlighted {
    background: #2980b9;
    color: white;
}

.result-icon {
    margin-right: 10px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}
  .destinations-slider-container {
        background-color: var(--bs-light);
         border-radius: 15px;
         padding: 20px;
         height: auto;
         }
         .destinations-slider {
        display: flex;
        align-items:center;
        gap: 15px;
        overflow-x: hidden;
         }

         .destination-card {
        flex: 0 0 280px;
        border-radius: 10px;
        padding: 15px;
        cursor: pointer;
        border-left: 4px solid #e89b09 !important;
        background-color: #ffff; 
        height: 100%;
        display: flex;
        flex-direction: column;
        border: 1px solid #ccccccab;
         }
.destination-card h3 {
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #3e5e97;
}

.destination-card p {
    font-size: 0.9rem;
    color: #555;
    text-align: justify;
    flex: 1;
}

.popup-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.leaflet-popup-content-wrapper {
    background: var(--bs-light);
    color: #ecf0f1;
    border-radius: 1rem;
}

.leaflet-popup-tip {
    background: #2c3e50;
}

.leaflet-popup-content {
    margin: 10px 15px;
    line-height: 1.4;
}

.leaflet-popup-content h3 {
    margin: 0 0 8px 0;
    color: var(--black-color);
    font-size: 1rem;
}

.leaflet-container a {
    padding: 5px 10px;
    color: var(--black-color);
}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-bar {
    display: none;
}

.leaflet-popup-content p {
    margin: 10px 0px;
    font-size: 0.9rem;
    text-align: justify;
    color: #555;
}

.round-bt {
    background-color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.89rem;
    color: var(--paragraph-color);
}

.slider-header {
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #cccccc94;
}

.slider-title {
    color: var(--black-color);
    margin: 0;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-btn {
    border: none;
    background: var(--black-color);
    color: var(--white-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--main-color);
    color: var(--white-color);
    transform: scale(1.1);
}

.destination-icon {
    color: #da9651;
    margin-right: 8px;
    font-size: 0.9rem;
}
.rotate-btn {
  position: fixed;
  top: 50%;
  right: 50px;
  transform: rotate(90deg) translateY(-50%);
  transform-origin: right center;
  border-radius: 0px 0px 6px 6px;
  padding: 10px 20px;
}

@media (max-width: 768px) {
    .map-modal-content {
        height: 80vh;
    }
    
    .map-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .map-search-container {
        width: 90%;
        left: 5%;
    }
    
    .destination-card {
        flex: 0 0 250px;
    }
}