/* Google Maps Ortak CSS Stilleri */

/* Modern Map Modal Styles */
.map-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 39, 46, 0.85), rgba(19, 25, 31, 0.90));
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

/* Modal açıkken body scroll'u engelle */
body.modal-open {
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.map-modal-content {
    animation: slideIn 0.4s ease-out;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 2% auto;
    padding: 20px;
    border: none;
    width: 95%;
    max-width: 1000px;
    height: 85%;
    max-height: 700px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-container {
    width: 100%;
    height: 400px;
    min-height: 300px;
    max-height: 500px;
    flex: 1;
    border: 3px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    background: linear-gradient(135deg, #667eea, #764ba2) padding-box, linear-gradient(135deg, #667eea, #764ba2) border-box;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15), 0 4px 16px rgba(118, 75, 162, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: block;
}

/* Google Maps'in tam boyutta görünmesi için */
.map-container > div {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 13px;
}

.map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25), 0 6px 20px rgba(118, 75, 162, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.map-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-map-modal {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.close-map-modal:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #d63031 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.map-actions {
    margin-top: 20px;
    text-align: right;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.map-actions .btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.map-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.map-actions .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-map {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4), 0 2px 8px rgba(118, 75, 162, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 100px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-map:hover::before {
    left: 100%;
}

.btn-map:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-map:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.btn-map i {
    font-size: 14px;
}

.flight_Search_boxed .input-with-map {
    position: relative;
}

.flight_Search_boxed .input-with-map input {
    padding-right: 96px; /* buton için yer */
}

.flight_Search_boxed .input-with-map .btn-map {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    padding: 0 12px;
    border-radius: 18px;
    line-height: 36px;
    z-index: 2;
}

/* Eski otobüs ikonu tamamen kalksın */
.flight_Search_boxed .plan_icon_posation {
    display: none !important;
}

.location-info {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.location-info:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateX(2px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .map-modal-content {
        margin: 3% auto;
        padding: 15px;
        width: 98%;
        height: 90%;
        max-height: 600px;
        display: flex;
        flex-direction: column;
    }

    .map-container {
        height: 300px;
        min-height: 250px;
        flex: 1;
    }

    .btn-map {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .map-modal-content {
        margin: 1% auto;
        padding: 10px;
        width: 99%;
        height: 95%;
        max-height: 500px;
        display: flex;
        flex-direction: column;
    }

    .map-container {
        height: 250px;
        min-height: 200px;
        flex: 1;
    }

    .btn-map {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 60px;
    }
}

/* Laptop screen optimization */
@media (min-width: 1024px) and (max-width: 1366px) {
    .map-modal-content {
        margin: 1% auto;
        padding: 18px;
        width: 92%;
        height: 80%;
        max-height: 650px;
        display: flex;
        flex-direction: column;
    }

    .map-container {
        height: 350px;
        min-height: 300px;
        flex: 1;
    }

    .map-modal-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .map-modal-title {
        font-size: 18px;
    }
}

/* Large laptop screens */
@media (min-width: 1367px) and (max-width: 1920px) {
    .map-modal-content {
        margin: 1.5% auto;
        padding: 22px;
        width: 90%;
        height: 82%;
        max-height: 750px;
        display: flex;
        flex-direction: column;
    }

    .map-container {
        height: 450px;
        min-height: 350px;
        flex: 1;
    }
}
