/* Overlay Base Styles */
.loc-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 30, 52, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .loc-overlay-backdrop {
        padding-left: unset !important;
    }
}

.loc-overlay-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.loc-overlay-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(13, 30, 52, 0.3);
    position: relative;
    animation: locOverlayFadeIn 0.3s ease-out;
}

@keyframes locOverlayFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.loc-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.loc-overlay-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0D1E34;
    margin: 0;
}

.loc-overlay-close {
    font-size: 24px;
    font-weight: bold;
    color: #63748A;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

.loc-overlay-close:hover {
    color: #2E3E53;
}

/* Form Styles */
.loc-overlay-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.loc-form-group {
    display: flex;
    flex-direction: column;
}

.loc-form-group.loc-full-width {
    grid-column: 1 / -1;
}

.loc-form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2E3E53;
    margin-bottom: 8px;
    margin-left: 4px;
}

.loc-form-input,
.loc-form-select {
    padding: 15px 20px;
    border: 2px solid #63748A;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(99, 116, 138, 0.1);
    color: #0D1E34;
    transition: all 0.3s ease;
    font-family: 'Overlock', sans-serif;
}

.loc-form-input:focus,
.loc-form-select:focus {
    outline: none;
    border-color: #2E3E53;
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 62, 83, 0.1);
}

.loc-form-input.loc-readonly {
    background: rgba(99, 116, 138, 0.2);
    color: #63748A;
    cursor: not-allowed;
}

.loc-form-select {
    cursor: pointer;
}

/* Action Buttons */
.loc-overlay-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.loc-btn-primary,
.loc-btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    font-family: 'Overlock', sans-serif;
}

.loc-btn-primary {
    background: linear-gradient(135deg, #2E3E53, #0D1E34);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 62, 83, 0.3);
}

.loc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 62, 83, 0.4);
}

.loc-btn-secondary {
    background: rgba(99, 116, 138, 0.1);
    color: #63748A;
    border: 2px solid #63748A;
}

.loc-btn-secondary:hover {
    background: rgba(99, 116, 138, 0.2);
    color: #2E3E53;
    border-color: #2E3E53;
}

/* Message Styles */
.loc-overlay-message {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loc-overlay-message.loc-overlay-success {
    background: linear-gradient(135deg, rgba(201, 229, 224, 0.3), rgba(42, 82, 72, 0.1));
    border: 1px solid #C9E5E0;
    color: #2A5248;
}

.loc-overlay-message.loc-overlay-error {
    background: linear-gradient(135deg, rgba(210, 170, 146, 0.3), rgba(126, 88, 65, 0.1));
    border: 1px solid #D2AA92;
    color: #7E5841;
}

.loc-message-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Current File Info */
.current-file-info {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #666;
}

/* Profile Form Actions */
.profile-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.cancel-btn {
    background-color: #6c757d !important;
}

.cancel-btn:hover {
    background-color: #545b62 !important;
}

/* Edit Overlay Styles */
/* Edit Offer Overlay - Use same styling as main profile overlay */
.edit-offer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.edit-offer-overlay .loc-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 30, 52, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.edit-offer-overlay .loc-overlay-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.edit-offer-overlay .loc-overlay-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(13, 30, 52, 0.3);
    position: relative;
    animation: locOverlayFadeIn 0.3s ease-out;
}

/* Edit Location Overlay - Use same styling as main profile overlay */
.edit-location-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.edit-location-overlay .loc-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 30, 52, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.edit-location-overlay .loc-overlay-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.edit-location-overlay .loc-overlay-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(13, 30, 52, 0.3);
    position: relative;
    animation: locOverlayFadeIn 0.3s ease-out;
}

/* Location Overlay (general) - Use same styling as main profile overlay */
.location-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.location-overlay .loc-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 30, 52, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.location-overlay .loc-overlay-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.location-overlay .loc-overlay-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(13, 30, 52, 0.3);
    position: relative;
    animation: locOverlayFadeIn 0.3s ease-out;
}

/* Textarea specific styling */
.loc-form-input[rows] {
    resize: vertical;
    min-height: 80px;
    font-family: 'Overlock', sans-serif;
    line-height: 1.5;
}

/* File input styling */
.loc-form-input[type="file"] {
    padding: 12px 15px;
    background: rgba(99, 116, 138, 0.05);
    border: 2px dashed #63748A;
    cursor: pointer;
}

.loc-form-input[type="file"]:hover {
    border-color: #2E3E53;
    background: rgba(46, 62, 83, 0.05);
}

.loc-form-input[type="file"]:focus {
    border-style: solid;
    border-color: #2E3E53;
    background: white;
}

/* Enhanced responsive design for all overlays */
@media (max-width: 768px) {
    .loc-overlay-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .loc-form-row {
        grid-template-columns: 1fr;
    }
    
    .loc-overlay-actions {
        flex-direction: column;
    }
    
    .loc-btn-primary,
    .loc-btn-secondary {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .loc-overlay-content {
        padding: 25px 15px;
    }
    
    .loc-overlay-title {
        font-size: 1.5rem;
    }
}

.location-overlay .loc-overlay-content,
.loc-location-overlay .loc-overlay-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(13, 30, 52, 0.3);
    position: relative;
    animation: locOverlayFadeIn 0.3s ease-out;
}

/* Textarea specific styling */
.loc-form-input[rows] {
    resize: vertical;
    min-height: 80px;
    font-family: 'Overlock', sans-serif;
    line-height: 1.5;
}

/* File input styling */
.loc-form-input[type="file"] {
    padding: 12px 15px;
    background: rgba(99, 116, 138, 0.05);
    border: 2px dashed #63748A;
    cursor: pointer;
}

.loc-form-input[type="file"]:hover {
    border-color: #2E3E53;
    background: rgba(46, 62, 83, 0.05);
}

.loc-form-input[type="file"]:focus {
    border-style: solid;
    border-color: #2E3E53;
    background: white;
}

/* Enhanced responsive design for all overlays */
@media (max-width: 768px) {
    .edit-offer-overlay .loc-overlay-content,
    .location-overlay .loc-overlay-content,
    .loc-location-overlay .loc-overlay-content {
        padding: 30px 20px;
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .loc-overlay-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .loc-btn-primary,
    .loc-btn-secondary {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .edit-offer-overlay .loc-overlay-content,
    .location-overlay .loc-overlay-content,
    .loc-location-overlay .loc-overlay-content {
        padding: 25px 15px;
    }
    
    .loc-overlay-title {
        font-size: 1.5rem;
    }
    
    .loc-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Addon checkbox styling */
.addons-checkbox-container {
    max-height: 200px;
    overflow-y: auto;
}

.addon-checkbox-label:hover {
    background-color: rgba(210, 170, 146, 0.1) !important;
}

.addon-checkbox-label input[type="checkbox"] {
    accent-color: #D2AA92;
}

.addon-checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #0D1E34;
}

/* Pricing/Editable Sections Styles */
.pricing-display-container {
    width: 100%;
}

.pricing-display-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 2px solid #63748A;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 116, 138, 0.08), rgba(99, 116, 138, 0.03));
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
    box-sizing: border-box;
}

.pricing-display-text:hover {
    background: linear-gradient(135deg, rgba(99, 116, 138, 0.15), rgba(99, 116, 138, 0.08));
    border-color: #4A5D73;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 116, 138, 0.2);
}

.pricing-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-main {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0D1E34;
    font-family: 'Overlock', sans-serif;
}

.pricing-sub {
    font-size: 0.9rem;
    color: #63748A;
    font-style: italic;
}

.pricing-edit-container {
    margin-top: 15px;
    padding: 0;
    border: 2px solid #63748A;
    border-radius: 12px;
    background: rgba(99, 116, 138, 0.03);
    position: relative;
}

.pricing-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px 25px;
    border-bottom: 1px solid rgba(99, 116, 138, 0.2);
    margin-bottom: 20px;
}

.pricing-edit-header h4 {
    margin: 0;
    color: #0D1E34;
    font-size: 1.2rem;
    font-weight: 600;
}

.pricing-close-btn {
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: transparent;
    border: none;
}

.pricing-close-btn:hover {
    background: rgba(99, 116, 138, 0.2);
    transform: scale(1.05);
    border-radius: 6px;
}

.pricing-edit-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0 25px 25px 25px;
}

.pricing-basic-settings h4,
.pricing-details h4 {
    margin: 0 0 15px 0;
    color: #0D1E34;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #63748A;
    padding-bottom: 8px;
}

.pricing-basic-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 300px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.pricing-input-group,
.pricing-option {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pricing-input-group label,
.pricing-option label {
    font-size: 0.9rem;
    color: #2E3E53;
    font-weight: 500;
}

.pricing-input,
.pricing-select {
    height: 40px;
    border: 1px solid #63748A;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.95rem;
    background: white;
    color: #0D1E34;
    transition: border-color 0.3s ease;
    font-family: 'Overlock', sans-serif;
}

.pricing-input:focus,
.pricing-select:focus {
    outline: none;
    border-color: #4A5D73;
    box-shadow: 0 0 0 3px rgba(99, 116, 138, 0.1);
}

/* Textarea special styling for pricing sections */
.pricing-input[rows] {
    resize: vertical;
    min-height: 80px;
    font-family: 'Overlock', sans-serif;
    line-height: 1.5;
    height: auto;
    padding: 12px;
}

/* Edit icon styling */
.edit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.edit-icon:hover {
    background: rgba(99, 116, 138, 0.2);
    transform: scale(1.1);
}

/* Responsive design for pricing sections */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }
    
    .pricing-edit-header {
        padding: 15px 20px 12px 20px;
    }
    
    .pricing-edit-header h4 {
        font-size: 1.1rem;
    }
    
    .pricing-edit-grid {
        padding: 0 20px 20px 20px;
        gap: 20px;
    }
    
    .pricing-display-text {
        padding: 12px;
        min-height: 50px;
    }
    
    .pricing-main {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .pricing-option {
        gap: 6px;
    }
    
    .pricing-option label {
        font-size: 0.9rem;
    }
    
    .pricing-display-text {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .edit-icon {
        align-self: flex-end;
    }
}

