/* =============================================
   Modern Modal Redesign - createListModal & editListModal
   ============================================= */

/* Modal Content Wrapper */
.modal-content-modern {
    border: none;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    background: #fff !important;
    height: auto !important;
}

/* FIX: Ensure FORM takes up space */
.modal-content-modern>form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Mobile overflow fix */
@media (max-width: 768px) {

    #editListModal .modal-dialog,
    #createListModal .modal-dialog {
        height: auto !important;
        max-height: none !important;
        margin: 1.75rem auto;
    }

    #editListModal .modal-content,
    #createListModal .modal-content {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ============================== */
/* Header                         */
/* ============================== */
.modal-header-new {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.modal-header-new .top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-header-new h2 {
    font-size: 1.3rem;
    color: #1e293b;
    font-weight: 700;
    margin: 0;
}

.modal-header-new .btn-close-custom {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-header-new .btn-close-custom:hover {
    color: #ef4444;
}

.modal-header-new .subtitle-new {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* ============================== */
/* Body                           */
/* ============================== */
.modal-body-new {
    padding: 24px;
    background: #f8fafc;
    height: auto;
}

/* Scrollbar Styling */
.modal-body-new::-webkit-scrollbar {
    width: 8px;
}

.modal-body-new::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-body-new::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-body-new::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================== */
/* Info Banner                    */
/* ============================== */
.info-banner {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-banner i {
    color: #3b82f6;
    margin-top: 3px;
}

.info-banner p {
    font-size: 0.85rem;
    color: #1e40af;
    line-height: 1.5;
    margin: 0;
}

/* ============================== */
/* Section Card Titles            */
/* ============================== */
.section-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-card-title i {
    color: #dc8cdc;
    font-size: 1rem;
}

/* Theme overrides for section icons */
.theme-rosa .section-card-title i,
.theme-azul .section-card-title i,
.theme-verde .section-card-title i,
.theme-amarelo .section-card-title i,
.theme-castanho .section-card-title i {
    color: var(--primary);
}

/* ============================== */
/* Required Field Indicator       */
/* ============================== */
.required-indicator {
    color: #ef4444;
    font-weight: 700;
    font-size: 1rem;
}

/* ============================== */
/* Section Card                   */
/* ============================== */
.section-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* ============================== */
/* Form Groups                    */
/* ============================== */
.form-group-new {
    margin-bottom: 20px;
}

.form-group-new label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group-new input.form-control-new,
.form-group-new select.form-select-new,
.form-group-new textarea.form-control-new {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #1e293b;
}

.form-group-new input.form-control-new:focus,
.form-group-new select.form-select-new:focus,
.form-group-new textarea.form-control-new:focus {
    border-color: #dc8cdc;
    box-shadow: 0 0 0 3px rgba(220, 140, 220, 0.15);
}

/* Theme-aware focus colors */
.theme-rosa .form-group-new input.form-control-new:focus,
.theme-rosa .form-group-new select.form-select-new:focus,
.theme-rosa .form-group-new textarea.form-control-new:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(220, 140, 220, 0.15) !important;
}

.theme-azul .form-group-new input.form-control-new:focus,
.theme-azul .form-group-new select.form-select-new:focus,
.theme-azul .form-group-new textarea.form-control-new:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.15) !important;
}

.theme-verde .form-group-new input.form-control-new:focus,
.theme-verde .form-group-new select.form-select-new:focus,
.theme-verde .form-group-new textarea.form-control-new:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15) !important;
}

.theme-amarelo .form-group-new input.form-control-new:focus,
.theme-amarelo .form-group-new select.form-select-new:focus,
.theme-amarelo .form-group-new textarea.form-control-new:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

.theme-castanho .form-group-new input.form-control-new:focus,
.theme-castanho .form-group-new select.form-select-new:focus,
.theme-castanho .form-group-new textarea.form-control-new:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(121, 85, 72, 0.15) !important;
}

.form-text-new {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 6px;
}

/* ============================== */
/* Pix Premium Card               */
/* ============================== */
.pix-premium-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.pix-premium-card.unlocked {
    border-color: #cbd5e1;
}

.pix-premium-card.unlocked:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.pix-premium-card.locked {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.pix-premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pix-premium-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pix-premium-icon-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(-145deg, rgba(219, 138, 222, 0.15) 0%, rgba(246, 191, 159, 0.15) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #c77dc7;
}

.pix-premium-title h3 {
    font-size: 1.15rem;
    color: #1e293b;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.premium-badge-new {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
    display: inline-block;
}

.pix-premium-card>p {
    font-size: 0.9rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
}

.pix-premium-card>p .text-danger {
    color: #ef4444 !important;
}

/* ============================== */
/* Toggle Switch Custom           */
/* ============================== */
.toggle-container {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle-switch-input {
    appearance: none;
    width: 0;
    height: 0;
    position: absolute;
    visibility: hidden;
}

.toggle-switch-label {
    width: 52px;
    height: 28px;
    background: #cbd5e1;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    display: block;
    transition: background 0.3s;
}

.toggle-switch-label::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch-input:checked+.toggle-switch-label {
    background: #10b981;
}

.toggle-switch-input:checked+.toggle-switch-label::after {
    transform: translateX(24px);
}

.toggle-switch-input:disabled+.toggle-switch-label {
    background: #e2e8f0;
    cursor: not-allowed;
}

/* Lock Icon Overlay */
.toggle-lock {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    z-index: 10;
    pointer-events: none;
    display: none;
}

.toggle-lock[style*="display: block"],
.toggle-lock[style*="display: flex"] {
    display: flex !important;
}

.toggle-lock i {
    text-shadow: none !important;
    color: white !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================== */
/* Benefits List                  */
/* ============================== */
.pix-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.benefit-item {
    font-size: 0.9rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.benefit-item i {
    color: #10b981;
    font-size: 1.1rem;
}

/* ============================== */
/* CTA Box (Upgrade)              */
/* ============================== */
.cta-box {
    background: linear-gradient(135deg, #fdf4ff 0%, #f3e8ff 100%);
    border: 1px solid #f0abfc;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    box-shadow: 0 4px 6px -1px rgba(192, 38, 211, 0.05);
}

.cta-box>div {
    color: #701a75 !important;
    font-size: 0.9rem !important;
}

.cta-box strong {
    color: #86198f;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
    display: inline-block;
}

.btn-unlock {
    background: linear-gradient(135deg, #c026d3 0%, #9333ea 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(192, 38, 211, 0.3);
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(192, 38, 211, 0.4);
    color: white !important;
}

/* ============================== */
/* Footer + Buttons               */
/* ============================== */
.modal-footer-new {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    justify-content: flex-end;
}

.modal-footer-new .btn-custom {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.btn-cancel-custom {
    background: #e2e8f0;
    color: #475569;
}

.btn-cancel-custom:hover {
    background: #cbd5e1;
}

/* Default (rosa theme fallback) */
.btn-save-custom {
    background: var(--primary, #dc8cdc);
    color: white;
}

/* All themes use their primary colour */
.theme-rosa .btn-save-custom,
.theme-azul .btn-save-custom,
.theme-verde .btn-save-custom,
.theme-amarelo .btn-save-custom,
.theme-castanho .btn-save-custom {
    background: var(--primary) !important;
    color: white !important;
}

.btn-save-custom:hover,
.theme-rosa .btn-save-custom:hover,
.theme-azul .btn-save-custom:hover,
.theme-verde .btn-save-custom:hover,
.theme-amarelo .btn-save-custom:hover,
.theme-castanho .btn-save-custom:hover {
    background: var(--accent, #c77dc7) !important;
}

/* Create button uses the site gradient */
.btn-create-custom {
    background: linear-gradient(-145deg, rgba(219, 138, 222, 1) 0%, rgba(246, 191, 159, 1) 100%);
    color: white;
}

.btn-create-custom:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 576px) {

    .modal-header-new,
    .modal-body-new,
    .modal-footer-new {
        padding: 16px;
    }

    .pix-benefits {
        grid-template-columns: 1fr;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ============================== */
/* Location Preview Card          */
/* ============================== */
.location-preview {
    display: block;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    overflow: hidden;
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-preview-map {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
    background: #e5e7eb;
    display: none;
}

.location-preview-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0.9;
}

.location-preview-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.location-preview-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(-145deg, rgba(219, 138, 222, 1) 0%, rgba(246, 191, 159, 1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.location-preview-info {
    flex: 1;
    min-width: 0;
}

.location-preview-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-preview-link {
    display: inline-block;
    font-size: 0.75rem;
    color: #3b82f6;
    text-decoration: none;
    margin-top: 2px;
    transition: color 0.2s;
}

.location-preview-link:hover {
    color: #1d4ed8;
}

.location-preview-remove {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.location-preview-remove:hover {
    color: #ef4444;
}

/* ============================== */
/* Location Action Buttons        */
/* ============================== */
.location-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-location-map,
.btn-location-manual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.btn-location-map {
    background: var(--admin-gradient, linear-gradient(-145deg, rgba(219, 138, 222, 1) 0%, rgba(246, 191, 159, 1) 100%));
    color: white;
    box-shadow: 0 4px 12px rgba(220, 140, 220, 0.3);
}

/* Sombra temática do btn-location-map */
.theme-azul .btn-location-map {
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.3);
}

.theme-verde .btn-location-map {
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.theme-amarelo .btn-location-map {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.theme-castanho .btn-location-map {
    box-shadow: 0 4px 12px rgba(121, 85, 72, 0.3);
}

/* Em home.php, o tema fica no modal */
#editListModal.theme-azul .btn-location-map {
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.3);
}

#editListModal.theme-verde .btn-location-map {
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

#editListModal.theme-amarelo .btn-location-map {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

#editListModal.theme-castanho .btn-location-map {
    box-shadow: 0 4px 12px rgba(121, 85, 72, 0.3);
}

.btn-location-map:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.btn-location-map:active {
    transform: translateY(0);
}

.btn-location-manual {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-location-manual:hover {
    background: #e2e8f0;
    color: #334155;
}

/* ============================== */
/* Manual Link Section            */
/* ============================== */
.manual-link-section {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    margin-top: 4px;
    animation: fadeInUp 0.3s ease;
}

.manual-link-section label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 576px) {
    .location-actions {
        flex-direction: column;
    }

    .btn-location-map,
    .btn-location-manual {
        width: 100%;
        padding: 14px 16px;
        font-size: 0.92rem;
    }

    .location-preview-map {
        height: 100px;
    }

    .location-preview-name {
        font-size: 0.83rem;
    }

    .section-card {
        padding: 18px;
    }

    .section-card-title {
        font-size: 0.9rem;
    }
}

/* ============================================= */
/* Map Picker Modal                              */
/* ============================================= */
.map-picker-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.map-picker-header {
    background: var(--admin-gradient, linear-gradient(-145deg, rgba(219, 138, 222, 1) 0%, rgba(246, 191, 159, 1) 100%));
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-picker-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.map-picker-header-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    backdrop-filter: blur(4px);
}

.map-picker-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.map-picker-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 2px 0 0 0;
}

.map-picker-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.6rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.map-picker-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Map Picker Body */
.map-picker-body {
    padding: 20px 24px;
    background: #f8fafc;
}

/* Search Bar */
.map-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.map-search-input-wrapper {
    flex: 1;
    position: relative;
}

.map-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.map-search-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #1e293b;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.map-search-input:focus {
    border-color: #dc8cdc;
    box-shadow: 0 0 0 3px rgba(220, 140, 220, 0.15);
}

.map-search-input::placeholder {
    color: #94a3b8;
}

.map-search-btn {
    padding: 12px 20px;
    background: var(--admin-gradient, linear-gradient(-145deg, rgba(219, 138, 222, 1) 0%, rgba(246, 191, 159, 1) 100%));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(220, 140, 220, 0.3);
}

.map-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 140, 220, 0.4);
}

.map-search-btn:active {
    transform: translateY(0);
}

/* Map Container */
.map-container-wrapper {
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Help Text */
.map-help-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.82rem;
    color: #64748b;
}

.map-help-text i {
    color: #dc8cdc;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Manual Link Section (map picker) */
.map-manual-section {
    margin-top: 14px;
}

.map-manual-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.map-manual-toggle:hover {
    border-color: #dc8cdc;
    color: #dc8cdc;
    background: #fff0fc;
}

.map-manual-chevron {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.map-manual-toggle.active .map-manual-chevron {
    transform: rotate(180deg);
}

.map-manual-input-area {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
}

.map-manual-input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #1e293b;
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

.map-manual-input:focus {
    border-color: #dc8cdc;
    box-shadow: 0 0 0 3px rgba(220, 140, 220, 0.1);
}

.map-manual-input::placeholder {
    color: #94a3b8;
    font-size: 0.82rem;
}

.map-manual-apply-btn {
    padding: 12px 18px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.map-manual-apply-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Map Picker Footer */
.map-picker-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: white;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.map-picker-cancel {
    padding: 11px 24px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.map-picker-cancel:hover {
    background: #e2e8f0;
}

.map-picker-confirm {
    padding: 11px 28px;
    background: var(--admin-gradient, linear-gradient(135deg, #10b981, #059669));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.map-picker-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Mobile Responsive for Map Picker */
@media (max-width: 576px) {
    .map-picker-header {
        padding: 16px 18px;
    }

    .map-picker-title {
        font-size: 1rem;
    }

    .map-picker-subtitle {
        font-size: 0.75rem;
    }

    .map-picker-body {
        padding: 14px 16px;
    }

    .map-search-bar {
        flex-direction: column;
    }

    .map-search-btn {
        width: 100%;
        justify-content: center;
        padding: 13px;
    }

    .map-manual-input-area {
        flex-direction: column;
    }

    .map-manual-apply-btn {
        width: 100%;
        justify-content: center;
        padding: 13px;
    }

    .map-picker-footer {
        padding: 14px 16px;
    }

    .map-picker-cancel,
    .map-picker-confirm {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    #mapPicker {
        height: 280px !important;
    }
}