/* Yeni Checkout Sayfası Stilleri */

.checkout-main {
    margin-top: 80px;
    padding: 30px 0 60px;
    background: #f8fafc;
    min-height: 90vh;
}

/* Progress Steps */
.checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s ease;
    position: relative;
}

.progress-step .step-circle {
    background: #e5e7eb;
    color: #9ca3af;
}

.progress-step.completed .step-circle {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.3s;
}

.progress-step.completed .step-label,
.progress-step.active .step-label {
    color: #374151;
}

.progress-line {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    margin: 0 20px;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.progress-line.completed {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* Section Container */
.checkout-section {
    margin-bottom: 40px;
}

.section-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Card Styles */
.address-form-card,
.payment-methods-card,
.map-card,
.mini-order-summary,
.address-summary-card,
.order-summary-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.2);
}

.card-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.card-header h3 {
    font-size: 1.1rem;
}

.location-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.location-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.security-badge {
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Form Styles */
.address-form {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.location-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #dbeafe;
    border-radius: 10px;
    color: #1e40af;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Buttons */
.continue-btn,
.complete-order-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.continue-btn:hover,
.complete-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.back-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.edit-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Map Styles */
.map-card {
    height: 400px;
    position: relative;
}

.map-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

.map-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-header small {
    opacity: 0.9;
    font-size: 12px;
}

.map-container {
    position: relative;
    height: calc(100% - 80px);
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 0 0 20px 20px;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 20px 20px;
    z-index: 800;
}

.overlay-content {
    text-align: center;
    color: #6b7280;
}

.overlay-content i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 15px;
    display: block;
}

/* Mini Order Summary */
.mini-order-summary {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.mini-order-summary h4 {
    margin: 0;
    padding: 20px 25px;
    color: #374151;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #d1d5db;
}

.summary-items {
    padding: 20px 25px;
    max-height: 200px;
    overflow-y: auto;
}

.summary-pricing {
    padding: 15px 25px;
    border-top: 1px solid #d1d5db;
}

.summary-pricing .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-pricing .summary-row.discount-row {
    color: #059669;
    font-weight: 600;
}

.summary-total {
    padding: 15px 25px;
    border-top: 2px solid #d1d5db;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

/* Payment Methods */
.payment-methods {
    padding: 0 30px 30px;
}

.payment-method {
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.payment-method:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.payment-method.active {
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.method-header {
    padding: 20px 25px;
    background: #ffffff;
    cursor: pointer;
}

.method-header label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
}

.method-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.method-info i {
    font-size: 1.2rem;
    color: #2563eb;
}

.card-logos {
    display: flex;
    gap: 8px;
}

.card-logo {
    height: 20px;
    width: auto;
}

.discount-badge {
    background: #16a34a;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
}

.cash-badge {
    background: #f59e0b;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
}

.card-badge {
    background: #2563eb;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
}

.method-content {
    padding: 25px;
    background: #f8fafc;
    display: none;
}

.payment-method.active .method-content {
    display: block;
}

.card-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bank-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.cash-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.cash-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.cash-info .info-item:last-child {
    margin-bottom: 0;
}

.cash-info .info-item i {
    color: #f59e0b;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.cash-info .info-item p {
    margin: 0;
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
}

.copy-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Address Summary */
.address-details {
    padding: 25px 30px;
    color: #374151;
    line-height: 1.6;
}

.address-details h4 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 1.1rem;
}

/* Order Summary */
.order-items {
    padding: 25px 30px;
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.order-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 5px;
}

.item-quantity {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 5px;
}

.item-price {
    font-weight: 700;
    color: #2563eb;
    font-size: 15px;
}

.price-summary {
    padding: 25px 30px;
    background: #f8fafc;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-row.discount-row {
    color: #059669;
    font-weight: 600;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    padding-top: 15px;
    border-top: 2px solid #e5e7eb;
}

.summary-divider {
    height: 2px;
    background: #e5e7eb;
    margin: 15px 0;
}

/* Agreements */
.agreements {
    padding: 20px 30px 30px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin: 20px 0;
}

.agreement-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.agreement-item:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.agreement-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #2563eb;
    cursor: pointer;
}

.agreement-item label {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    cursor: pointer;
    flex: 1;
}

.agreement-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted #2563eb;
    transition: all 0.3s ease;
}

.agreement-item a:hover {
    color: #1d4ed8;
    border-bottom: 1px solid #1d4ed8;
    text-decoration: none;
}

.agreement-item:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-right {
        order: -1;
    }
}

@media (max-width: 768px) {
    .checkout-main {
        margin-top: 60px;
        padding: 20px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .checkout-progress {
        margin-bottom: 25px;
        padding: 20px 15px;
    }
    
    .progress-step {
        min-width: 80px;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .progress-line {
        margin: 0 10px;
    }
    
    .card-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .address-form,
    .order-items,
    .price-summary {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .map-card {
        height: 400px;
    }
    
    .location-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .continue-btn,
    .complete-order-btn {
        padding: 16px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .checkout-progress {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .progress-line {
        display: none;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-header h2,
    .card-header h3 {
        font-size: 1.2rem;
    }
    
    .address-form,
    .payment-methods {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .map-card {
        height: 350px;
    }
}

/* Loading & Success Animations */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.success-animation {
      color: #6b7280;
  font-size: 12px;
  margin: 0;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* Responsive Design */
@media (max-width: 1200px) {
    .payment-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .payment-right {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .payment-main {
        margin-top: 60px;
        padding: 20px 0 40px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .checkout-progress {
        margin-bottom: 25px;
        padding: 20px 15px;
    }
    
    .progress-step {
        min-width: 80px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .progress-line {
        margin: 0 10px;
    }
    
    .payment-section {
        padding: 25px 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .method-header {
        padding: 15px 20px;
    }
    
    .method-content {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-logos {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .bank-account {
        gap: 15px;
    }
    
    .bank-item {
        padding: 15px;
    }
    
    .agreement-section {
        padding: 20px;
    }
    
    .order-summary-card {
        margin-bottom: 20px;
    }
    
    .summary-header,
    .order-items,
    .price-summary {
        padding: 20px;
    }
    
    .security-info {
        padding: 15px 20px;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .security-item {
        flex-direction: row;
        justify-content: center;
    }
    
    .complete-payment-btn {
        margin: 20px;
        width: calc(100% - 40px);
        font-size: 15px;
        padding: 16px 20px;
    }
    
    .support-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .checkout-progress {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .progress-line {
        display: none;
    }
    
    .payment-section {
        padding: 20px 15px;
    }
    
    .method-header {
        padding: 12px 15px;
    }
    
    .method-content {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .summary-header,
    .order-items,
    .price-summary {
        padding: 15px;
    }
    
    .complete-payment-btn {
        margin: 15px;
        width: calc(100% - 30px);
        font-size: 14px;
        padding: 14px 15px;
    }
    
    .btn-amount {
        font-size: 16px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Animation */
.success-icon {
    color: #10b981;
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Konum Seçimi Bildirimi */
.location-selected-notification {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: slideInFromTop 0.5s ease-out;
    font-size: 14px;
    font-weight: 500;
}

.location-selected-notification i {
    font-size: 16px;
    color: #ffffff;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Sahil Bölgesi Uyarı Modalı - Düzeltilmiş - Maximum Override */
#locationWarningModal.location-warning-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.location-warning-modal.show {
    opacity: 1;
    visibility: visible;
}

.location-warning-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

.location-warning-modal .modal-content {
    position: relative !important;
    background: white !important;
    border-radius: 20px;
    max-width: 550px !important;
    width: 100% !important;
    max-height: 80vh !important;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4) !important;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: auto !important;
}

.location-warning-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.location-warning-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    background: #dc2626;
    color: white;
    border-radius: 16px 16px 0 0;
}

.location-warning-modal .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.location-warning-modal .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.location-warning-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.location-warning-modal .modal-body {
    padding: 25px;
    line-height: 1.6;
    color: #374151;
}

.location-warning-modal .modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

.location-warning-modal .btn-secondary {
    flex: 1;
    padding: 12px 20px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.location-warning-modal .btn-secondary:hover {
    background: #4b5563;
}

.location-warning-modal .btn-primary {
    flex: 2;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.location-warning-modal .btn-primary:hover {
    background: #1d4ed8;
}

/* Bölge Bilgilendirme Bildirimi */
.zone-info-notification {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    animation: slideInFromTop 0.5s ease-out;
}

.zone-info-notification i {
    font-size: 18px;
    color: #ffffff;
}

/* Geçerli Konum Marker Stili */
.valid-location-marker {
    animation: locationPulse 2s infinite;
}

@keyframes locationPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(16,185,129,0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 20px rgba(16,185,129,0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(16,185,129,0.3);
    }
}

/* Mobil Responsive - Düzeltilmiş */
@media (max-width: 768px) {
    .location-warning-modal {
        padding: 15px;
    }
    
    .location-warning-modal .modal-content {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 16px;
        max-height: 85vh;
    }
    
    .location-warning-modal .modal-header {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .location-warning-modal .modal-body {
        padding: 20px;
        font-size: 14px;
    }
    
    .location-warning-modal .modal-footer {
        flex-direction: column;
        padding: 15px 20px;
        gap: 12px;
    }
    
    .location-warning-modal .btn-secondary,
    .location-warning-modal .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Mevcut Konum Marker Animasyonu */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

.current-location-marker {
    z-index: 1000;
}

.current-location-marker div {
    animation-fill-mode: both;
}

/* Geçersiz Konum Marker Animasyonları */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes pulseRed {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

/* Geçerli Konum Marker Animasyonları */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulseGreen {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

.invalid-location-marker {
    z-index: 1100;
}

.invalid-location-marker div {
    animation-fill-mode: both;
}

.valid-location-marker {
    z-index: 2000 !important;
}

.valid-location-marker div {
    animation-fill-mode: both;
    z-index: 2001 !important;
}

/* Çok küçük ekranlar için harita boyutu */
@media (max-width: 360px) {
    .map-card {
        height: 320px;
    }
    
    .map-container {
        height: calc(100% - 70px);
    }
}

/* Leaflet Harita Zoom Kontrol Butonları - Header'dan daha düşük z-index */
.leaflet-control-zoom {
    z-index: 800 !important;
}

.leaflet-control-zoom a {
    z-index: 800 !important;
}

/* Tüm Leaflet kontrol elementleri için genel düzenleme */
.leaflet-control {
    z-index: 800 !important;
}

/* ULTRA AGGRESSIVE MARKER VISIBILITY FIX - MAXIMUM OVERRIDE */
.leaflet-div-icon,
.leaflet-div-icon.valid-location-marker,
.leaflet-div-icon.custom-leaflet-marker,
.valid-location-marker,
.custom-leaflet-marker {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
    position: relative !important;
    transform: translateZ(0) !important;
    background: transparent !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    overflow: visible !important;
}

/* Force all child elements to be visible */
.leaflet-div-icon *,
.valid-location-marker *,
.custom-leaflet-marker * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
    position: relative !important;
}

/* Marker container ultra visibility - DÜZGÜN PIN STYLE */
.marker-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
    position: relative !important;
    background: #10b981 !important;
    color: white !important;
    width: 25px !important;
    height: 35px !important;
    border-radius: 50% 50% 50% 0 !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(16,185,129,0.6) !important;
    border: 2px solid white !important;
    transform: translateZ(0) rotate(-45deg) !important;
    pointer-events: auto !important;
}

.marker-container::before {
    content: '📍' !important;
    font-size: 16px !important;
    transform: rotate(45deg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
}

/* Marker pulse ultra visibility */
.marker-pulse {
    display: block !important;
    visibility: visible !important;
    opacity: 0.6 !important;
    z-index: 999998 !important;
    position: absolute !important;
    top: -5px !important;
    left: -5px !important;
    width: 50px !important;
    height: 50px !important;
    border: 3px solid #10b981 !important;
    border-radius: 50% !important;
    transform: translateZ(0) !important;
    pointer-events: none !important;
}

/* Override all possible Leaflet conflicts */
.leaflet-marker-pane .leaflet-div-icon,
.leaflet-marker-pane .leaflet-marker-icon,
.leaflet-pane .leaflet-div-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
}

/* EMERGENCY DIRECT MARKER - BACKUP PLAN - PIN STYLE */
.direct-emergency-marker {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
    position: absolute !important;
    pointer-events: auto !important;
}

.direct-emergency-marker * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
}

/* PIN MARKER STYLE - Classic Location Pin - DÜZGÜN */
.pin-marker {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
    position: absolute !important;
    background: #10b981 !important;
    color: white !important;
    width: 25px !important;
    height: 35px !important;
    border-radius: 50% 50% 50% 0 !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(16,185,129,0.6) !important;
    border: 2px solid white !important;
    transform: rotate(-45deg) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.pin-marker::before {
    content: '📍' !important;
    font-size: 16px !important;
    transform: rotate(45deg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
}

/* PIN MARKER - Alternative with FontAwesome icon - DÜZGÜN */
.pin-marker-fa {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
    position: absolute !important;
    background: #10b981 !important;
    color: white !important;
    width: 25px !important;
    height: 35px !important;
    border-radius: 50% 50% 50% 0 !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(16,185,129,0.6) !important;
    border: 2px solid white !important;
    transform: rotate(-45deg) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.pin-marker-fa::before {
    content: '\f3c5' !important; /* FontAwesome map-marker-alt */
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    transform: rotate(45deg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
}
